mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-22 17:26: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:
|
gem-audit:
|
||||||
stage: "audit"
|
stage: "audit"
|
||||||
before_script:
|
before_script:
|
||||||
|
- "apk add go-task"
|
||||||
- "gem install bundler-audit"
|
- "gem install bundler-audit"
|
||||||
script:
|
script:
|
||||||
- "go-task gem-audit"
|
- "go-task gem-audit"
|
||||||
node-audit:
|
node-audit:
|
||||||
stage: "audit"
|
stage: "audit"
|
||||||
script:
|
script:
|
||||||
|
- "apk add go-task"
|
||||||
- "go-task node-audit"
|
- "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