Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/lint-vendored-gems.sh')
-rwxr-xr-xscripts/lint-vendored-gems.sh5
1 files changed, 5 insertions, 0 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