diff options
Diffstat (limited to '.gitlab/ci/rules.gitlab-ci.yml')
-rw-r--r-- | .gitlab/ci/rules.gitlab-ci.yml | 27 |
1 files changed, 16 insertions, 11 deletions
diff --git a/.gitlab/ci/rules.gitlab-ci.yml b/.gitlab/ci/rules.gitlab-ci.yml index 4aacf611123..6b2cc01bfb8 100644 --- a/.gitlab/ci/rules.gitlab-ci.yml +++ b/.gitlab/ci/rules.gitlab-ci.yml @@ -328,7 +328,6 @@ - "danger/**/*" - "{,ee/,jh/}fixtures/**/*" - "{,ee/,jh/}rubocop/**/*" - - ".rubocop_todo/**/*.yml" - "{,ee/,jh/}spec/**/*" - "{,spec/}tooling/**/*" @@ -346,8 +345,7 @@ - "Dockerfile.assets" - "vendor/assets/**/*" - ".{eslintignore,gitattributes,nvmrc,prettierrc,stylelintrc,yamllint}" - - ".{codeclimate,eslintrc,gitlab-ci,haml-lint,haml-lint_todo,rubocop,rubocop_todo}.yml" - - ".rubocop_todo/**/*.yml" + - ".gitlab-ci.yml" - "*_VERSION" - "{,jh/}Gemfile{,.lock}" - "Rakefile" @@ -371,8 +369,7 @@ - "Dockerfile.assets" - "vendor/assets/**/*" - ".{eslintignore,gitattributes,nvmrc,prettierrc,stylelintrc,yamllint}" - - ".{codeclimate,eslintrc,gitlab-ci,haml-lint,haml-lint_todo,rubocop,rubocop_todo}.yml" - - ".rubocop_todo/**/*.yml" + - ".gitlab-ci.yml" - "*_VERSION" - "{,jh/}Gemfile{,.lock}" - "Rakefile" @@ -403,8 +400,7 @@ - "Dockerfile.assets" - "vendor/assets/**/*" - ".{eslintignore,gitattributes,nvmrc,prettierrc,stylelintrc,yamllint}" - - ".{codeclimate,eslintrc,gitlab-ci,haml-lint,haml-lint_todo,rubocop,rubocop_todo}.yml" - - ".rubocop_todo/**/*.yml" + - ".gitlab-ci.yml" - "*_VERSION" - "{,jh/}Gemfile{,.lock}" - "Rakefile" @@ -431,8 +427,7 @@ - "Dockerfile.assets" - "vendor/assets/**/*" - ".{eslintignore,gitattributes,nvmrc,prettierrc,stylelintrc,yamllint}" - - ".{codeclimate,eslintrc,gitlab-ci,haml-lint,haml-lint_todo,rubocop,rubocop_todo}.yml" - - ".rubocop_todo/**/*.yml" + - ".gitlab-ci.yml" - "*_VERSION" - "{,jh/}Gemfile{,.lock}" - "Rakefile" @@ -466,8 +461,7 @@ - "Dockerfile.assets" - "vendor/assets/**/*" - ".{eslintignore,gitattributes,nvmrc,prettierrc,stylelintrc,yamllint}" - - ".{codeclimate,eslintrc,gitlab-ci,haml-lint,haml-lint_todo,rubocop,rubocop_todo}.yml" - - ".rubocop_todo/**/*.yml" + - ".gitlab-ci.yml" - "*_VERSION" - "{,jh/}Gemfile{,.lock}" - "Rakefile" @@ -497,6 +491,12 @@ - "scripts/lint_templates_bash.rb" - "lib/gitlab/ci/templates/**/*.gitlab-ci.yml" +.static-analysis-patterns: &static-analysis-patterns + - ".{codeclimate,eslintrc,haml-lint,haml-lint_todo}.yml" + - ".rubocop.yml" + - ".rubocop_todo.yml" + - ".rubocop_todo/**/*.yml" + .danger-patterns: &danger-patterns - "Dangerfile" - "danger/**/*" @@ -1440,16 +1440,19 @@ .static-analysis:rules:ee-and-foss: rules: - changes: *code-backstage-qa-patterns + - changes: *static-analysis-patterns .static-analysis:rules:ee-and-foss-qa: rules: - changes: *qa-patterns + - changes: *static-analysis-patterns .static-analysis:rules:ee: rules: - <<: *if-not-ee when: never - changes: *code-backstage-qa-patterns + - changes: *static-analysis-patterns .static-analysis:rules:as-if-foss: rules: @@ -1461,6 +1464,8 @@ changes: *code-backstage-qa-patterns - <<: *if-merge-request changes: *ci-patterns + - <<: *if-merge-request + changes: *static-analysis-patterns .semgrep-appsec-custom-rules:rules: rules: |