mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-22 06:06:21 +00:00
feat: lint
This commit is contained in:
parent
ef22f29d17
commit
d581fab4df
1 changed files with 26 additions and 0 deletions
|
@ -23,10 +23,36 @@ assets:
|
|||
gem-audit:
|
||||
stage: "audit"
|
||||
before_script:
|
||||
- "apk add go-task"
|
||||
- "gem install bundler-audit"
|
||||
script:
|
||||
- "go-task gem-audit"
|
||||
node-audit:
|
||||
stage: "audit"
|
||||
script:
|
||||
- "apk add go-task"
|
||||
- "go-task node-audit"
|
||||
brakeman:
|
||||
stage: "lint"
|
||||
rules:
|
||||
- if: "$CI_PIPELINE_SOURCE == \"merge_request_event\""
|
||||
before_script:
|
||||
- "apk add go-task"
|
||||
script:
|
||||
- "go-task bundle -- exec brakeman"
|
||||
rubocop:
|
||||
stage: "lint"
|
||||
rules:
|
||||
- if: "$CI_PIPELINE_SOURCE == \"merge_request_event\""
|
||||
before_script:
|
||||
- "apk add go-task"
|
||||
script:
|
||||
- "git diff --name-status ${CI_MERGE_REQUEST_DIFF_BASE_SHA}...HEAD | grep -v \"^D\" | cut -f 2 | grep \"\.rb$\" | xargs go-task bundle -- exec rubocop"
|
||||
haml:
|
||||
stage: "lint"
|
||||
rules:
|
||||
- if: "$CI_PIPELINE_SOURCE == \"merge_request_event\""
|
||||
before_script:
|
||||
- "apk add go-task"
|
||||
script:
|
||||
- "git diff --name-status ${CI_MERGE_REQUEST_DIFF_BASE_SHA}...HEAD | grep -v \"^D\" | cut -f 2 | grep \"\.haml$\" | xargs go-task bundle -- exec haml-lint"
|
||||
|
|
Loading…
Reference in a new issue