You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Allow the user to pass the path of .lintr to lint() #335
I am trying to wrap lintr, together with linters for other languages, in another project.
Is it possible to manually pass the .lintr config file to lint() instead of having lint() look for it automatically in current_dir -> project_dir -> user_dir as implemented in the find_config function of the settings.R file?
I am currently trying to hack a temporary solution, because I think the answer to my question is not at the moment.
If it is in fact not possible to do so at the moment, do you think this could be made a feature?
I am thinking about the possibility of adding a config_file argument to lint() which, if not NULL, overrides the automatic search for the .lintr file (assuming that parse_settings = TRUE).
The config file location is looked up by the R option lintr.linter_file, so you could use that to change the location. But I agree it should probably just be an argument to lint().
Activity
jimhester commentedon Jul 5, 2018
The config file location is looked up by the R option
lintr.linter_file, so you could use that to change the location. But I agree it should probably just be an argument tolint().Allow users to set lintr.linter_file
Allow users to set lintr.linter_file
Allow users to set lintr.linter_file (#338)
jimhester commentedon Sep 27, 2019
I think this was addressed with baddc5b