mirror of
https://github.com/zammad/zammad
synced 2026-05-24 09:48:36 +00:00
30 lines
913 B
Bash
Executable file
30 lines
913 B
Bash
Executable file
#!/usr/bin/env bash
|
|
|
|
set -o errexit
|
|
set -o pipefail
|
|
|
|
# shellcheck disable=SC1091
|
|
source /etc/profile.d/rvm.sh
|
|
# shellcheck disable=SC1091
|
|
source .gitlab/environment.env
|
|
|
|
echo "Checking .po file syntax…"
|
|
for FILE in i18n/*.pot i18n/*.po; do echo "Checking $FILE"; msgfmt -o /dev/null -c "$FILE"; done
|
|
echo "Checking .pot catalog consistency…"
|
|
bundle exec rails generate zammad:translation_catalog --check
|
|
echo "Brakeman security check…"
|
|
bundle exec brakeman -o /dev/stdout -o tmp/brakeman-report.html
|
|
echo "Rails zeitwerk:check autoloader check…"
|
|
bundle exec rails zeitwerk:check
|
|
.gitlab/check_graphql_api_consistency.sh
|
|
echo "Rubocop check…"
|
|
bundle exec .dev/rubocop/validate_todos.rb
|
|
bundle exec rubocop --parallel
|
|
echo "Coffeelint check…"
|
|
coffeelint --rules ./.dev/coffeelint/rules/* app/
|
|
echo "Type check…"
|
|
pnpm lint:ts
|
|
echo "ESLint check…"
|
|
pnpm lint:js
|
|
echo "Stylelint check…"
|
|
pnpm lint:css
|