-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.rubocop.yml
86 lines (65 loc) · 1.88 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
# I can't get the requires to work with sublime:
# SEE: https://github.com/pderichs/sublime_rubocop/issues/66
# -- https://gist.github.com/topher6345/4f921ca3e7938132563e
# -- https://forum.sublimetext.com/t/run-command-after-saving-file/44016
# -- https://medium.com/devnetwork/running-rubocop-only-on-modified-files-a21aed86e06d
# -- https://code.tutsplus.com/tutorials/how-to-create-a-sublime-text-2-plugin--net-22685
# -- https://github.com/SublimeLinter/SublimeLinter-rubocop/issues/19
# -- https://github.com/fnando/sublime-codefmt
# -- https://github.com/fnando/sublime-switch-case
# -- https://github.com/fnando/sublime-rubocop-completion/issues/1
# required these fixes:
# -- install PackageDev https://forum.sublimetext.com/t/pathlib-not-found-in-purchased-version/49978
# -- download all 3 packages via git clone rather than package manager
# -- renamed several files and directories to match
# -- brew update
# -- brew doctor
# -- brew install prettier yapf
require:
- rubocop-performance
- rubocop-rspec
AllCops:
TargetRubyVersion: 2.5
NewCops: enable
Style/Documentation:
Enabled: false
Naming/VariableNumber:
Enabled: false
Metrics/BlockLength:
Exclude:
- "**/*.rake"
- "config/**/*"
- "Rakefile"
- "spec/**/*.rb"
- "*.gemspec"
Layout/LineLength:
Max: 120
Style/BlockComments:
Enabled: false
Style/ClassAndModuleChildren:
Enabled: false
Style/RedundantBegin:
Enabled: false
Style/StringLiterals:
EnforcedStyle: single_quotes
Style/StringLiteralsInInterpolation:
Enabled: true
Style/WordArray:
EnforcedStyle: brackets
Metrics/MethodLength:
Max: 15
Style/HashSyntax:
Enabled: false
Style/StringHashKeys:
Enabled: false
Metrics/AbcSize:
Enabled: false
Layout/DotPosition:
Enabled: false
Lint/AmbiguousBlockAssociation:
Exclude:
- "spec/**/*"
RSpec/NamedSubject:
Enabled: false
# Rails:
# Enabled: true