diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-07-19 17:16:28 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-07-19 17:16:28 +0300 |
commit | e4384360a16dd9a19d4d2d25d0ef1f2b862ed2a6 (patch) | |
tree | 2fcdfa7dcdb9db8f5208b2562f4b4e803d671243 /gems/config/rubocop.yml | |
parent | ffda4e7bcac36987f936b4ba515995a6698698f0 (diff) |
Add latest changes from gitlab-org/gitlab@16-2-stable-eev16.2.0-rc42
Diffstat (limited to 'gems/config/rubocop.yml')
-rw-r--r-- | gems/config/rubocop.yml | 98 |
1 files changed, 98 insertions, 0 deletions
diff --git a/gems/config/rubocop.yml b/gems/config/rubocop.yml new file mode 100644 index 00000000000..a97d759b471 --- /dev/null +++ b/gems/config/rubocop.yml @@ -0,0 +1,98 @@ +inherit_gem: + gitlab-styles: + - rubocop-default.yml + +require: + - ../../rubocop/rubocop + - rubocop-rspec + +inherit_mode: + merge: + - Include + - Exclude + - AllowedPatterns + +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: + Enabled: false + +# This cop doesn't make sense in the context of gems +Cop/PutGroupRoutesUnderScope: + Enabled: false + +# This cop doesn't make sense in the context of gems +Cop/PutProjectRoutesUnderScope: + Enabled: false + +Gemspec/AvoidExecutingGit: + Enabled: true + +# We disable this since we support multiple Ruby versions +Gemspec/RequiredRubyVersion: + Enabled: false + +# This cop doesn't make sense in the context of gems +Gitlab/DocUrl: + Enabled: false + +# This cop doesn't make sense in the context of gems +Gitlab/NamespacedClass: + Enabled: false + +# This cop doesn't make sense in the context of gems +Gitlab/RSpec/AvoidSetup: + Enabled: false + +# This cop doesn't make sense in the context of gems +Graphql/AuthorizeTypes: + Enabled: false + +# This cop doesn't make sense in the context of gems +Graphql/Descriptions: + Enabled: false + +Naming/FileName: + Exclude: + - spec/**/*.rb + +# This cop doesn't make sense in the context of gems +RSpec/AvoidConditionalStatements: + Enabled: false + +RSpec/ContextWording: + Prefixes: + - 'when' + - 'with' + - 'without' + - 'for' + - 'and' + - 'on' + - 'in' + - 'as' + - 'if' + +# This cop doesn't make sense in the context of gems +RSpec/MissingFeatureCategory: + Enabled: false + +# Enable once we drop 3.0 support +Style/HashSyntax: + Enabled: false + +Style/Lambda: + EnforcedStyle: literal + +Style/RegexpLiteralMixedPreserve: + Enabled: true + SupportedStyles: + - slashes + - percent_r + - mixed + - mixed_preserve + EnforcedStyle: mixed_preserve |