Syntax fix
This commit is contained in:
parent
eb22fbf286
commit
1b99104cb4
1 changed files with 15 additions and 15 deletions
30
.github/workflows/r.yml
vendored
30
.github/workflows/r.yml
vendored
|
|
@ -98,21 +98,21 @@ jobs:
|
||||||
|
|
||||||
# Judging coding style ----------------------------------- #
|
# Judging coding style ----------------------------------- #
|
||||||
- name: Linting package
|
- name: Linting package
|
||||||
run: |
|
run: |
|
||||||
install.packages("lintr")
|
install.packages("lintr")
|
||||||
style_rules <- list(
|
style_rules <- list(
|
||||||
assignment_linter, closed_curly_linter, commas_linter,
|
assignment_linter, closed_curly_linter, commas_linter,
|
||||||
todo_comment_linter, equals_na_linter,
|
todo_comment_linter, equals_na_linter,
|
||||||
function_left_parentheses_linter, infix_spaces_linter,
|
function_left_parentheses_linter, infix_spaces_linter,
|
||||||
line_length_linter, no_tab_linter, open_curly_linter,
|
line_length_linter, no_tab_linter, open_curly_linter,
|
||||||
paren_brace_linter, absolute_path_linter, nonportable_path_linter,
|
paren_brace_linter, absolute_path_linter, nonportable_path_linter,
|
||||||
pipe_continuation_linter, semicolon_terminator_linter,
|
pipe_continuation_linter, semicolon_terminator_linter,
|
||||||
single_quotes_linter, spaces_inside_linter,
|
single_quotes_linter, spaces_inside_linter,
|
||||||
trailing_blank_lines_linter, trailing_whitespace_linter,
|
trailing_blank_lines_linter, trailing_whitespace_linter,
|
||||||
undesirable_function_linter, undesirable_operator_linter
|
undesirable_function_linter, undesirable_operator_linter
|
||||||
) # TODO: expand style rules as package matures
|
) # TODO: expand style rules as package matures
|
||||||
lintr::lint_package(linters = style_rules)
|
lintr::lint_package(linters = style_rules)
|
||||||
shell: Rscript {0}
|
shell: Rscript {0}
|
||||||
|
|
||||||
# Uploading check results -------------------------------- #
|
# Uploading check results -------------------------------- #
|
||||||
- name: Uploading check results
|
- name: Uploading check results
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue