From f663729aedb6779b94f4e3299c866b4a5d82bb06 Mon Sep 17 00:00:00 2001 From: Dan Notestein Date: Sat, 3 Jan 2026 14:01:28 -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 c849a2a1..318ac284 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -149,44 +149,20 @@ default: fi ) -.lint_job: - extends: .job-defaults - 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: - - find . -name .git -type d -prune -o -name submodules -type d -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: "submodules" 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 # Quick Test Mode Setup - overrides HAF_COMMIT with cached version quick_test_setup: -- GitLab