-
Notifications
You must be signed in to change notification settings - Fork 3.2k
/
.rubocop.yml
115 lines (92 loc) · 3.6 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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
require:
- rubocop-minitest
- rubocop-rake
AllCops:
TargetRubyVersion: 3.0
NewCops: enable
# Suppress noise for obvious operator precedence.
Lint/AmbiguousOperatorPrecedence:
Description: Checks for expressions containing multiple binary operations with ambiguous precedence.
Enabled: false
Layout/LineLength:
Description: This cop checks the length of lines in the source code. The maximum length is configurable.
Enabled: false
Lint/AmbiguousBlockAssociation:
Description: This cop checks for ambiguous block association with method when param passed without parentheses.
Enabled: false
Metrics/AbcSize:
Description: This cop checks that the ABC size of methods is not higher than the configured maximum.
Enabled: false
Metrics/BlockLength:
Description: This cop checks if the length of a block exceeds some maximum value.
Enabled: false
Metrics/ClassLength:
Description: This cop checks if the length a class exceeds some maximum value.
Enabled: false
Metrics/CyclomaticComplexity:
Description: A complexity metric that is strongly correlated to the number of test
cases needed to validate a method.
Enabled: false
Max: 6
Metrics/MethodLength:
Description: This cop checks if the length of a method exceeds some maximum value.
Enabled: false
Metrics/PerceivedComplexity:
Description: A complexity metric geared towards measuring complexity for a human reader.
Enabled: false
Max: 7
Naming/VariableNumber:
Description: Use the configured style when numbering symbols, methods and variables.
Enabled: false
Style/AsciiComments:
Description: This cop checks for non-ascii (non-English) characters in comments.
Exclude:
- 'lib/faker/default/university.rb'
Style/DateTime:
Description: This cop checks for consistent usage of the DateTime class over the Time class.
Enabled: false
Style/Documentation:
Description: This cop checks for missing top-level documentation of classes and modules.
Enabled: false
Style/DocumentDynamicEvalDefinition:
Description: When using `class_eval` (or other `eval`) with string interpolation, add a comment block showing its appearance if interpolated.
Enabled: false
Style/EvalWithLocation:
Description: This cop checks eval method usage. eval can receive source location metadata, that are filename and line number.
Exclude:
- 'lib/faker/default/json.rb'
Style/FormatStringToken:
Description: This cop checks for a consistent style for named format string tokens.
Enabled: false
Style/FrozenStringLiteralComment:
Description: Add the frozen_string_literal comment to the top of files to help transition from Ruby 2.3.0 to Ruby 3.0.
Exclude:
- 'lib/faker/default/json.rb'
- 'test/faker/default/test_faker_json.rb'
Style/For:
Description: Checks use of for or each in multiline loops.
StyleGuide: https://github.com/rubocop-hq/ruby-style-guide#no-for-loops
Enabled: false
EnforcedStyle: each
SupportedStyles:
- for
- each
Style/NumericLiteralPrefix:
Enabled: false
Style/RegexpLiteral:
Description: Use / or %r around regular expressions.
StyleGuide: https://github.com/rubocop-hq/ruby-style-guide#percent-r
Enabled: false
EnforcedStyle: slashes
SupportedStyles:
- slashes
- percent_r
- mixed
AllowInnerSlashes: false
Security/Eval:
Description: The use of eval represents a serious security risk.
Exclude:
- 'lib/faker/default/json.rb'
Style/IfUnlessModifier:
Description: Checks for `if` and `unless` statements that would fit on one line if written as modifier `if`/`unless`. The cop also checks for modifier `if`/`unless` lines that exceed the maximum line length.
Enabled: false