diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-08-16 15:12:38 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-08-16 15:12:38 +0300 |
commit | 93fb07b8c9edb0f3e860d7670b47e03a136d1a57 (patch) | |
tree | 3a0def9b247850b5510e11faafd628101bb9c06f /scripts | |
parent | d75ac09b4a880ba2d36d510a5720dd550b0809e9 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/lint-vendored-gems.sh | 5 | ||||
-rwxr-xr-x | scripts/static-analysis | 3 |
2 files changed, 7 insertions, 1 deletions
diff --git a/scripts/lint-vendored-gems.sh b/scripts/lint-vendored-gems.sh new file mode 100755 index 00000000000..ac8b837bbd1 --- /dev/null +++ b/scripts/lint-vendored-gems.sh @@ -0,0 +1,5 @@ +#!/bin/sh + +# Rubocop doesn't have a good way to run excluded files without a separate invocation: +# https://github.com/rubocop/rubocop/issues/6323 +find vendor/gems -name \*.gemspec | xargs bundle exec rubocop --only Gemspec/AvoidExecutingGit diff --git a/scripts/static-analysis b/scripts/static-analysis index afebb86bef8..1e9fe1cc724 100755 --- a/scripts/static-analysis +++ b/scripts/static-analysis @@ -59,7 +59,8 @@ class StaticAnalysis Task.new(%w[yarn run block-dependencies], 1), Task.new(%w[yarn run check-dependencies], 1), Task.new(%w[scripts/lint-rugged], 1), - Task.new(%w[scripts/gemfile_lock_changed.sh], 1) + Task.new(%w[scripts/gemfile_lock_changed.sh], 1), + Task.new(%w[scripts/lint-vendored-gems.sh], 1) ].compact.freeze def run_tasks!(options = {}) |