diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-07-14 00:10:39 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-07-14 00:10:39 +0300 |
commit | 75f2fd2ba85fea64ee1a42f704c4872282f55eb5 (patch) | |
tree | faddaa823afeeffdc82b18af06018d9c1b8bad94 /gems/config | |
parent | e62d575077d6265497d7bbc7a31548ab15908a9e (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'gems/config')
-rw-r--r-- | gems/config/rubocop.yml | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/gems/config/rubocop.yml b/gems/config/rubocop.yml index 3458998e114..a97d759b471 100644 --- a/gems/config/rubocop.yml +++ b/gems/config/rubocop.yml @@ -16,6 +16,7 @@ AllCops: # Target the current Ruby version. For example, "3.0" or "3.1". TargetRubyVersion: <%= RUBY_VERSION[/^\d+\.\d+/, 0] %> SuggestExtensions: false + NewCops: disable # This cop doesn't make sense in the context of gems CodeReuse/ActiveRecord: @@ -60,6 +61,10 @@ Naming/FileName: Exclude: - spec/**/*.rb +# This cop doesn't make sense in the context of gems +RSpec/AvoidConditionalStatements: + Enabled: false + RSpec/ContextWording: Prefixes: - 'when' @@ -80,6 +85,9 @@ RSpec/MissingFeatureCategory: Style/HashSyntax: Enabled: false +Style/Lambda: + EnforcedStyle: literal + Style/RegexpLiteralMixedPreserve: Enabled: true SupportedStyles: |