mirror of
https://github.com/super-linter/super-linter.git
synced 2024-11-22 06:01:05 -05:00
adjust lint command
This commit is contained in:
parent
8baec3bc77
commit
527334883e
2 changed files with 3 additions and 3 deletions
|
@ -108,8 +108,8 @@ PYTHON_PYLINT_LINTER_RULES="${DEFAULT_RULES_LOCATION}/${PYTHON_PYLINT_FILE_NAME}
|
|||
PYTHON_FLAKE8_FILE_NAME="${PYTHON_FLAKE8_CONFIG_FILE:-.flake8}" # Name of the file
|
||||
PYTHON_FLAKE8_LINTER_RULES="${DEFAULT_RULES_LOCATION}/${PYTHON_FLAKE8_FILE_NAME}" # Path to the python lint rules
|
||||
# R Vars
|
||||
R_FILE_NAME='.lintr'
|
||||
R_LINTER_RULES="${DEFAULT_RULES_LOCATION}/${R_FILE_NAME}"
|
||||
R_FILE_NAME='.lintr' # Name of the file
|
||||
R_LINTER_RULES="${DEFAULT_RULES_LOCATION}/${R_FILE_NAME}" # Path to the R lint rules
|
||||
# Ruby Vars
|
||||
RUBY_FILE_NAME="${RUBY_CONFIG_FILE:-.ruby-lint.yml}" # Name of the file
|
||||
RUBY_LINTER_RULES="${DEFAULT_RULES_LOCATION}/${RUBY_FILE_NAME}" # Path to the ruby lint rules
|
||||
|
|
|
@ -215,7 +215,7 @@ function LintCodebase() {
|
|||
#######################################
|
||||
LINT_CMD=$(
|
||||
cd "${GITHUB_WORKSPACE}" || exit
|
||||
R --slave -e "lintr::lint('${DIR_NAME}/$FILE_NAME')" 2>&1
|
||||
R --slave -e "errors <- lintr::lint('$FILE');print(errors);quit(save = 'no', status = if (length(errors) > 0) 1 else 0)" 2>&1
|
||||
)
|
||||
else
|
||||
################################
|
||||
|
|
Loading…
Reference in a new issue