-
Notifications
You must be signed in to change notification settings - Fork 5
/
.rubocop.yml
75 lines (64 loc) · 1.75 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
require:
- rubocop-rails
- rubocop-rspec
- rubocop-factory_bot
AllCops:
SuggestExtensions: false
NewCops: enable
Exclude:
- db/schema.rb
- db/migrate/*
# Travis installs gems in the vendor directory, which causes rubocop to try
# and cop our gems. We don't want it to.
- vendor/**/*
- 'test/**/*'
- 'spec/**/*'
- 'config/routes.rb'
- 'config/initializers/secret_token.rb'
- 'config/initializers/backtrace_silencers.rb'
- 'config/environments/*'
- 'bin/*'
- 'config/application.rb'
- 'config/initializers/content_security_policy.rb'
# The cop is meant to enforce conventions regarding variables containing numbers
# However in 0.43.0 it is bugged. Both changed on master and disabled by default
# The exclusions don't even get added to the rubocop_todo properly!
Naming/VariableNumber:
Enabled: false
Rails:
Enabled: true
Rails/FilePath:
EnforcedStyle: arguments
# Enforces 1234565789 as 123_456_789: While nice when dealing with actual big
# numbers, we're more likely to see it shout at us about barcodes.
Style/NumericLiterals:
Enabled: false
Style/AsciiComments:
Enabled: false
Style/HashSyntax:
Enabled: false
Naming/BlockForwarding:
Enabled: false
Metrics/BlockLength:
Exclude:
- 'test/**/*'
- 'spec/**/*'
- 'config/routes.rb'
- 'lib/tasks/*'
Metrics/MethodLength:
Max: 12
Exclude:
- 'db/migrate/*'
Layout/LineLength:
Max: 100
Exclude:
- 'lib/tasks/*'
Layout/FirstArrayElementIndentation:
EnforcedStyle: consistent
Style/ClassAndModuleChildren:
Enabled: false
Naming/FileName:
Exclude:
- 'app/label_printer/label_printer/print_job/IPP.rb'
- 'app/label_printer/label_printer/print_job/LPD.rb'
- 'app/label_printer/label_printer/print_job/TOF.rb'