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