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