Skip to content

Commit e0ccfbb

Browse files
committed
Attempt to make description clearer
1 parent be17eba commit e0ccfbb

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

vignettes/lintr.Rmd

+6-5
Original file line numberDiff line numberDiff line change
@@ -89,13 +89,14 @@ exclusions: list(
8989
### Other configuration options
9090

9191
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:
9393

9494
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.
99100

100101
If no linter file is found, only default settings take effect (see [defaults](#defaults)).
101102

0 commit comments

Comments
 (0)