-
Notifications
You must be signed in to change notification settings - Fork 186
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Modify .lintr
file search algorithm
#1746
Comments
What about making it a symlink instead? That way you can still maintain only one config |
I would suggest to use a symlink or, in case of a company-wide config, use |
Thanks for the responses! I tried the symlink approach but this does not work when using a Windows and Google drive. For the $HOME approach, the problem I see with this is that you still need two .lintr files, one in |
* check for .lintr file in extra subdirectory * #1746 update news * #1746 update vignette * #1757 reduce cyclomatic complexity, move local check above global file * #1746 updates from review * #1746 correct vignette order, update news bullet * #1746 try adding test * #1746 tests, programatically create `.github` dir * #1746 remove .lintr settings file * #1746 better cleanup, use file_path better * #1746 one more file_path update * #1746 updates from review comments * #1746 update news per comment * Fix the test case for #1757 Previously the test case never failed, even without the relevant patch. * Add failing test for subdirs This test will currently fail, and should no longer fail once `.github/linters` is searched in parent directories as well as in the current directory. * Search for `.github/linters` in parent directories * Remove unnecessary code * Amend news and lintr config search description Fixed the description based on review, performed very minor copy editing, and adapted formatting to be consistent. * Attempt to make description clearer * Fix indentation --------- Co-authored-by: AshesITR <alexander.rosenstock@web.de> Co-authored-by: Michael Chirico <chiricom@google.com> Co-authored-by: Konrad Rudolph <konrad.rudolph@gmail.com>
We have a multi language team and I am trying to roll out a common linter for the team instead of a different structure for each language. I've been testing super-linter with R and I am coming into a few issues for R.
One is that super-linter expects configurations files all live in the folder
.github/linters
but it seems from here that lintr doesn't check that path meaning that running functions in RStudio don't detect the above file.I currently have two
.lintr
files, one in the project root and one in.github/linters
that are just a copy of one another to get around this issue.Wondering if
.github/linters
could be added to the search list?The text was updated successfully, but these errors were encountered: