forked from openSUSE/open-build-service
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.rubocop.yml
59 lines (43 loc) · 1.18 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
inherit_from: .rubocop_todo.yml
AllCops:
UseCache: true
CacheRootDirectory: src/api/tmp/rubocop_cache_root_dir
MaxFilesInCache: 2000
Exclude:
- 'src/api/**/*'
- 'docs/api/restility/**/*'
- 'src/backend/**/*'
# These files are RPM spec files
- 'dist/*.spec'
- 'dist/t/spec/fixtures/ctris.spec'
#################### Layout ###########################
Layout/AlignHash:
EnforcedHashRocketStyle: table
EnforcedColonStyle: table
EnforcedLastArgumentHashStyle: ignore_implicit
# We decide disable this cop because we can't reach an agreement
Layout/DotPosition:
Enabled: false
Layout/EndAlignment:
EnforcedStyleAlignWith: variable
#################### Style ###########################
Style/Alias:
EnforcedStyle: 'prefer_alias_method'
Style/CommandLiteral:
EnforcedStyle: percent_x
Style/Documentation:
Enabled: false
Style/RedundantReturn:
Enabled: false
Style/SymbolArray:
EnforcedStyle: brackets
Style/WordArray:
EnforcedStyle: brackets
##################### Metrics ##################################
Metrics/ClassLength:
Severity: refactor
Metrics/LineLength:
Max: 150
IgnoredPatterns: ['\A#']
Metrics/ModuleLength:
Severity: refactor