-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.rubocop.yml
69 lines (58 loc) · 1.33 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
inherit_gem:
syntax_tree: config/rubocop.yml
require:
- rubocop-capybara
- rubocop-factory_bot
- rubocop-performance
- rubocop-rails
# TODO: turning this on breaks alot of tests. must be the given -> let change
# - rubocop-rspec
AllCops:
NewCops: enable
Exclude:
- bin/**
- db/**/*
Layout/LineLength:
Max: 120
Rails/DynamicFindBy:
Whitelist:
- find_by_sql
- find_by_identifying_attribute
Style/Documentation:
Enabled: false
Style/StringLiterals:
Enabled: true
EnforcedStyle: single_quotes
Style/StringLiteralsInInterpolation:
Enabled: true
EnforcedStyle: single_quotes
Style/QuotedSymbols:
Enabled: true
EnforcedStyle: single_quotes
Metrics/ClassLength:
CountAsOne: ['heredoc', 'hash', 'array']
Metrics/ModuleLength:
CountAsOne: ['heredoc', 'hash', 'array']
# Rely on ABC complexity for deciding whether a method is too long, not the
# amount of text.
Metrics/MethodLength:
CountAsOne: ['heredoc', 'hash', 'array']
#TODO:
Metrics/BlockLength:
CountAsOne: ['heredoc', 'hash', 'array']
Max: 310
Naming/MethodParameterName:
Enabled: false
Style/StderrPuts:
Enabled: false
Naming/VariableNumber:
Enabled: false
Rails/InverseOf:
Enabled: false
Lint/MissingSuper:
Enabled: false
Capybara/SpecificMatcher:
Enabled: false
FactoryBot/ExcessiveCreateList:
Enabled: true
MaxAmount: 20