blob: 555eea72e4d97262a3a6e05a58e7440dc9293dc8 (
plain)
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
|
AllCops:
TargetRubyVersion: 2.5
DisplayCopNames: true
DisplayStyleGuide: false
Exclude:
- './_site/**/*'
#
# Layout
#
# This is a remnant of old SUSE-style alignment for hashes, The table format
# looks more human readable.
Layout/HashAlignment:
EnforcedHashRocketStyle: table
EnforcedColonStyle: table
# The default is just too small. A limit of 100 looks reasonable and many other
# projects (including inside of SUSE) are also using this value.
Layout/LineLength:
Max: 100
#
# Metrics
#
# The default is just too small.
Metrics/AbcSize:
Max: 30
Metrics/MethodLength:
Max: 20
#
# Style
#
# This forces us to create a new object for no real reason.
Style/MultipleComparison:
Enabled: false
# This is a common SUSE configuration value: the performance difference between
# single and double quotes is no longer there, and so it's better to be
# consistent and force only double quotes.
Style/StringLiterals:
EnforcedStyle: double_quotes
# Same as Style/StringLiterals.
Style/StringLiteralsInInterpolation:
EnforcedStyle: double_quotes
Style/AsciiComments:
Enabled: false
## New stuff
Style/HashEachMethods:
Enabled: true
Style/HashTransformKeys:
Enabled: true
Style/HashTransformValues:
Enabled: true
|