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
Copy file name to clipboardExpand all lines: vignettes/lintr.Rmd
+6-5
Original file line number
Diff line number
Diff line change
@@ -89,13 +89,14 @@ exclusions: list(
89
89
### Other configuration options
90
90
91
91
More generally, `lintr` searches for a settings file according to following prioritized list.
92
-
The first one found, if any, will be used.
92
+
The first one found, if any, will be used:
93
93
94
94
1. If `options("lintr.linter_file")` is an absolute path, this file will be used. The default for this option is `".lintr"`.
95
-
2. A linter file (that is a file named like `lintr.linter_file`) in the currently-searched directory, i.e. the directory of the file passed to `lint()`, or in the closest parent directory. When run from `lint_package()`, this directory can differ for each linted file.
96
-
3. A linter file in the `.github/linters` child directory of the currently-searched directory, or in the closest parent directory.
97
-
4. A linter file in a parent directory of the currently-searched directory, starting from the deepest path, moving upwards one level at a time.
98
-
5. A linter file in the user's `HOME` directory.
95
+
2. A project-local linter file; that is, either
96
+
1. a linter file (that is, a file named like `lintr.linter_file`) in the currently-searched directory, i.e. the directory of the file passed to `lint()`; or
97
+
2. a linter file in the `.github/linters` child directory of the currently-searched directory.
98
+
3. A project-local linter file in the closest parent directory of the currently-searched directory, starting from the deepest path, moving upwards one level at a time. When run from `lint_package()`, this directory can differ for each linted file.
99
+
4. A linter file in the user's `HOME` directory.
99
100
100
101
If no linter file is found, only default settings take effect (see [defaults](#defaults)).
0 commit comments