diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-12-21 18:12:00 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-12-21 18:12:00 +0300 |
commit | 6323146895db2be6f04846b3c98060b7349207b9 (patch) | |
tree | 9b29de45421be0a9a6126001bd920d780467b1db /gems | |
parent | 2779809e45970e7660521b94dbebcf24ed00d60d (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'gems')
-rw-r--r-- | gems/config/rubocop.yml | 9 | ||||
-rw-r--r-- | gems/gitlab-housekeeper/Gemfile.lock | 2 | ||||
-rw-r--r-- | gems/gitlab-secret_detection/lib/gitlab/secret_detection/scan.rb | 2 |
3 files changed, 7 insertions, 6 deletions
diff --git a/gems/config/rubocop.yml b/gems/config/rubocop.yml index ca46e30e2cd..7cad83bbe66 100644 --- a/gems/config/rubocop.yml +++ b/gems/config/rubocop.yml @@ -96,10 +96,6 @@ RSpec/ContextWording: RSpec/FeatureCategory: Enabled: false -# Enable once we drop 3.0 support -Style/HashSyntax: - Enabled: false - Style/InlineDisableAnnotation: Enabled: false @@ -114,3 +110,8 @@ Style/RegexpLiteralMixedPreserve: - mixed - mixed_preserve EnforcedStyle: mixed_preserve + +# Short-hand Hash syntax does not work prior 3.1. +# See https://gitlab.com/gitlab-org/gitlab/-/issues/435940#note_1703307479 +Style/HashSyntax: + EnforcedShorthandSyntax: never diff --git a/gems/gitlab-housekeeper/Gemfile.lock b/gems/gitlab-housekeeper/Gemfile.lock index 2b18c02558c..8da2b8cd8c9 100644 --- a/gems/gitlab-housekeeper/Gemfile.lock +++ b/gems/gitlab-housekeeper/Gemfile.lock @@ -122,7 +122,7 @@ GEM hashdiff (>= 0.4.0, < 2.0.0) PLATFORMS - arm64-darwin-22 + ruby DEPENDENCIES gitlab-housekeeper! diff --git a/gems/gitlab-secret_detection/lib/gitlab/secret_detection/scan.rb b/gems/gitlab-secret_detection/lib/gitlab/secret_detection/scan.rb index 20d630d5dbb..802ae9fefdd 100644 --- a/gems/gitlab-secret_detection/lib/gitlab/secret_detection/scan.rb +++ b/gems/gitlab-secret_detection/lib/gitlab/secret_detection/scan.rb @@ -152,7 +152,7 @@ module Gitlab # ignore the line scan if it is suffixed with '#gitleaks:allow' next if line.end_with?(GITLEAKS_KEYWORD_IGNORE) - patterns = pattern_matcher.match(line, :exception => false) + patterns = pattern_matcher.match(line, exception: false) next unless patterns.any? line_number = index + 1 |