-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.rubocop.yml
48 lines (37 loc) · 1.16 KB
/
.rubocop.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
inherit_gem:
rubocop-shopify: rubocop.yml
require:
- rubocop-performance
AllCops:
TargetRubyVersion: 3.3
NewCops: disable
UseCache: true
SuggestExtensions: false
CacheRootDirectory: tmp
Exclude:
- 'tmp/**/*'
# These are non-standard Rubocop settings that we choose to override.
Style/StringLiterals:
EnforcedStyle: single_quotes
# Require a space in lambda notation `-> (...)` instead of `->(...)`
# The space notation is much more common
Layout/SpaceInLambdaLiteral:
EnforcedStyle: require_space
# Permit empty case statements
Style/EmptyCaseCondition:
Enabled: false
# Do not enforce alphabetized Gemfile. We need gems with hooks loaded in a particular order (e.g. Instana, Sentry, Bugsnag etc etc)
Bundler/OrderedGems:
Enabled: false
# Permit double negation (!!)
Style/DoubleNegation:
Enabled: false
# Name the exception var
Naming/RescuedExceptionsVariableName:
Enabled: true
# Prefer alias_method over alias, see https://github.com/rubocop/ruby-style-guide/issues/821 and https://www.bigbinary.com/blog/alias-vs-alias-method
Style/Alias:
Enabled: true
EnforcedStyle: prefer_alias_method
Style/RedundantConstantBase:
Enabled: false