lint.sh 855 B

1234567891011121314151617181920212223242526
  1. #!/usr/bin/env bash
  2. set -o errexit
  3. set -o pipefail
  4. # shellcheck disable=SC1091
  5. source /etc/profile.d/rvm.sh
  6. # shellcheck disable=SC1091
  7. source .gitlab/environment.env
  8. echo "Checking .po file syntax…"
  9. for FILE in i18n/*.pot i18n/*.po; do echo "Checking $FILE"; msgfmt -o /dev/null -c "$FILE"; done
  10. echo "Checking .pot catalog consistency…"
  11. bundle exec rails generate zammad:translation_catalog --check
  12. echo "Brakeman security check…"
  13. bundle exec brakeman -o /dev/stdout -o tmp/brakeman-report.html
  14. echo "Rails zeitwerk:check autoloader check…"
  15. bundle exec rails zeitwerk:check
  16. .gitlab/check_graphql_api_consistency.sh
  17. echo "Rubocop check…"
  18. bundle exec .dev/rubocop/validate_todos.rb
  19. bundle exec rubocop --parallel
  20. echo "Coffeelint check…"
  21. coffeelint --rules ./.dev/coffeelint/rules/* app/
  22. echo "Type, ESLint & Stylelint checks…"
  23. yarn lint