kpn-style 0.1.7 → 0.1.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.gitignore +14 -14
- data/Gemfile +4 -4
- data/LICENSE +201 -201
- data/README.md +114 -106
- data/Rakefile +1 -1
- data/kpn_style.gemspec +32 -32
- data/lib/kpn/style/version.rb +3 -3
- data/lib/kpn/style.rb +5 -5
- data/ruby-2.1.yml +107 -107
- data/ruby-2.4-strict.yml +107 -107
- data/ruby-2.4.yml +109 -109
- data/ruby-2.5.yml +268 -268
- data/ruby-2.7.yml +554 -0
- metadata +12 -11
data/ruby-2.4-strict.yml
CHANGED
@@ -1,107 +1,107 @@
|
|
1
|
-
---
|
2
|
-
require: rubocop-rspec
|
3
|
-
AllCops:
|
4
|
-
DisplayCopNames: true
|
5
|
-
TargetRubyVersion: '2.4'
|
6
|
-
Include:
|
7
|
-
- "**/*.rb"
|
8
|
-
Exclude:
|
9
|
-
- bin/*
|
10
|
-
- ".vendor/**/*"
|
11
|
-
- Gemfile
|
12
|
-
- Rakefile
|
13
|
-
- pkg/**/*
|
14
|
-
- spec/fixtures/**/*
|
15
|
-
- vendor/**/*
|
16
|
-
Metrics/LineLength:
|
17
|
-
Description: People have wide screens, use them.
|
18
|
-
Max: 240
|
19
|
-
RSpec/BeforeAfterAll:
|
20
|
-
Description: Beware of using after(:all) as it may cause state to leak between tests.
|
21
|
-
A necessary evil in acceptance testing.
|
22
|
-
Exclude:
|
23
|
-
- spec/acceptance/**/*.rb
|
24
|
-
RSpec/HookArgument:
|
25
|
-
Description: Prefer explicit :each argument, matching existing module's style
|
26
|
-
EnforcedStyle: each
|
27
|
-
Style/BlockDelimiters:
|
28
|
-
Description: Prefer braces for chaining. Mostly an aesthetical choice. Better to
|
29
|
-
be consistent then.
|
30
|
-
EnforcedStyle: braces_for_chaining
|
31
|
-
Style/ClassAndModuleChildren:
|
32
|
-
Description: Compact style reduces the required amount of indentation.
|
33
|
-
EnforcedStyle: compact
|
34
|
-
Style/EmptyElse:
|
35
|
-
Description: Enforce against empty else clauses, but allow `nil` for clarity.
|
36
|
-
EnforcedStyle: empty
|
37
|
-
Style/FormatString:
|
38
|
-
Description: Following the main puppet project's style, prefer the % format format.
|
39
|
-
EnforcedStyle: percent
|
40
|
-
Style/FormatStringToken:
|
41
|
-
Description: Following the main puppet project's style, prefer the simpler template
|
42
|
-
tokens over annotated ones.
|
43
|
-
EnforcedStyle: template
|
44
|
-
Style/Lambda:
|
45
|
-
Description: Prefer the keyword for easier discoverability.
|
46
|
-
EnforcedStyle: literal
|
47
|
-
Style/RegexpLiteral:
|
48
|
-
Description: Community preference. See https://github.com/voxpupuli/modulesync_config/issues/168
|
49
|
-
EnforcedStyle: percent_r
|
50
|
-
Style/TernaryParentheses:
|
51
|
-
Description: Checks for use of parentheses around ternary conditions. Enforce parentheses
|
52
|
-
on complex expressions for better readability, but seriously consider breaking
|
53
|
-
it up.
|
54
|
-
EnforcedStyle: require_parentheses_when_complex
|
55
|
-
Style/TrailingCommaInArguments:
|
56
|
-
Description: Prefer always trailing comma on multiline argument lists. This makes
|
57
|
-
diffs, and re-ordering nicer.
|
58
|
-
EnforcedStyleForMultiline: comma
|
59
|
-
Style/TrailingCommaInArrayLiteral:
|
60
|
-
EnforcedStyleForMultiline: comma
|
61
|
-
Style/TrailingCommaInHashLiteral:
|
62
|
-
EnforcedStyleForMultiline: comma
|
63
|
-
Style/SymbolArray:
|
64
|
-
Description: Using percent style obscures symbolic intent of array's contents.
|
65
|
-
EnforcedStyle: brackets
|
66
|
-
RSpec/MessageSpies:
|
67
|
-
EnforcedStyle: receive
|
68
|
-
Style/CollectionMethods:
|
69
|
-
Enabled: true
|
70
|
-
Style/MethodCalledOnDoEndBlock:
|
71
|
-
Enabled: true
|
72
|
-
Style/StringMethods:
|
73
|
-
Enabled: true
|
74
|
-
Layout/EndOfLine:
|
75
|
-
EnforcedStyle: lf
|
76
|
-
Metrics/AbcSize:
|
77
|
-
Enabled: false
|
78
|
-
Metrics/BlockLength:
|
79
|
-
Enabled: false
|
80
|
-
Metrics/ClassLength:
|
81
|
-
Enabled: false
|
82
|
-
Metrics/CyclomaticComplexity:
|
83
|
-
Enabled: false
|
84
|
-
Metrics/MethodLength:
|
85
|
-
Enabled: false
|
86
|
-
Metrics/ModuleLength:
|
87
|
-
Enabled: false
|
88
|
-
Metrics/ParameterLists:
|
89
|
-
Enabled: false
|
90
|
-
Metrics/PerceivedComplexity:
|
91
|
-
Enabled: false
|
92
|
-
RSpec/DescribeClass:
|
93
|
-
Enabled: false
|
94
|
-
RSpec/ExampleLength:
|
95
|
-
Enabled: false
|
96
|
-
RSpec/MessageExpectation:
|
97
|
-
Enabled: false
|
98
|
-
RSpec/MultipleExpectations:
|
99
|
-
Enabled: false
|
100
|
-
RSpec/NestedGroups:
|
101
|
-
Enabled: false
|
102
|
-
Style/AsciiComments:
|
103
|
-
Enabled: false
|
104
|
-
Style/IfUnlessModifier:
|
105
|
-
Enabled: false
|
106
|
-
Style/SymbolProc:
|
107
|
-
Enabled: false
|
1
|
+
---
|
2
|
+
require: rubocop-rspec
|
3
|
+
AllCops:
|
4
|
+
DisplayCopNames: true
|
5
|
+
TargetRubyVersion: '2.4'
|
6
|
+
Include:
|
7
|
+
- "**/*.rb"
|
8
|
+
Exclude:
|
9
|
+
- bin/*
|
10
|
+
- ".vendor/**/*"
|
11
|
+
- Gemfile
|
12
|
+
- Rakefile
|
13
|
+
- pkg/**/*
|
14
|
+
- spec/fixtures/**/*
|
15
|
+
- vendor/**/*
|
16
|
+
Metrics/LineLength:
|
17
|
+
Description: People have wide screens, use them.
|
18
|
+
Max: 240
|
19
|
+
RSpec/BeforeAfterAll:
|
20
|
+
Description: Beware of using after(:all) as it may cause state to leak between tests.
|
21
|
+
A necessary evil in acceptance testing.
|
22
|
+
Exclude:
|
23
|
+
- spec/acceptance/**/*.rb
|
24
|
+
RSpec/HookArgument:
|
25
|
+
Description: Prefer explicit :each argument, matching existing module's style
|
26
|
+
EnforcedStyle: each
|
27
|
+
Style/BlockDelimiters:
|
28
|
+
Description: Prefer braces for chaining. Mostly an aesthetical choice. Better to
|
29
|
+
be consistent then.
|
30
|
+
EnforcedStyle: braces_for_chaining
|
31
|
+
Style/ClassAndModuleChildren:
|
32
|
+
Description: Compact style reduces the required amount of indentation.
|
33
|
+
EnforcedStyle: compact
|
34
|
+
Style/EmptyElse:
|
35
|
+
Description: Enforce against empty else clauses, but allow `nil` for clarity.
|
36
|
+
EnforcedStyle: empty
|
37
|
+
Style/FormatString:
|
38
|
+
Description: Following the main puppet project's style, prefer the % format format.
|
39
|
+
EnforcedStyle: percent
|
40
|
+
Style/FormatStringToken:
|
41
|
+
Description: Following the main puppet project's style, prefer the simpler template
|
42
|
+
tokens over annotated ones.
|
43
|
+
EnforcedStyle: template
|
44
|
+
Style/Lambda:
|
45
|
+
Description: Prefer the keyword for easier discoverability.
|
46
|
+
EnforcedStyle: literal
|
47
|
+
Style/RegexpLiteral:
|
48
|
+
Description: Community preference. See https://github.com/voxpupuli/modulesync_config/issues/168
|
49
|
+
EnforcedStyle: percent_r
|
50
|
+
Style/TernaryParentheses:
|
51
|
+
Description: Checks for use of parentheses around ternary conditions. Enforce parentheses
|
52
|
+
on complex expressions for better readability, but seriously consider breaking
|
53
|
+
it up.
|
54
|
+
EnforcedStyle: require_parentheses_when_complex
|
55
|
+
Style/TrailingCommaInArguments:
|
56
|
+
Description: Prefer always trailing comma on multiline argument lists. This makes
|
57
|
+
diffs, and re-ordering nicer.
|
58
|
+
EnforcedStyleForMultiline: comma
|
59
|
+
Style/TrailingCommaInArrayLiteral:
|
60
|
+
EnforcedStyleForMultiline: comma
|
61
|
+
Style/TrailingCommaInHashLiteral:
|
62
|
+
EnforcedStyleForMultiline: comma
|
63
|
+
Style/SymbolArray:
|
64
|
+
Description: Using percent style obscures symbolic intent of array's contents.
|
65
|
+
EnforcedStyle: brackets
|
66
|
+
RSpec/MessageSpies:
|
67
|
+
EnforcedStyle: receive
|
68
|
+
Style/CollectionMethods:
|
69
|
+
Enabled: true
|
70
|
+
Style/MethodCalledOnDoEndBlock:
|
71
|
+
Enabled: true
|
72
|
+
Style/StringMethods:
|
73
|
+
Enabled: true
|
74
|
+
Layout/EndOfLine:
|
75
|
+
EnforcedStyle: lf
|
76
|
+
Metrics/AbcSize:
|
77
|
+
Enabled: false
|
78
|
+
Metrics/BlockLength:
|
79
|
+
Enabled: false
|
80
|
+
Metrics/ClassLength:
|
81
|
+
Enabled: false
|
82
|
+
Metrics/CyclomaticComplexity:
|
83
|
+
Enabled: false
|
84
|
+
Metrics/MethodLength:
|
85
|
+
Enabled: false
|
86
|
+
Metrics/ModuleLength:
|
87
|
+
Enabled: false
|
88
|
+
Metrics/ParameterLists:
|
89
|
+
Enabled: false
|
90
|
+
Metrics/PerceivedComplexity:
|
91
|
+
Enabled: false
|
92
|
+
RSpec/DescribeClass:
|
93
|
+
Enabled: false
|
94
|
+
RSpec/ExampleLength:
|
95
|
+
Enabled: false
|
96
|
+
RSpec/MessageExpectation:
|
97
|
+
Enabled: false
|
98
|
+
RSpec/MultipleExpectations:
|
99
|
+
Enabled: false
|
100
|
+
RSpec/NestedGroups:
|
101
|
+
Enabled: false
|
102
|
+
Style/AsciiComments:
|
103
|
+
Enabled: false
|
104
|
+
Style/IfUnlessModifier:
|
105
|
+
Enabled: false
|
106
|
+
Style/SymbolProc:
|
107
|
+
Enabled: false
|
data/ruby-2.4.yml
CHANGED
@@ -1,109 +1,109 @@
|
|
1
|
-
---
|
2
|
-
require: rubocop-rspec
|
3
|
-
AllCops:
|
4
|
-
DisplayCopNames: true
|
5
|
-
TargetRubyVersion: '2.4'
|
6
|
-
Include:
|
7
|
-
- "**/*.rb"
|
8
|
-
Exclude:
|
9
|
-
- bin/*
|
10
|
-
- ".vendor/**/*"
|
11
|
-
- Gemfile
|
12
|
-
- Rakefile
|
13
|
-
- pkg/**/*
|
14
|
-
- spec/fixtures/**/*
|
15
|
-
- vendor/**/*
|
16
|
-
Metrics/LineLength:
|
17
|
-
Description: People have wide screens, use them.
|
18
|
-
Max: 240
|
19
|
-
RSpec/BeforeAfterAll:
|
20
|
-
Description: Beware of using after(:all) as it may cause state to leak between tests.
|
21
|
-
A necessary evil in acceptance testing.
|
22
|
-
Exclude:
|
23
|
-
- spec/acceptance/**/*.rb
|
24
|
-
RSpec/HookArgument:
|
25
|
-
Description: Prefer explicit :each argument, matching existing module's style
|
26
|
-
EnforcedStyle: each
|
27
|
-
RSpec/ImplicitSubject:
|
28
|
-
Enabled: false
|
29
|
-
Style/BlockDelimiters:
|
30
|
-
Description: Prefer braces for chaining. Mostly an aesthetical choice. Better to
|
31
|
-
be consistent then.
|
32
|
-
EnforcedStyle: braces_for_chaining
|
33
|
-
Style/ClassAndModuleChildren:
|
34
|
-
Description: Compact style reduces the required amount of indentation.
|
35
|
-
EnforcedStyle: compact
|
36
|
-
Style/EmptyElse:
|
37
|
-
Description: Enforce against empty else clauses, but allow `nil` for clarity.
|
38
|
-
EnforcedStyle: empty
|
39
|
-
Style/FormatString:
|
40
|
-
Description: Following the main puppet project's style, prefer the % format format.
|
41
|
-
EnforcedStyle: percent
|
42
|
-
Style/FormatStringToken:
|
43
|
-
Description: Following the main puppet project's style, prefer the simpler template
|
44
|
-
tokens over annotated ones.
|
45
|
-
EnforcedStyle: template
|
46
|
-
Style/Lambda:
|
47
|
-
Description: Prefer the keyword for easier discoverability.
|
48
|
-
EnforcedStyle: literal
|
49
|
-
Style/RegexpLiteral:
|
50
|
-
Description: Community preference. See https://github.com/voxpupuli/modulesync_config/issues/168
|
51
|
-
EnforcedStyle: percent_r
|
52
|
-
Style/TernaryParentheses:
|
53
|
-
Description: Checks for use of parentheses around ternary conditions. Enforce parentheses
|
54
|
-
on complex expressions for better readability, but seriously consider breaking
|
55
|
-
it up.
|
56
|
-
EnforcedStyle: require_parentheses_when_complex
|
57
|
-
Style/TrailingCommaInArguments:
|
58
|
-
Description: Prefer always trailing comma on multiline argument lists. This makes
|
59
|
-
diffs, and re-ordering nicer.
|
60
|
-
EnforcedStyleForMultiline: comma
|
61
|
-
Style/TrailingCommaInArrayLiteral:
|
62
|
-
EnforcedStyleForMultiline: comma
|
63
|
-
Style/TrailingCommaInHashLiteral:
|
64
|
-
EnforcedStyleForMultiline: comma
|
65
|
-
Style/SymbolArray:
|
66
|
-
Description: Using percent style obscures symbolic intent of array's contents.
|
67
|
-
EnforcedStyle: brackets
|
68
|
-
RSpec/MessageSpies:
|
69
|
-
EnforcedStyle: receive
|
70
|
-
Style/CollectionMethods:
|
71
|
-
Enabled: true
|
72
|
-
Style/MethodCalledOnDoEndBlock:
|
73
|
-
Enabled: true
|
74
|
-
Style/StringMethods:
|
75
|
-
Enabled: true
|
76
|
-
Layout/EndOfLine:
|
77
|
-
EnforcedStyle: lf
|
78
|
-
Metrics/AbcSize:
|
79
|
-
Enabled: false
|
80
|
-
Metrics/BlockLength:
|
81
|
-
Enabled: false
|
82
|
-
Metrics/ClassLength:
|
83
|
-
Enabled: false
|
84
|
-
Metrics/CyclomaticComplexity:
|
85
|
-
Enabled: false
|
86
|
-
Metrics/MethodLength:
|
87
|
-
Enabled: false
|
88
|
-
Metrics/ModuleLength:
|
89
|
-
Enabled: false
|
90
|
-
Metrics/ParameterLists:
|
91
|
-
Enabled: false
|
92
|
-
Metrics/PerceivedComplexity:
|
93
|
-
Enabled: false
|
94
|
-
RSpec/DescribeClass:
|
95
|
-
Enabled: false
|
96
|
-
RSpec/ExampleLength:
|
97
|
-
Enabled: false
|
98
|
-
RSpec/MessageExpectation:
|
99
|
-
Enabled: false
|
100
|
-
RSpec/MultipleExpectations:
|
101
|
-
Enabled: false
|
102
|
-
RSpec/NestedGroups:
|
103
|
-
Enabled: false
|
104
|
-
Style/AsciiComments:
|
105
|
-
Enabled: false
|
106
|
-
Style/IfUnlessModifier:
|
107
|
-
Enabled: false
|
108
|
-
Style/SymbolProc:
|
109
|
-
Enabled: false
|
1
|
+
---
|
2
|
+
require: rubocop-rspec
|
3
|
+
AllCops:
|
4
|
+
DisplayCopNames: true
|
5
|
+
TargetRubyVersion: '2.4'
|
6
|
+
Include:
|
7
|
+
- "**/*.rb"
|
8
|
+
Exclude:
|
9
|
+
- bin/*
|
10
|
+
- ".vendor/**/*"
|
11
|
+
- Gemfile
|
12
|
+
- Rakefile
|
13
|
+
- pkg/**/*
|
14
|
+
- spec/fixtures/**/*
|
15
|
+
- vendor/**/*
|
16
|
+
Metrics/LineLength:
|
17
|
+
Description: People have wide screens, use them.
|
18
|
+
Max: 240
|
19
|
+
RSpec/BeforeAfterAll:
|
20
|
+
Description: Beware of using after(:all) as it may cause state to leak between tests.
|
21
|
+
A necessary evil in acceptance testing.
|
22
|
+
Exclude:
|
23
|
+
- spec/acceptance/**/*.rb
|
24
|
+
RSpec/HookArgument:
|
25
|
+
Description: Prefer explicit :each argument, matching existing module's style
|
26
|
+
EnforcedStyle: each
|
27
|
+
RSpec/ImplicitSubject:
|
28
|
+
Enabled: false
|
29
|
+
Style/BlockDelimiters:
|
30
|
+
Description: Prefer braces for chaining. Mostly an aesthetical choice. Better to
|
31
|
+
be consistent then.
|
32
|
+
EnforcedStyle: braces_for_chaining
|
33
|
+
Style/ClassAndModuleChildren:
|
34
|
+
Description: Compact style reduces the required amount of indentation.
|
35
|
+
EnforcedStyle: compact
|
36
|
+
Style/EmptyElse:
|
37
|
+
Description: Enforce against empty else clauses, but allow `nil` for clarity.
|
38
|
+
EnforcedStyle: empty
|
39
|
+
Style/FormatString:
|
40
|
+
Description: Following the main puppet project's style, prefer the % format format.
|
41
|
+
EnforcedStyle: percent
|
42
|
+
Style/FormatStringToken:
|
43
|
+
Description: Following the main puppet project's style, prefer the simpler template
|
44
|
+
tokens over annotated ones.
|
45
|
+
EnforcedStyle: template
|
46
|
+
Style/Lambda:
|
47
|
+
Description: Prefer the keyword for easier discoverability.
|
48
|
+
EnforcedStyle: literal
|
49
|
+
Style/RegexpLiteral:
|
50
|
+
Description: Community preference. See https://github.com/voxpupuli/modulesync_config/issues/168
|
51
|
+
EnforcedStyle: percent_r
|
52
|
+
Style/TernaryParentheses:
|
53
|
+
Description: Checks for use of parentheses around ternary conditions. Enforce parentheses
|
54
|
+
on complex expressions for better readability, but seriously consider breaking
|
55
|
+
it up.
|
56
|
+
EnforcedStyle: require_parentheses_when_complex
|
57
|
+
Style/TrailingCommaInArguments:
|
58
|
+
Description: Prefer always trailing comma on multiline argument lists. This makes
|
59
|
+
diffs, and re-ordering nicer.
|
60
|
+
EnforcedStyleForMultiline: comma
|
61
|
+
Style/TrailingCommaInArrayLiteral:
|
62
|
+
EnforcedStyleForMultiline: comma
|
63
|
+
Style/TrailingCommaInHashLiteral:
|
64
|
+
EnforcedStyleForMultiline: comma
|
65
|
+
Style/SymbolArray:
|
66
|
+
Description: Using percent style obscures symbolic intent of array's contents.
|
67
|
+
EnforcedStyle: brackets
|
68
|
+
RSpec/MessageSpies:
|
69
|
+
EnforcedStyle: receive
|
70
|
+
Style/CollectionMethods:
|
71
|
+
Enabled: true
|
72
|
+
Style/MethodCalledOnDoEndBlock:
|
73
|
+
Enabled: true
|
74
|
+
Style/StringMethods:
|
75
|
+
Enabled: true
|
76
|
+
Layout/EndOfLine:
|
77
|
+
EnforcedStyle: lf
|
78
|
+
Metrics/AbcSize:
|
79
|
+
Enabled: false
|
80
|
+
Metrics/BlockLength:
|
81
|
+
Enabled: false
|
82
|
+
Metrics/ClassLength:
|
83
|
+
Enabled: false
|
84
|
+
Metrics/CyclomaticComplexity:
|
85
|
+
Enabled: false
|
86
|
+
Metrics/MethodLength:
|
87
|
+
Enabled: false
|
88
|
+
Metrics/ModuleLength:
|
89
|
+
Enabled: false
|
90
|
+
Metrics/ParameterLists:
|
91
|
+
Enabled: false
|
92
|
+
Metrics/PerceivedComplexity:
|
93
|
+
Enabled: false
|
94
|
+
RSpec/DescribeClass:
|
95
|
+
Enabled: false
|
96
|
+
RSpec/ExampleLength:
|
97
|
+
Enabled: false
|
98
|
+
RSpec/MessageExpectation:
|
99
|
+
Enabled: false
|
100
|
+
RSpec/MultipleExpectations:
|
101
|
+
Enabled: false
|
102
|
+
RSpec/NestedGroups:
|
103
|
+
Enabled: false
|
104
|
+
Style/AsciiComments:
|
105
|
+
Enabled: false
|
106
|
+
Style/IfUnlessModifier:
|
107
|
+
Enabled: false
|
108
|
+
Style/SymbolProc:
|
109
|
+
Enabled: false
|