2022-05-04 23:37:01 +08:00
|
|
|
skip_output:
|
|
|
|
- meta
|
|
|
|
- success
|
|
|
|
|
2019-07-02 17:29:52 +08:00
|
|
|
pre-commit:
|
|
|
|
parallel: true
|
2022-11-08 00:13:21 +08:00
|
|
|
skip:
|
|
|
|
- merge
|
|
|
|
- rebase
|
2019-07-02 17:29:52 +08:00
|
|
|
commands:
|
|
|
|
rubocop:
|
2019-11-15 22:21:51 +08:00
|
|
|
glob: "*.rb"
|
2022-05-04 23:37:01 +08:00
|
|
|
run: bundle exec rubocop --parallel --force-exclusion {staged_files}
|
2023-01-17 08:16:07 +08:00
|
|
|
syntax_tree:
|
|
|
|
glob: "*.{rb,rake}"
|
|
|
|
run: bundle exec stree check Gemfile {staged_files}
|
2020-03-03 03:30:23 +08:00
|
|
|
prettier:
|
2021-11-13 19:51:53 +08:00
|
|
|
glob: "*.js"
|
2022-05-04 23:37:01 +08:00
|
|
|
include: "app/assets/javascripts|plugins/.+?/assets/javascripts"
|
2021-01-28 00:25:48 +08:00
|
|
|
run: yarn pprettier --list-different {staged_files}
|
2021-11-22 09:30:12 +08:00
|
|
|
prettier-scss:
|
|
|
|
glob: "*.scss"
|
2022-05-04 23:37:01 +08:00
|
|
|
include: "app/assets/stylesheets|plugins/.+?/assets/stylesheets"
|
2021-11-22 09:30:12 +08:00
|
|
|
run: yarn pprettier --list-different {staged_files}
|
2021-11-13 19:51:53 +08:00
|
|
|
eslint:
|
2020-03-03 03:30:23 +08:00
|
|
|
glob: "*.js"
|
2022-05-04 23:37:01 +08:00
|
|
|
include: "app/assets/javascripts|plugins/.+?/assets/javascripts"
|
|
|
|
run: yarn eslint -f compact --quiet {staged_files}
|
2020-02-07 00:26:06 +08:00
|
|
|
ember-template-lint:
|
2022-06-28 02:01:13 +08:00
|
|
|
glob: "*.hbs"
|
|
|
|
include: "app/assets/javascripts|plugins/.+?/assets/javascripts"
|
2020-04-15 13:57:28 +08:00
|
|
|
run: yarn run ember-template-lint {staged_files}
|
2019-07-02 17:29:52 +08:00
|
|
|
yaml-syntax:
|
2019-11-15 22:21:51 +08:00
|
|
|
glob: "*.{yaml,yml}"
|
2019-12-31 11:07:44 +08:00
|
|
|
# database.yml is an erb file not a yaml file
|
|
|
|
exclude: "database.yml"
|
2019-07-02 17:29:52 +08:00
|
|
|
run: bundle exec yaml-lint {staged_files}
|
2020-06-04 03:35:08 +08:00
|
|
|
i18n-lint:
|
|
|
|
glob: "**/{client,server}.en.yml"
|
|
|
|
run: bundle exec ruby script/i18n_lint.rb {staged_files}
|
2019-07-02 17:29:52 +08:00
|
|
|
|
|
|
|
lints:
|
|
|
|
parallel: true
|
|
|
|
commands:
|
|
|
|
rubocop:
|
2022-05-04 23:37:01 +08:00
|
|
|
glob: "*.rb"
|
2019-07-02 17:29:52 +08:00
|
|
|
run: bundle exec rubocop --parallel
|
|
|
|
prettier:
|
2022-05-04 23:37:01 +08:00
|
|
|
run: yarn pprettier --list-different **/*.js
|
2021-11-22 09:30:12 +08:00
|
|
|
prettier-scss:
|
2022-05-04 23:37:01 +08:00
|
|
|
run: yarn pprettier --list-different **/*.scss
|
|
|
|
eslint:
|
|
|
|
run: yarn eslint -f compact --quiet --ext .js .
|
|
|
|
ember-template-lint:
|
|
|
|
run: yarn run ember-template-lint .
|
|
|
|
yaml-syntax:
|
|
|
|
glob: "*.{yaml,yml}"
|
|
|
|
# database.yml is an erb file not a yaml file
|
|
|
|
exclude: "database.yml"
|
|
|
|
run: bundle exec yaml-lint {all_files}
|
2020-06-04 03:35:08 +08:00
|
|
|
i18n-lint:
|
|
|
|
glob: "**/{client,server}.en.yml"
|
|
|
|
run: bundle exec ruby script/i18n_lint.rb {all_files}
|