From 7a58833799e2adb4d241f5e2275ac0ed879fdfd2 Mon Sep 17 00:00:00 2001 From: Dan Notestein Date: Sat, 3 Jan 2026 13:48:33 -0500 Subject: [PATCH] Use lint templates from common-ci-configuration --- .gitlab-ci.yml | 44 ++++++++++---------------------------------- 1 file changed, 10 insertions(+), 34 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index e313cb4..f006030 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -148,44 +148,20 @@ detect_changes: tags: - public-runner-docker -.lint_job: - stage: lint - variables: - GIT_SUBMODULE_STRATEGY: none - artifacts: - name: lint-results - when: always - tags: - - public-runner-docker +# ============================================================================= +# LINT JOBS - Using common-ci-configuration templates +# ============================================================================= lint_bash_scripts: - extends: .lint_job - image: koalaman/shellcheck-alpine:latest - before_script: - - apk add xmlstarlet - script: - # Exclude .git and haf submodule (submodules may be stale from other jobs using fetch strategy) - - find . -name .git -type d -prune -o -path ./haf -prune -o -type f -name \*.sh -exec shellcheck -f checkstyle - {} + | tee shellcheck-checkstyle-result.xml - after_script: - - xmlstarlet tr misc/checkstyle2junit.xslt shellcheck-checkstyle-result.xml > shellcheck-junit-result.xml - artifacts: - paths: - - shellcheck-checkstyle-result.xml - - shellcheck-junit-result.xml - reports: - junit: shellcheck-junit-result.xml + extends: .haf_app_lint_bash + stage: lint + variables: + LINT_SCRIPTS_DIR: "." + LINT_EXCLUDE_PATHS: "haf" lint_sql_scripts: - extends: .lint_job - image: - name: sqlfluff/sqlfluff:2.1.4 - entrypoint: [""] - script: - - sqlfluff lint --format yaml --write-output sql-lint.yaml - artifacts: - paths: - - sql-lint.yaml + extends: .haf_app_lint_sql + stage: lint validate_haf_commit: extends: .haf_commit_validation -- GitLab