forked from usgo/gocongress
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.rubocop.yml
78 lines (61 loc) · 1.84 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
inherit_from: .rubocop_todo.yml
AllCops:
Exclude:
- '.git/**/*'
- 'bin/**/*'
- db/schema.rb
- 'node_modules/**/*'
- 'tmp/**/*'
- 'vendor/**/*'
NewCops: enable
SuggestExtensions: false
Layout/ArgumentAlignment:
EnforcedStyle: with_fixed_indentation
Layout/EmptyLineAfterGuardClause:
Enabled: false
Layout/FirstArrayElementIndentation:
EnforcedStyle: consistent
Layout/FirstHashElementIndentation:
EnforcedStyle: consistent
Layout/LineLength:
Exclude:
- db/schema.rb
Max: 200
Layout/MultilineMethodCallIndentation:
EnforcedStyle: indented
# Not useful compared to e.g. `Metrics/AbcSize`
Metrics/BlockLength:
Enabled: false
# Not useful compared to e.g. `Metrics/AbcSize`
Metrics/ClassLength:
Enabled: false
# Not useful compared to e.g. `Metrics/AbcSize`
Metrics/MethodLength:
Enabled: false
# Not useful compared to e.g. `Metrics/AbcSize`
Metrics/ModuleLength:
Enabled: false
# Use a meaningful delimiter for e.g. SQL. Otherwise, not important.
Naming/HeredocDelimiterNaming:
Enabled: false
# Single-letter names are OK. For example, `x` and `y` are reasonable parameter
# names if you're working with Cartesian points.
Naming/MethodParameterName:
MinNameLength: 1
# Concerns:
# 1. In 0.52.0, this complains about `strftime('%x')`. Annotating tokens in
# e.g. strftime would just be duplicating documentation.
# 2. Annotating tokens in long format strings could make such lines very long.
# 3. Annotation is not necessary in format strings with small numbers of tokens.
Style/FormatStringToken:
Enabled: false
Style/GlobalStdStream:
Exclude:
- config/environments/production.rb
Style/NumericLiterals:
Exclude:
- db/schema.rb
# Use `x > 0` because it is more specific than `x.positive?`.
# However, `x.zero?` is acceptable because it is specific enough.
Style/NumericPredicate:
Enabled: false