2020-10-30 06:08:54 +00:00
|
|
|
pre-push:
|
|
|
|
parallel: true
|
|
|
|
commands:
|
|
|
|
danger:
|
|
|
|
run: bundle exec danger dry_run
|
|
|
|
eslint:
|
|
|
|
tags: frontend style
|
|
|
|
files: git diff --name-only $(git merge-base origin/master HEAD)..HEAD
|
|
|
|
glob: "*.{js,vue}"
|
2021-02-17 15:09:21 +00:00
|
|
|
run: yarn run internal:eslint {files}
|
2020-10-30 06:08:54 +00:00
|
|
|
haml-lint:
|
|
|
|
tags: view haml style
|
|
|
|
files: git diff --name-only $(git merge-base origin/master HEAD)..HEAD
|
|
|
|
glob: "*.html.haml"
|
|
|
|
run: bundle exec haml-lint --config .haml-lint.yml {files}
|
2020-11-03 12:08:55 +00:00
|
|
|
markdownlint:
|
|
|
|
tags: documentation style
|
|
|
|
files: git diff --name-only $(git merge-base origin/master HEAD)..HEAD
|
2021-02-10 18:09:02 +00:00
|
|
|
glob: "doc/*.md"
|
2020-11-03 12:08:55 +00:00
|
|
|
run: yarn markdownlint {files}
|
2021-02-18 09:09:23 +00:00
|
|
|
stylelint:
|
2020-10-30 06:08:54 +00:00
|
|
|
tags: stylesheet css style
|
|
|
|
files: git diff --name-only $(git merge-base origin/master HEAD)..HEAD
|
2020-11-11 03:08:57 +00:00
|
|
|
glob: "*.scss{,.css}"
|
2021-02-18 09:09:23 +00:00
|
|
|
run: yarn stylelint -q {files}
|
2021-02-17 15:09:21 +00:00
|
|
|
prettier:
|
|
|
|
tags: frontend style
|
|
|
|
files: git diff --name-only $(git merge-base origin/master HEAD)..HEAD
|
|
|
|
glob: "*.{js,vue,graphql}"
|
|
|
|
run: yarn run prettier --check {files}
|
2020-10-30 06:08:54 +00:00
|
|
|
rubocop:
|
|
|
|
tags: backend style
|
|
|
|
files: git diff --name-only $(git merge-base origin/master HEAD)..HEAD
|
|
|
|
glob: "*.rb"
|
|
|
|
run: bundle exec rubocop --parallel --force-exclusion {files}
|
2020-11-03 12:08:55 +00:00
|
|
|
vale: # Requires Vale: https://docs.gitlab.com/ee/development/documentation/#install-linters
|
|
|
|
tags: documentation style
|
|
|
|
files: git diff --name-only $(git merge-base origin/master HEAD)..HEAD
|
2021-02-10 18:09:02 +00:00
|
|
|
glob: "doc/*.md"
|
2020-11-03 12:08:55 +00:00
|
|
|
run: if command -v vale 2> /dev/null; then vale --config .vale.ini --minAlertLevel error {files}; else echo "Vale not found. Install Vale"; fi
|