-
Notifications
You must be signed in to change notification settings - Fork 0
/
.rubocop.yml
60 lines (43 loc) · 1.72 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
# Our projects prefer an explicit syntax that's fairly easily portable to/between C like languages.
# This includes forcing parenthesis even when they are not required, and explciltly require most
# implicit statements.
AsciiIdentifiers:
Enabled: false # 日本語使えるから使わせて貰うわ
AsciiComments:
Enabled: false # 英語版は英語のコメント添えているからいい・・・
AccessorMethodName:
Enabled: false # Protocol method verbs are the exception
Style/MethodName:
Enabled: false # Different method usage should be designated with different styles
Style/DefWithParentheses:
Enabled: false # While a lot of people don't like parenthesis they can often add clarification
Metrics/MethodLength:
Max: 17 # A ton of one-off helper methods is worse than a longer method
Metrics/ClassLength:
Max: 199 # Splitting some mix-ins can make code harder to read - add a little leeway
Style/ClassVars:
Enabled: false # We're using them on purpose as static containers, instance vars won't retain
Lint/UselessAccessModifier:
Enabled: false # without private designator methods were not private... rubocop bug?
LineLength:
Max: 100 # safe for documentation
RedundantReturn:
Enabled: false # flow control should be clear
VariableName:
Enabled: false # we use proper names for static globals
Style/NumericLiterals:
Enabled: false # just ugly if we're not doing scientific work
Style/MethodCallWithoutArgsParentheses:
Enabled: false # prefer explicit calling
Style/GlobalVars:
Enabled: false # use them when apropriate, don't abuse them
AllCops:
Exclude:
- 'Gemfile'
- 'Guardfile'
- 'manabu.gemspec'
Metrics/BlockLength:
Exclude:
- 'Rakefile'
- '**/*.rake'
- 'spec/**/*.rb'