Skip to content

Commit

Permalink
add project level .lintr
Browse files Browse the repository at this point in the history
  • Loading branch information
hansvancalster committed Jan 17, 2024
1 parent 91d99a7 commit b796811
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
1 change: 1 addition & 0 deletions .Rprofile
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
options(lintr.linter_file = ".lintr")
28 changes: 28 additions & 0 deletions .lintr
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
linters: list(
absolute_path_linter(lax = TRUE),
assignment_linter(allow_cascading_assign = FALSE, allow_right_assign = TRUE),
brace_linter(allow_single_line = FALSE),
commas_linter(),
commented_code_linter(),
cyclocomp_linter(complexity_limit = 15L),
equals_na_linter(),
function_left_parentheses_linter(),
infix_spaces_linter(exclude_operators = NULL, allow_multiple_spaces = TRUE),
line_length_linter(length = 80L),
object_length_linter(length = 30L),
object_name_linter(styles = "snake_case"),
object_usage_linter(interpret_glue = TRUE),
paren_body_linter(),
pipe_continuation_linter(),
quotes_linter(delimiter = "\""),
semicolon_linter(allow_compound = FALSE, allow_trailing = FALSE),
seq_linter(),
spaces_inside_linter(),
spaces_left_parentheses_linter(),
T_and_F_symbol_linter(),
trailing_blank_lines_linter(),
trailing_whitespace_linter(allow_empty_lines = FALSE),
vector_logic_linter(),
whitespace_linter()
)
exclusions: list("renv", "packrat", "source/targets/mas_steekproef_zn_lm/renv")

0 comments on commit b796811

Please sign in to comment.