Skip to content

Commit 50e2aa1

Browse files
committed
(CONT-807) Update Rubocop
1 parent cb69b6a commit 50e2aa1

File tree

1 file changed

+12
-74
lines changed

1 file changed

+12
-74
lines changed

.rubocop.yml

Lines changed: 12 additions & 74 deletions
Original file line numberDiff line numberDiff line change
@@ -1,81 +1,19 @@
1-
---
21
inherit_from: .rubocop_todo.yml
32

43
require:
5-
- rubocop-performance
6-
- rubocop-rspec
4+
- rubocop-performance
5+
- rubocop-rspec
76

87
AllCops:
9-
DisplayCopNames: true
10-
SuggestExtensions: false
8+
Exclude:
9+
- Gemfile
10+
- Rakefile
11+
- spec/fixtures/**/*
12+
- vendor/bundle/**/*
1113
NewCops: enable
14+
SuggestExtensions: false
1215
TargetRubyVersion: '2.7'
13-
Include:
14-
- "**/*.rb"
15-
Exclude:
16-
- bin/*
17-
- ".vendor/**/*"
18-
- "**/Gemfile"
19-
- "**/Rakefile"
20-
- pkg/**/*
21-
- spec/fixtures/**/*
22-
- vendor/**/*
23-
- "**/Puppetfile"
24-
- "**/Vagrantfile"
25-
- "**/Guardfile"
26-
- '**/*.erb'
27-
- 'lib/puppet-strings/yard/templates/**/*'
28-
Layout/LineLength:
29-
Description: People have wide screens, use them.
30-
Max: 200
31-
RSpec/BeforeAfterAll:
32-
Description: Beware of using after(:all) as it may cause state to leak between tests.
33-
A necessary evil in acceptance testing.
34-
Exclude:
35-
- spec/acceptance/**/*.rb
36-
RSpec/HookArgument:
37-
Description: Prefer explicit :each argument, matching existing module's style
38-
EnforcedStyle: each
39-
Style/BlockDelimiters:
40-
Description: Prefer braces for chaining. Mostly an aesthetical choice. Better to
41-
be consistent then.
42-
EnforcedStyle: braces_for_chaining
43-
Style/EmptyElse:
44-
Description: Enforce against empty else clauses, but allow `nil` for clarity.
45-
EnforcedStyle: empty
46-
Style/FormatString:
47-
Description: Following the main puppet project's style, prefer the % format format.
48-
EnforcedStyle: percent
49-
Style/FormatStringToken:
50-
Description: Following the main puppet project's style, prefer the simpler template
51-
tokens over annotated ones.
52-
EnforcedStyle: template
53-
Style/Lambda:
54-
Description: Prefer the keyword for easier discoverability.
55-
EnforcedStyle: literal
56-
Style/RegexpLiteral:
57-
Description: Community preference. See https://github.com/voxpupuli/modulesync_config/issues/168
58-
EnforcedStyle: percent_r
59-
Style/TernaryParentheses:
60-
Description: Checks for use of parentheses around ternary conditions. Enforce parentheses
61-
on complex expressions for better readability, but seriously consider breaking
62-
it up.
63-
EnforcedStyle: require_parentheses_when_complex
64-
Style/TrailingCommaInArguments:
65-
Description: Prefer always trailing comma on multiline argument lists. This makes
66-
diffs, and re-ordering nicer.
67-
EnforcedStyleForMultiline: comma
68-
Style/TrailingCommaInArrayLiteral:
69-
Description: Prefer always trailing comma on multiline literals. This makes diffs,
70-
and re-ordering nicer.
71-
EnforcedStyleForMultiline: comma
72-
Style/SymbolArray:
73-
Description: Using percent style obscures symbolic intent of array's contents.
74-
EnforcedStyle: brackets
75-
RSpec/MessageSpies:
76-
EnforcedStyle: receive
77-
Style/Documentation:
78-
Exclude:
79-
- spec/**/*
80-
Style/WordArray:
81-
EnforcedStyle: brackets
16+
17+
# Disabled
18+
Style/ClassAndModuleChildren:
19+
Enabled: false

0 commit comments

Comments
 (0)