-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.rubocop.yml
55 lines (45 loc) · 1.2 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
Metrics/LineLength:
Max: 120
Style/Documentation:
Enabled: false
# Offense count: 5
Metrics/AbcSize:
Max: 100
# Offense count: 30
# Configuration parameters: CountComments, ExcludedMethods.
Metrics/BlockLength:
Max: 945
# Offense count: 4
Metrics/CyclomaticComplexity:
Max: 35
# Offense count: 5
# Configuration parameters: CountComments.
Metrics/MethodLength:
Max: 74
# Offense count: 2
# Configuration parameters: CountComments.
Metrics/ModuleLength:
Max: 215
# Offense count: 4
Metrics/PerceivedComplexity:
Max: 36
# Offense count: 3
Style/ClassVars:
Exclude:
- 'lib/jsonapi-serializers/serializer/instance_methods.rb'
# Offense count: 1
# Configuration parameters: ExpectMatchingDefinition, Regex, IgnoreExecutableScripts, AllowedAcronyms.
Style/FileName:
Exclude:
- 'lib/jsonapi-serializers.rb'
# Offense count: 7
# Configuration parameters: NamePrefix, NamePrefixBlacklist, NameWhitelist.
# NamePrefix: is_, has_, have_
# NamePrefixBlacklist: is_, has_, have_
# NameWhitelist: is_a?
Style/PredicateName:
Exclude:
- 'spec/**/*'
- 'lib/jsonapi-serializers/attributes.rb'
- 'lib/jsonapi-serializers/serializer.rb'
- 'lib/jsonapi-serializers/serializer/instance_methods.rb'