lint.sh 867 B

12345678910111213141516171819202122232425262728
  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 .rubocop/validate_todos.rb
  19. bundle exec rubocop --parallel
  20. echo "Coffeelint check..."
  21. coffeelint --rules ./.coffeelint/rules/* app/
  22. echo "Stylelint check..."
  23. yarn lint:css
  24. echo "ESLint check..."
  25. yarn lint