freistil-rubocop 0.1.3 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/Gemfile +1 -1
- data/Gemfile.lock +41 -0
- data/default.yml +55 -33
- data/freistil-rubocop.gemspec +3 -3
- data/lib/freistil/rubocop/version.rb +1 -1
- metadata +10 -11
- data/.travis.yml +0 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: '049eca74f7dc2b8354d1949ab64bbdb6143f3603fefdb74a368ac210346cab42'
|
4
|
+
data.tar.gz: 2ad6f07ba6462b274226c14f469097934520c4e8f4ced7238cb10a858361606d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ef3f52dba1aa5d008bae675876c5ea5633cc4f8bf72899d872286c38b96b788d0671ade6f3b597a65c861b7783c20aa4629a893daf61fe321491f28d2c85a6ca
|
7
|
+
data.tar.gz: 80090c70166be3e34dbfc1ecae665c4abdd164a910c5d50124a31086536f65f0da1ec0ab9a1f000315846b03c6d878a637b15a527d80720c1c3f3a7296a58bcb
|
data/Gemfile
CHANGED
data/Gemfile.lock
ADDED
@@ -0,0 +1,41 @@
|
|
1
|
+
PATH
|
2
|
+
remote: .
|
3
|
+
specs:
|
4
|
+
freistil-rubocop (0.2.0)
|
5
|
+
rubocop (~> 0.80)
|
6
|
+
rubocop-rspec (~> 1.29, >= 1.29.1)
|
7
|
+
|
8
|
+
GEM
|
9
|
+
remote: https://rubygems.org/
|
10
|
+
specs:
|
11
|
+
ast (2.4.0)
|
12
|
+
jaro_winkler (1.5.4)
|
13
|
+
parallel (1.19.1)
|
14
|
+
parser (2.7.0.5)
|
15
|
+
ast (~> 2.4.0)
|
16
|
+
rainbow (3.0.0)
|
17
|
+
rake (12.3.3)
|
18
|
+
rexml (3.2.4)
|
19
|
+
rubocop (0.80.1)
|
20
|
+
jaro_winkler (~> 1.5.1)
|
21
|
+
parallel (~> 1.10)
|
22
|
+
parser (>= 2.7.0.1)
|
23
|
+
rainbow (>= 2.2.2, < 4.0)
|
24
|
+
rexml
|
25
|
+
ruby-progressbar (~> 1.7)
|
26
|
+
unicode-display_width (>= 1.4.0, < 1.7)
|
27
|
+
rubocop-rspec (1.35.0)
|
28
|
+
rubocop (>= 0.60.0)
|
29
|
+
ruby-progressbar (1.10.1)
|
30
|
+
unicode-display_width (1.6.1)
|
31
|
+
|
32
|
+
PLATFORMS
|
33
|
+
ruby
|
34
|
+
|
35
|
+
DEPENDENCIES
|
36
|
+
bundler (~> 2.1)
|
37
|
+
freistil-rubocop!
|
38
|
+
rake (~> 12.3)
|
39
|
+
|
40
|
+
BUNDLED WITH
|
41
|
+
2.1.4
|
data/default.yml
CHANGED
@@ -1,21 +1,48 @@
|
|
1
1
|
require: rubocop-rspec
|
2
2
|
|
3
3
|
AllCops:
|
4
|
-
TargetRubyVersion: 2.
|
4
|
+
TargetRubyVersion: 2.6
|
5
5
|
Include:
|
6
6
|
- '**/*.rb'
|
7
|
-
- Rakefile
|
8
7
|
- 'lib/**/*.rake'
|
8
|
+
- Gemfile
|
9
|
+
- Rakefile
|
9
10
|
Exclude:
|
11
|
+
- 'Gemfile.lock'
|
10
12
|
- 'vendor/**/*'
|
11
|
-
|
13
|
+
|
14
|
+
Layout/DotPosition:
|
15
|
+
Description: 'Checks the position of the dot in multi-line method calls.'
|
16
|
+
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#consistent-multi-line-chains'
|
17
|
+
EnforcedStyle: trailing
|
18
|
+
|
19
|
+
Layout/LineLength:
|
20
|
+
Description: 'Limit lines to 80 characters.'
|
21
|
+
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#80-character-limits'
|
22
|
+
Max: 80
|
23
|
+
IgnoredPatterns: ['\A#']
|
24
|
+
|
25
|
+
Layout/MultilineOperationIndentation:
|
26
|
+
Description: >-
|
27
|
+
Checks indentation of binary operations that span more than
|
28
|
+
one line.
|
29
|
+
Enabled: true
|
30
|
+
EnforcedStyle: indented
|
31
|
+
|
32
|
+
Lint/AssignmentInCondition:
|
33
|
+
Description: "Don't use assignment in conditions."
|
34
|
+
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#safe-assignment-in-condition'
|
35
|
+
Enabled: false
|
12
36
|
|
13
37
|
Metrics/BlockLength:
|
14
38
|
Description: 'Avoid blocks longer than 25 lines of code.'
|
15
39
|
Exclude:
|
16
|
-
-
|
17
|
-
-
|
18
|
-
-
|
40
|
+
- '*.gemspec'
|
41
|
+
- '**/*.rake'
|
42
|
+
- 'Gemfile'
|
43
|
+
- 'Guardfile'
|
44
|
+
- 'Rakefile'
|
45
|
+
- 'spec/**/*.rb'
|
19
46
|
|
20
47
|
Metrics/ClassLength:
|
21
48
|
Description: 'Avoid classes longer than 100 lines of code.'
|
@@ -42,14 +69,13 @@ Style/Documentation:
|
|
42
69
|
Description: 'Document classes and non-namespace modules.'
|
43
70
|
Enabled: false
|
44
71
|
|
45
|
-
Layout/DotPosition:
|
46
|
-
Description: 'Checks the position of the dot in multi-line method calls.'
|
47
|
-
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#consistent-multi-line-chains'
|
48
|
-
EnforcedStyle: trailing
|
49
|
-
|
50
72
|
Style/Encoding:
|
51
73
|
Enabled: false
|
52
74
|
|
75
|
+
Style/FrozenStringLiteralComment:
|
76
|
+
Exclude:
|
77
|
+
- 'Gemfile'
|
78
|
+
|
53
79
|
Style/GlobalVars:
|
54
80
|
Description: 'Do not introduce global variables.'
|
55
81
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#instance-vars'
|
@@ -61,6 +87,15 @@ Style/GuardClause:
|
|
61
87
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-nested-conditionals'
|
62
88
|
Enabled: false
|
63
89
|
|
90
|
+
Style/HashEachMethods:
|
91
|
+
Enabled: true
|
92
|
+
|
93
|
+
Style/HashTransformKeys:
|
94
|
+
Enabled: true
|
95
|
+
|
96
|
+
Style/HashTransformValues:
|
97
|
+
Enabled: true
|
98
|
+
|
64
99
|
Style/IfUnlessModifier:
|
65
100
|
Description: >-
|
66
101
|
Favor modifier if/unless usage when you have a
|
@@ -78,24 +113,11 @@ Style/LineEndConcatenation:
|
|
78
113
|
line end.
|
79
114
|
Enabled: false
|
80
115
|
|
81
|
-
Metrics/LineLength:
|
82
|
-
Description: 'Limit lines to 80 characters.'
|
83
|
-
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#80-character-limits'
|
84
|
-
Max: 80
|
85
|
-
IgnoredPatterns: ['\A#']
|
86
|
-
|
87
116
|
Metrics/MethodLength:
|
88
117
|
Description: 'Avoid methods longer than 10 lines of code.'
|
89
118
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#short-methods'
|
90
119
|
Enabled: false
|
91
120
|
|
92
|
-
Layout/MultilineOperationIndentation:
|
93
|
-
Description: >-
|
94
|
-
Checks indentation of binary operations that span more than
|
95
|
-
one line.
|
96
|
-
Enabled: true
|
97
|
-
EnforcedStyle: indented
|
98
|
-
|
99
121
|
Metrics/ParameterLists:
|
100
122
|
Description: 'Avoid parameter lists longer than three or four parameters.'
|
101
123
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#too-many-params'
|
@@ -104,11 +126,19 @@ Metrics/ParameterLists:
|
|
104
126
|
Naming/PredicateName:
|
105
127
|
Description: 'Check the names of predicate methods.'
|
106
128
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#bool-methods-qmark'
|
107
|
-
|
129
|
+
ForbiddenPrefixes:
|
108
130
|
- is_
|
109
131
|
Exclude:
|
110
132
|
- spec/**/*
|
111
133
|
|
134
|
+
RSpec/ExampleLength:
|
135
|
+
Exclude:
|
136
|
+
- 'spec/**/*.rb'
|
137
|
+
|
138
|
+
RSpec/MultipleExpectations:
|
139
|
+
Exclude:
|
140
|
+
- 'spec/**/*.rb'
|
141
|
+
|
112
142
|
Style/SingleLineMethods:
|
113
143
|
Description: 'Avoid single-line methods.'
|
114
144
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-single-line-methods'
|
@@ -147,11 +177,3 @@ Style/WhileUntilModifier:
|
|
147
177
|
single-line body.
|
148
178
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#while-as-a-modifier'
|
149
179
|
Enabled: false
|
150
|
-
|
151
|
-
# Lint
|
152
|
-
|
153
|
-
Lint/AssignmentInCondition:
|
154
|
-
Description: "Don't use assignment in conditions."
|
155
|
-
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#safe-assignment-in-condition'
|
156
|
-
Enabled: false
|
157
|
-
|
data/freistil-rubocop.gemspec
CHANGED
@@ -28,8 +28,8 @@ Gem::Specification.new do |spec|
|
|
28
28
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
29
29
|
spec.require_paths = ["lib"]
|
30
30
|
|
31
|
-
spec.add_dependency "rubocop", "~> 0.
|
31
|
+
spec.add_dependency "rubocop", "~> 0.80"
|
32
32
|
spec.add_dependency "rubocop-rspec", "~> 1.29", ">= 1.29.1"
|
33
|
-
spec.add_development_dependency "bundler", "~> 1
|
34
|
-
spec.add_development_dependency "rake", "~>
|
33
|
+
spec.add_development_dependency "bundler", "~> 2.1"
|
34
|
+
spec.add_development_dependency "rake", "~> 12.3"
|
35
35
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: freistil-rubocop
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- freistil IT Ltd
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-04-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rubocop
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.
|
19
|
+
version: '0.80'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 0.
|
26
|
+
version: '0.80'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rubocop-rspec
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -50,28 +50,28 @@ dependencies:
|
|
50
50
|
requirements:
|
51
51
|
- - "~>"
|
52
52
|
- !ruby/object:Gem::Version
|
53
|
-
version: '1
|
53
|
+
version: '2.1'
|
54
54
|
type: :development
|
55
55
|
prerelease: false
|
56
56
|
version_requirements: !ruby/object:Gem::Requirement
|
57
57
|
requirements:
|
58
58
|
- - "~>"
|
59
59
|
- !ruby/object:Gem::Version
|
60
|
-
version: '1
|
60
|
+
version: '2.1'
|
61
61
|
- !ruby/object:Gem::Dependency
|
62
62
|
name: rake
|
63
63
|
requirement: !ruby/object:Gem::Requirement
|
64
64
|
requirements:
|
65
65
|
- - "~>"
|
66
66
|
- !ruby/object:Gem::Version
|
67
|
-
version: '
|
67
|
+
version: '12.3'
|
68
68
|
type: :development
|
69
69
|
prerelease: false
|
70
70
|
version_requirements: !ruby/object:Gem::Requirement
|
71
71
|
requirements:
|
72
72
|
- - "~>"
|
73
73
|
- !ruby/object:Gem::Version
|
74
|
-
version: '
|
74
|
+
version: '12.3'
|
75
75
|
description: Ruby style definitions shared by the freistil IT team
|
76
76
|
email:
|
77
77
|
- ops@freistil.it
|
@@ -81,8 +81,8 @@ extra_rdoc_files: []
|
|
81
81
|
files:
|
82
82
|
- ".gitignore"
|
83
83
|
- ".rubocop.yml"
|
84
|
-
- ".travis.yml"
|
85
84
|
- Gemfile
|
85
|
+
- Gemfile.lock
|
86
86
|
- README.md
|
87
87
|
- Rakefile
|
88
88
|
- default.yml
|
@@ -109,8 +109,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
109
109
|
- !ruby/object:Gem::Version
|
110
110
|
version: '0'
|
111
111
|
requirements: []
|
112
|
-
|
113
|
-
rubygems_version: 2.6.7
|
112
|
+
rubygems_version: 3.0.3
|
114
113
|
signing_key:
|
115
114
|
specification_version: 4
|
116
115
|
summary: Rubocop style definitions for freistil IT
|