forked from faker-ruby/faker
-
Notifications
You must be signed in to change notification settings - Fork 3
/
.rubocop.yml
94 lines (76 loc) · 2.79 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
AllCops:
TargetRubyVersion: 2.3
Lint/AmbiguousBlockAssociation:
Description: This cop checks for ambiguous block association with method when param passed without parentheses.
Enabled: false
Lint/UnifiedInteger:
Description: This cop checks for using Fixnum or Bignum constant.
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/LineLength:
Description: This cop checks the length of lines in the source code. The maximum length is configurable.
Enabled: false
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
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/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.
Exclude:
- 'lib/faker/default/company.rb'
- 'lib/faker/default/id_number.rb'
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'