File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- linters: with_defaults(
2- "single_quotes_linter" = NULL,
3- "camel_case_linter" = NULL,
4- "line_length_linter" = line_length_linter(100)
5- )
1+ linters: lintr::linters_with_defaults(
2+ line_length_linter = lintr::line_length_linter(80),
3+ object_name_linter = lintr::object_name_linter(styles = "snake_case"),
4+ assignment_linter = lintr::assignment_linter(), # prefer '<-'
5+ commas_linter = lintr::commas_linter(),
6+ infix_spaces_linter = lintr::infix_spaces_linter(),
7+ trailing_blank_lines_linter = lintr::trailing_blank_lines_linter(),
8+ trailing_whitespace_linter = lintr::trailing_whitespace_linter(),
9+ no_tab_linter = lintr::no_tab_linter(),
10+ semicolon_terminator_linter = lintr::semicolon_terminator_linter(),
11+ spaces_inside_linter = lintr::spaces_inside_linter(),
12+ # Often noisy/slow across packages; enable if you want stricter checks:
13+ object_usage_linter = NULL
14+ )
15+
16+ # make the CI job fail when there are lints
17+ error_on_lint: true
18+
19+ # exclude typical generated/third-party spots
20+ exclusions:
21+ - "inst/doc/**"
22+ - "data-raw/**"
23+ - "packrat/**"
24+ - "renv/**"
25+ - "docs/**"
26+ - "vignettes/**" # if you prefer to lint these, remove this line
You can’t perform that action at this time.
0 commit comments