-
Notifications
You must be signed in to change notification settings - Fork 136
/
.rubocop.yml
82 lines (78 loc) · 1.77 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
Style/ClassAndModuleChildren:
Enabled: false
Style/Documentation:
Enabled: false
Style/HashSyntax:
Enabled: false # Disabled to support older ruby versions
Style/MutableConstant:
Enabled: false
Style/FormatString:
Enabled: false
Lint/RescueException:
Enabled: false
Lint/InheritException:
Enabled: false
# Disabling these new cops to keep parity with older Rubocop used for Ruby <=
# 3.0. Ideally, each of these should be checked, to choose whether to fix the
# offenses and enable it, or keep it disabled.
Lint/ScriptPermission:
Enabled: false
Style/FrozenStringLiteralComment:
Enabled: false
Lint/RedundantRequireStatement:
Enabled: false
Style/IfUnlessModifier:
Enabled: false
Style/RedundantFileExtensionInRequire:
Enabled: false
Style/ZeroLengthPredicate:
Enabled: false
Style/SoleNestedConditional:
Enabled: false
Style/OptionalBooleanParameter:
Enabled: false
Style/SafeNavigation:
Enabled: false
Style/AccessorGrouping:
Enabled: false
Layout/EmptyLineAfterGuardClause:
Enabled: false
Style/NumericPredicate:
Enabled: false
Style/RedundantReturn:
Enabled: false
Naming/RescuedExceptionsVariableName:
Enabled: false
Style/ClassEqualityComparison:
Enabled: false
Style/CaseLikeIf:
Enabled: false
Style/UnpackFirst:
Enabled: false
Layout/EmptyLineAfterGuardClause:
Enabled: false
Layout/LineLength:
Enabled: false
Lint/DuplicateMethods:
Enabled: false
Style/StringConcatenation:
Enabled: false
Lint/Void:
Enabled: false
Style/GlobalStdStream:
Enabled: false
Layout/EmptyLinesAroundAttributeAccessor:
Enabled: false
# TODO: Enable this and fix offenses
Metrics:
Enabled: false
AllCops:
Include:
- 'lib/**/*'
Exclude:
- 'Gemfile'
- 'Rakefile'
- 'mqtt.gemspec'
- 'examples/**'
- 'spec/**/*'
- 'vendor/**/*'