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