rubocop-stamped 0.0.1 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/config/default.yml +42 -4
- data/config/md.yml +2 -0
- data/config/performance.yml +2 -0
- data/config/rails.yml +202 -6
- data/config/rspec.yml +2 -1
- metadata +25 -92
- data/.document +0 -5
- data/.ruby-version +0 -1
- data/Gemfile +0 -14
- data/Gemfile.lock +0 -112
- data/LICENSE.txt +0 -20
- data/README.md +0 -47
- data/Rakefile +0 -50
- data/VERSION +0 -1
- data/lib/rubocop-stamped.rb +0 -0
- data/rubocop-stamped.gemspec +0 -77
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9cdc757362f38d91bc08ed4ee99a59a12199e8fc1adecb3103ebaed591279381
|
4
|
+
data.tar.gz: 69f5e616f7a9f61617344c7acd0a07cb5b5317ffb7e315d9eedd46554c87f29b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d40564d27fdfc050ff748466cd37b46fcc099ff130c5cdd73813c4cfc5277b4cbe92e6341fd45c342038110182f1d9f038daf734845a707f4fee4d8927ccad05
|
7
|
+
data.tar.gz: 1aa57b0b6f4d7debf18824a57ee03dd7e2c14587adbe6a8de76fc241039f1784153e77aa8131ebecb415ef10738f971b895fd20624b58ea698be9198e3ee3711
|
data/config/default.yml
CHANGED
@@ -1,5 +1,43 @@
|
|
1
|
+
inherit_mode:
|
2
|
+
merge:
|
3
|
+
- Exclude
|
4
|
+
|
5
|
+
require:
|
6
|
+
- standard/cop/semantic_blocks
|
7
|
+
|
1
8
|
inherit_gem:
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
9
|
+
standard: config/base.yml
|
10
|
+
|
11
|
+
inherit_from:
|
12
|
+
- md.yml
|
13
|
+
- performance.yml
|
14
|
+
- rspec.yml
|
15
|
+
|
16
|
+
AllCops:
|
17
|
+
DisplayCopNames: true
|
18
|
+
DisplayStyleGuide: true
|
19
|
+
ExtraDetails: false
|
20
|
+
|
21
|
+
# Standard
|
22
|
+
|
23
|
+
Standard/SemanticBlocks:
|
24
|
+
Enabled: false
|
25
|
+
|
26
|
+
# Stamped
|
27
|
+
|
28
|
+
Layout/LineLength:
|
29
|
+
Max: 120
|
30
|
+
|
31
|
+
Layout/SpaceInsideHashLiteralBraces:
|
32
|
+
EnforcedStyle: space
|
33
|
+
EnforcedStyleForEmptyBraces: no_space
|
34
|
+
SupportedStyles:
|
35
|
+
- space
|
36
|
+
- no_space
|
37
|
+
- compact
|
38
|
+
|
39
|
+
Style/TrailingCommaInArrayLiteral:
|
40
|
+
EnforcedStyleForMultiline: comma
|
41
|
+
|
42
|
+
Style/TrailingCommaInHashLiteral:
|
43
|
+
EnforcedStyleForMultiline: comma
|
data/config/md.yml
ADDED
data/config/rails.yml
CHANGED
@@ -1,8 +1,204 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
- config/rails.yml
|
4
|
-
rubocop-airbnb:
|
5
|
-
- config/rails.yml
|
1
|
+
# Based on the configuration that existed in Standard before they dropped Rails support:
|
2
|
+
# https://github.com/testdouble/standard/commit/94d133f477a5694084ac974d5ee01e8a66ce777e#diff-65478e10d5b2ef41c7293a110c0e6b7c
|
6
3
|
|
7
|
-
|
4
|
+
require:
|
5
|
+
- rubocop-rails
|
6
|
+
|
7
|
+
AllCops:
|
8
|
+
Exclude:
|
9
|
+
- db/schema.rb
|
10
|
+
|
11
|
+
Rails/ActionFilter:
|
12
|
+
Enabled: true
|
13
|
+
EnforcedStyle: action
|
14
|
+
Include:
|
15
|
+
- app/controllers/**/*.rb
|
16
|
+
|
17
|
+
Rails/ActiveRecordAliases:
|
18
|
+
Enabled: true
|
19
|
+
|
20
|
+
Rails/ActiveSupportAliases:
|
21
|
+
Enabled: true
|
22
|
+
|
23
|
+
Rails/ApplicationJob:
|
24
|
+
Enabled: true
|
25
|
+
|
26
|
+
Rails/ApplicationRecord:
|
27
|
+
Enabled: true
|
28
|
+
|
29
|
+
Rails/AssertNot:
|
30
|
+
Enabled: true
|
31
|
+
Include:
|
32
|
+
- '**/spec/**/*'
|
33
|
+
- '**/test/**/*'
|
34
|
+
|
35
|
+
Rails/Blank:
|
36
|
+
Enabled: true
|
37
|
+
# Convert usages of `nil? || empty?` to `blank?`
|
38
|
+
NilOrEmpty: true
|
39
|
+
# Convert usages of `!present?` to `blank?`
|
40
|
+
NotPresent: true
|
41
|
+
# Convert usages of `unless present?` to `if blank?`
|
42
|
+
UnlessPresent: true
|
43
|
+
|
44
|
+
Rails/BulkChangeTable:
|
45
|
+
Enabled: true
|
46
|
+
Database: null
|
47
|
+
Include:
|
48
|
+
- db/migrate/*.rb
|
49
|
+
|
50
|
+
Rails/CreateTableWithTimestamps:
|
51
|
+
Enabled: true
|
52
|
+
Include:
|
53
|
+
- db/migrate/*.rb
|
54
|
+
|
55
|
+
Rails/Date:
|
56
|
+
Enabled: true
|
57
|
+
EnforcedStyle: flexible
|
58
|
+
|
59
|
+
Rails/Delegate:
|
60
|
+
Enabled: true
|
61
|
+
EnforceForPrefixed: true
|
62
|
+
|
63
|
+
Rails/DelegateAllowBlank:
|
64
|
+
Enabled: true
|
65
|
+
|
66
|
+
Rails/DynamicFindBy:
|
67
|
+
Enabled: true
|
68
|
+
Whitelist:
|
69
|
+
- find_by_sql
|
70
|
+
|
71
|
+
Rails/EnumUniqueness:
|
72
|
+
Enabled: true
|
73
|
+
Include:
|
74
|
+
- app/models/**/*.rb
|
75
|
+
|
76
|
+
Rails/EnvironmentComparison:
|
77
|
+
Enabled: true
|
78
|
+
|
79
|
+
Rails/Exit:
|
80
|
+
Enabled: true
|
81
|
+
Include:
|
82
|
+
- app/**/*.rb
|
83
|
+
- config/**/*.rb
|
84
|
+
- lib/**/*.rb
|
85
|
+
Exclude:
|
86
|
+
- lib/**/*.rake
|
87
|
+
|
88
|
+
Rails/FilePath:
|
89
|
+
Enabled: true
|
90
|
+
EnforcedStyle: arguments
|
91
|
+
|
92
|
+
Rails/FindBy:
|
93
|
+
Enabled: true
|
94
|
+
Include:
|
95
|
+
- app/models/**/*.rb
|
96
|
+
|
97
|
+
Rails/FindEach:
|
98
|
+
Enabled: true
|
99
|
+
Include:
|
100
|
+
- app/models/**/*.rb
|
101
|
+
|
102
|
+
Rails/HasAndBelongsToMany:
|
103
|
+
Enabled: true
|
104
|
+
Include:
|
105
|
+
- app/models/**/*.rb
|
106
|
+
|
107
|
+
Rails/HttpPositionalArguments:
|
108
|
+
Enabled: true
|
109
|
+
Include:
|
110
|
+
- 'spec/**/*'
|
111
|
+
- 'test/**/*'
|
112
|
+
|
113
|
+
Rails/HttpStatus:
|
114
|
+
Enabled: true
|
115
|
+
EnforcedStyle: symbolic
|
116
|
+
|
117
|
+
Rails/InverseOf:
|
118
|
+
Enabled: true
|
119
|
+
Include:
|
120
|
+
- app/models/**/*.rb
|
121
|
+
|
122
|
+
Rails/LexicallyScopedActionFilter:
|
123
|
+
Enabled: true
|
124
|
+
Safe: false
|
125
|
+
Include:
|
126
|
+
- app/controllers/**/*.rb
|
127
|
+
|
128
|
+
Rails/NotNullColumn:
|
129
|
+
Enabled: true
|
130
|
+
Include:
|
131
|
+
- db/migrate/*.rb
|
132
|
+
|
133
|
+
Rails/Output:
|
134
|
+
Enabled: true
|
135
|
+
Include:
|
136
|
+
- app/**/*.rb
|
137
|
+
- config/**/*.rb
|
138
|
+
- db/**/*.rb
|
139
|
+
- lib/**/*.rb
|
140
|
+
|
141
|
+
Rails/OutputSafety:
|
142
|
+
Enabled: true
|
143
|
+
|
144
|
+
Rails/PluralizationGrammar:
|
145
|
+
Enabled: true
|
146
|
+
|
147
|
+
Rails/Presence:
|
148
|
+
Enabled: true
|
149
|
+
|
150
|
+
Rails/Present:
|
151
|
+
Enabled: true
|
152
|
+
NotNilAndNotEmpty: true
|
153
|
+
NotBlank: true
|
154
|
+
UnlessBlank: true
|
155
|
+
|
156
|
+
Rails/ReadWriteAttribute:
|
157
|
+
Enabled: true
|
158
|
+
Include:
|
159
|
+
- app/models/**/*.rb
|
160
|
+
|
161
|
+
Rails/RedundantReceiverInWithOptions:
|
162
|
+
Enabled: true
|
163
|
+
|
164
|
+
Rails/RefuteMethods:
|
165
|
+
Enabled: true
|
166
|
+
Include:
|
167
|
+
- '**/spec/**/*'
|
168
|
+
- '**/test/**/*'
|
169
|
+
|
170
|
+
Rails/RelativeDateConstant:
|
171
|
+
Enabled: true
|
172
|
+
AutoCorrect: false
|
173
|
+
|
174
|
+
Rails/RequestReferer:
|
175
|
+
Enabled: true
|
176
|
+
EnforcedStyle: referer
|
177
|
+
|
178
|
+
Rails/ReversibleMigration:
|
179
|
+
Enabled: true
|
180
|
+
Include:
|
181
|
+
- db/migrate/*.rb
|
182
|
+
|
183
|
+
Rails/SafeNavigation:
|
184
|
+
Enabled: true
|
185
|
+
ConvertTry: false
|
186
|
+
|
187
|
+
Rails/ScopeArgs:
|
188
|
+
Enabled: true
|
189
|
+
Include:
|
190
|
+
- app/models/**/*.rb
|
191
|
+
|
192
|
+
Rails/TimeZone:
|
193
|
+
Enabled: true
|
194
|
+
EnforcedStyle: flexible
|
195
|
+
|
196
|
+
Rails/UniqBeforePluck:
|
197
|
+
Enabled: true
|
198
|
+
EnforcedStyle: conservative
|
199
|
+
AutoCorrect: false
|
200
|
+
|
201
|
+
Rails/Validation:
|
8
202
|
Enabled: true
|
203
|
+
Include:
|
204
|
+
- app/models/**/*.rb
|
data/config/rspec.yml
CHANGED
@@ -1 +1,2 @@
|
|
1
|
-
require:
|
1
|
+
require:
|
2
|
+
- rubocop-rspec
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rubocop-stamped
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0
|
4
|
+
version: 1.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
|
-
-
|
7
|
+
- Philippe Dionne
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-03-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rubocop
|
@@ -16,64 +16,50 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '0.
|
19
|
+
version: '0.79'
|
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.79'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
|
-
name: rubocop-
|
28
|
+
name: rubocop-performance
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- - "
|
32
|
-
- !ruby/object:Gem::Version
|
33
|
-
version: '0.10'
|
34
|
-
type: :runtime
|
35
|
-
prerelease: false
|
36
|
-
version_requirements: !ruby/object:Gem::Requirement
|
37
|
-
requirements:
|
38
|
-
- - "~>"
|
39
|
-
- !ruby/object:Gem::Version
|
40
|
-
version: '0.10'
|
41
|
-
- !ruby/object:Gem::Dependency
|
42
|
-
name: rubocop-airbnb
|
43
|
-
requirement: !ruby/object:Gem::Requirement
|
44
|
-
requirements:
|
45
|
-
- - "~>"
|
31
|
+
- - ">="
|
46
32
|
- !ruby/object:Gem::Version
|
47
|
-
version: '
|
33
|
+
version: '0'
|
48
34
|
type: :runtime
|
49
35
|
prerelease: false
|
50
36
|
version_requirements: !ruby/object:Gem::Requirement
|
51
37
|
requirements:
|
52
|
-
- - "
|
38
|
+
- - ">="
|
53
39
|
- !ruby/object:Gem::Version
|
54
|
-
version: '
|
40
|
+
version: '0'
|
55
41
|
- !ruby/object:Gem::Dependency
|
56
42
|
name: rubocop-rspec
|
57
43
|
requirement: !ruby/object:Gem::Requirement
|
58
44
|
requirements:
|
59
|
-
- - "
|
45
|
+
- - ">="
|
60
46
|
- !ruby/object:Gem::Version
|
61
|
-
version: '
|
47
|
+
version: '0'
|
62
48
|
type: :runtime
|
63
49
|
prerelease: false
|
64
50
|
version_requirements: !ruby/object:Gem::Requirement
|
65
51
|
requirements:
|
66
|
-
- - "
|
52
|
+
- - ">="
|
67
53
|
- !ruby/object:Gem::Version
|
68
|
-
version: '
|
54
|
+
version: '0'
|
69
55
|
- !ruby/object:Gem::Dependency
|
70
|
-
name:
|
56
|
+
name: rubocop-md
|
71
57
|
requirement: !ruby/object:Gem::Requirement
|
72
58
|
requirements:
|
73
59
|
- - ">="
|
74
60
|
- !ruby/object:Gem::Version
|
75
61
|
version: '0'
|
76
|
-
type: :
|
62
|
+
type: :runtime
|
77
63
|
prerelease: false
|
78
64
|
version_requirements: !ruby/object:Gem::Requirement
|
79
65
|
requirements:
|
@@ -81,82 +67,30 @@ dependencies:
|
|
81
67
|
- !ruby/object:Gem::Version
|
82
68
|
version: '0'
|
83
69
|
- !ruby/object:Gem::Dependency
|
84
|
-
name:
|
70
|
+
name: standard
|
85
71
|
requirement: !ruby/object:Gem::Requirement
|
86
72
|
requirements:
|
87
73
|
- - "~>"
|
88
74
|
- !ruby/object:Gem::Version
|
89
|
-
version: '
|
90
|
-
type: :
|
91
|
-
prerelease: false
|
92
|
-
version_requirements: !ruby/object:Gem::Requirement
|
93
|
-
requirements:
|
94
|
-
- - "~>"
|
95
|
-
- !ruby/object:Gem::Version
|
96
|
-
version: '3.12'
|
97
|
-
- !ruby/object:Gem::Dependency
|
98
|
-
name: bundler
|
99
|
-
requirement: !ruby/object:Gem::Requirement
|
100
|
-
requirements:
|
101
|
-
- - "~>"
|
102
|
-
- !ruby/object:Gem::Version
|
103
|
-
version: '1.0'
|
104
|
-
type: :development
|
105
|
-
prerelease: false
|
106
|
-
version_requirements: !ruby/object:Gem::Requirement
|
107
|
-
requirements:
|
108
|
-
- - "~>"
|
109
|
-
- !ruby/object:Gem::Version
|
110
|
-
version: '1.0'
|
111
|
-
- !ruby/object:Gem::Dependency
|
112
|
-
name: juwelier
|
113
|
-
requirement: !ruby/object:Gem::Requirement
|
114
|
-
requirements:
|
115
|
-
- - "~>"
|
116
|
-
- !ruby/object:Gem::Version
|
117
|
-
version: 2.1.0
|
118
|
-
type: :development
|
75
|
+
version: '0.2'
|
76
|
+
type: :runtime
|
119
77
|
prerelease: false
|
120
78
|
version_requirements: !ruby/object:Gem::Requirement
|
121
79
|
requirements:
|
122
80
|
- - "~>"
|
123
81
|
- !ruby/object:Gem::Version
|
124
|
-
version: 2
|
125
|
-
- !ruby/object:Gem::Dependency
|
126
|
-
name: simplecov
|
127
|
-
requirement: !ruby/object:Gem::Requirement
|
128
|
-
requirements:
|
129
|
-
- - ">="
|
130
|
-
- !ruby/object:Gem::Version
|
131
|
-
version: '0'
|
132
|
-
type: :development
|
133
|
-
prerelease: false
|
134
|
-
version_requirements: !ruby/object:Gem::Requirement
|
135
|
-
requirements:
|
136
|
-
- - ">="
|
137
|
-
- !ruby/object:Gem::Version
|
138
|
-
version: '0'
|
82
|
+
version: '0.2'
|
139
83
|
description: Code style checking for Stamped Ruby repositories, based on RuboCop
|
140
|
-
email:
|
84
|
+
email: p@stamped.ai
|
141
85
|
executables: []
|
142
86
|
extensions: []
|
143
|
-
extra_rdoc_files:
|
144
|
-
- LICENSE.txt
|
145
|
-
- README.md
|
87
|
+
extra_rdoc_files: []
|
146
88
|
files:
|
147
|
-
- ".document"
|
148
|
-
- ".ruby-version"
|
149
|
-
- Gemfile
|
150
|
-
- Gemfile.lock
|
151
|
-
- LICENSE.txt
|
152
|
-
- README.md
|
153
|
-
- Rakefile
|
154
|
-
- VERSION
|
155
89
|
- config/default.yml
|
90
|
+
- config/md.yml
|
91
|
+
- config/performance.yml
|
156
92
|
- config/rails.yml
|
157
93
|
- config/rspec.yml
|
158
|
-
- lib/rubocop-stamped.rb
|
159
|
-
- rubocop-stamped.gemspec
|
160
94
|
homepage: http://github.com/stampedai/rubocop-stamped
|
161
95
|
licenses:
|
162
96
|
- MIT
|
@@ -176,8 +110,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
176
110
|
- !ruby/object:Gem::Version
|
177
111
|
version: '0'
|
178
112
|
requirements: []
|
179
|
-
|
180
|
-
rubygems_version: 2.7.6
|
113
|
+
rubygems_version: 3.1.2
|
181
114
|
signing_key:
|
182
115
|
specification_version: 4
|
183
116
|
summary: Code style checking for Stamped Ruby repositories
|
data/.document
DELETED
data/.ruby-version
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
2.5.1
|
data/Gemfile
DELETED
@@ -1,14 +0,0 @@
|
|
1
|
-
source "https://rubygems.org"
|
2
|
-
|
3
|
-
gem 'rubocop', '~> 0.52', require: false
|
4
|
-
gem 'rubocop-github', '~> 0.10'
|
5
|
-
gem 'rubocop-airbnb', '~> 1.0'
|
6
|
-
gem 'rubocop-rspec', '~> 1.22'
|
7
|
-
|
8
|
-
group :development do
|
9
|
-
gem "shoulda", ">= 0"
|
10
|
-
gem "rdoc", "~> 3.12"
|
11
|
-
gem "bundler", "~> 1.0"
|
12
|
-
gem "juwelier", "~> 2.1.0"
|
13
|
-
gem "simplecov", ">= 0"
|
14
|
-
end
|
data/Gemfile.lock
DELETED
@@ -1,112 +0,0 @@
|
|
1
|
-
GEM
|
2
|
-
remote: https://rubygems.org/
|
3
|
-
specs:
|
4
|
-
activesupport (5.2.0)
|
5
|
-
concurrent-ruby (~> 1.0, >= 1.0.2)
|
6
|
-
i18n (>= 0.7, < 2)
|
7
|
-
minitest (~> 5.1)
|
8
|
-
tzinfo (~> 1.1)
|
9
|
-
addressable (2.5.2)
|
10
|
-
public_suffix (>= 2.0.2, < 4.0)
|
11
|
-
ast (2.4.0)
|
12
|
-
builder (3.2.3)
|
13
|
-
concurrent-ruby (1.0.5)
|
14
|
-
descendants_tracker (0.0.4)
|
15
|
-
thread_safe (~> 0.3, >= 0.3.1)
|
16
|
-
docile (1.3.0)
|
17
|
-
faraday (0.12.2)
|
18
|
-
multipart-post (>= 1.2, < 3)
|
19
|
-
git (1.3.0)
|
20
|
-
github_api (0.18.2)
|
21
|
-
addressable (~> 2.4)
|
22
|
-
descendants_tracker (~> 0.0.4)
|
23
|
-
faraday (~> 0.8)
|
24
|
-
hashie (~> 3.5, >= 3.5.2)
|
25
|
-
oauth2 (~> 1.0)
|
26
|
-
hashie (3.5.7)
|
27
|
-
highline (1.7.10)
|
28
|
-
i18n (1.0.1)
|
29
|
-
concurrent-ruby (~> 1.0)
|
30
|
-
json (1.8.6)
|
31
|
-
juwelier (2.1.3)
|
32
|
-
builder
|
33
|
-
bundler (>= 1.13)
|
34
|
-
git (>= 1.2.5)
|
35
|
-
github_api
|
36
|
-
highline (>= 1.6.15)
|
37
|
-
nokogiri (>= 1.5.10)
|
38
|
-
rake
|
39
|
-
rdoc
|
40
|
-
semver
|
41
|
-
jwt (1.5.6)
|
42
|
-
mini_portile2 (2.3.0)
|
43
|
-
minitest (5.11.3)
|
44
|
-
multi_json (1.13.1)
|
45
|
-
multi_xml (0.6.0)
|
46
|
-
multipart-post (2.0.0)
|
47
|
-
nokogiri (1.8.2)
|
48
|
-
mini_portile2 (~> 2.3.0)
|
49
|
-
oauth2 (1.4.0)
|
50
|
-
faraday (>= 0.8, < 0.13)
|
51
|
-
jwt (~> 1.0)
|
52
|
-
multi_json (~> 1.3)
|
53
|
-
multi_xml (~> 0.5)
|
54
|
-
rack (>= 1.2, < 3)
|
55
|
-
parallel (1.12.1)
|
56
|
-
parser (2.5.1.0)
|
57
|
-
ast (~> 2.4.0)
|
58
|
-
powerpack (0.1.1)
|
59
|
-
public_suffix (3.0.2)
|
60
|
-
rack (2.0.4)
|
61
|
-
rainbow (3.0.0)
|
62
|
-
rake (12.3.1)
|
63
|
-
rdoc (3.12.2)
|
64
|
-
json (~> 1.4)
|
65
|
-
rubocop (0.52.1)
|
66
|
-
parallel (~> 1.10)
|
67
|
-
parser (>= 2.4.0.2, < 3.0)
|
68
|
-
powerpack (~> 0.1)
|
69
|
-
rainbow (>= 2.2.2, < 4.0)
|
70
|
-
ruby-progressbar (~> 1.7)
|
71
|
-
unicode-display_width (~> 1.0, >= 1.0.1)
|
72
|
-
rubocop-airbnb (1.0.0)
|
73
|
-
rubocop (= 0.52.1)
|
74
|
-
rubocop-rspec (= 1.22.1)
|
75
|
-
rubocop-github (0.10.0)
|
76
|
-
rubocop (~> 0.51)
|
77
|
-
rubocop-rspec (1.22.1)
|
78
|
-
rubocop (>= 0.52.1)
|
79
|
-
ruby-progressbar (1.9.0)
|
80
|
-
semver (1.0.1)
|
81
|
-
shoulda (3.5.0)
|
82
|
-
shoulda-context (~> 1.0, >= 1.0.1)
|
83
|
-
shoulda-matchers (>= 1.4.1, < 3.0)
|
84
|
-
shoulda-context (1.2.2)
|
85
|
-
shoulda-matchers (2.8.0)
|
86
|
-
activesupport (>= 3.0.0)
|
87
|
-
simplecov (0.16.1)
|
88
|
-
docile (~> 1.1)
|
89
|
-
json (>= 1.8, < 3)
|
90
|
-
simplecov-html (~> 0.10.0)
|
91
|
-
simplecov-html (0.10.2)
|
92
|
-
thread_safe (0.3.6)
|
93
|
-
tzinfo (1.2.5)
|
94
|
-
thread_safe (~> 0.1)
|
95
|
-
unicode-display_width (1.3.2)
|
96
|
-
|
97
|
-
PLATFORMS
|
98
|
-
ruby
|
99
|
-
|
100
|
-
DEPENDENCIES
|
101
|
-
bundler (~> 1.0)
|
102
|
-
juwelier (~> 2.1.0)
|
103
|
-
rdoc (~> 3.12)
|
104
|
-
rubocop (~> 0.52)
|
105
|
-
rubocop-airbnb (~> 1.0)
|
106
|
-
rubocop-github (~> 0.10)
|
107
|
-
rubocop-rspec (~> 1.22)
|
108
|
-
shoulda
|
109
|
-
simplecov
|
110
|
-
|
111
|
-
BUNDLED WITH
|
112
|
-
1.16.1
|
data/LICENSE.txt
DELETED
@@ -1,20 +0,0 @@
|
|
1
|
-
Copyright (c) 2018 Philippe Dionne
|
2
|
-
|
3
|
-
Permission is hereby granted, free of charge, to any person obtaining
|
4
|
-
a copy of this software and associated documentation files (the
|
5
|
-
"Software"), to deal in the Software without restriction, including
|
6
|
-
without limitation the rights to use, copy, modify, merge, publish,
|
7
|
-
distribute, sublicense, and/or sell copies of the Software, and to
|
8
|
-
permit persons to whom the Software is furnished to do so, subject to
|
9
|
-
the following conditions:
|
10
|
-
|
11
|
-
The above copyright notice and this permission notice shall be
|
12
|
-
included in all copies or substantial portions of the Software.
|
13
|
-
|
14
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
15
|
-
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
16
|
-
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
17
|
-
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
18
|
-
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
19
|
-
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
20
|
-
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.md
DELETED
@@ -1,47 +0,0 @@
|
|
1
|
-
# RuboCop Stamped
|
2
|
-
|
3
|
-
[RuboCop](https://github.com/bbatsov/rubocop) configuration for use on Stamped open source and internal Ruby projects.
|
4
|
-
|
5
|
-
## Installation
|
6
|
-
|
7
|
-
### Gemfile
|
8
|
-
```ruby
|
9
|
-
gem 'rubocop-stamped'
|
10
|
-
```
|
11
|
-
|
12
|
-
### .rubocop.yml
|
13
|
-
|
14
|
-
```yaml
|
15
|
-
inherit_gem:
|
16
|
-
rubocop-stamped:
|
17
|
-
- config/default.yml
|
18
|
-
- config/rails.yml
|
19
|
-
- config/rspec.yml
|
20
|
-
```
|
21
|
-
|
22
|
-
## Ruby
|
23
|
-
|
24
|
-
Inspired from:
|
25
|
-
|
26
|
-
- [@bbatsov](https://github.com/bbatsov/ruby-style-guide)
|
27
|
-
- [Airbnb](https://github.com/airbnb/ruby)
|
28
|
-
- [GitHub](https://github.com/github/rubocop-github)
|
29
|
-
|
30
|
-
## Rails
|
31
|
-
|
32
|
-
Inspired from:
|
33
|
-
|
34
|
-
- [@bbatsov](https://github.com/bbatsov/rails-style-guide)
|
35
|
-
- [Airbnb](https://github.com/airbnb/ruby/blob/master/rubocop-airbnb/config/rubocop-rails.yml)
|
36
|
-
- [GitHub](https://github.com/github/rubocop-github/blob/master/config/rails.yml)
|
37
|
-
|
38
|
-
## RSpec
|
39
|
-
|
40
|
-
Inspired from:
|
41
|
-
|
42
|
-
- [Airbnb](https://github.com/airbnb/ruby/blob/master/rubocop-airbnb/config/rubocop-rspec.yml)
|
43
|
-
- [RuboCop RSpec](https://github.com/rubocop-rspec/rubocop-rspec)
|
44
|
-
|
45
|
-
## License
|
46
|
-
|
47
|
-
[MIT](LICENSE.txt)
|
data/Rakefile
DELETED
@@ -1,50 +0,0 @@
|
|
1
|
-
# encoding: utf-8
|
2
|
-
|
3
|
-
require 'rubygems'
|
4
|
-
require 'bundler'
|
5
|
-
begin
|
6
|
-
Bundler.setup(:default, :development)
|
7
|
-
rescue Bundler::BundlerError => e
|
8
|
-
$stderr.puts e.message
|
9
|
-
$stderr.puts "Run `bundle install` to install missing gems"
|
10
|
-
exit e.status_code
|
11
|
-
end
|
12
|
-
require 'rake'
|
13
|
-
require 'juwelier'
|
14
|
-
Juwelier::Tasks.new do |gem|
|
15
|
-
# gem is a Gem::Specification... see http://guides.rubygems.org/specification-reference/ for more options
|
16
|
-
gem.name = "rubocop-stamped"
|
17
|
-
gem.homepage = "http://github.com/stampedai/rubocop-stamped"
|
18
|
-
gem.license = "MIT"
|
19
|
-
gem.summary = %Q{Code style checking for Stamped Ruby repositories}
|
20
|
-
gem.description = %Q{Code style checking for Stamped Ruby repositories, based on RuboCop}
|
21
|
-
gem.email = "engineering@stamped.ai"
|
22
|
-
gem.authors = ["Stamped"]
|
23
|
-
|
24
|
-
# dependencies defined in Gemfile
|
25
|
-
end
|
26
|
-
Juwelier::RubygemsDotOrgTasks.new
|
27
|
-
require 'rake/testtask'
|
28
|
-
Rake::TestTask.new(:test) do |test|
|
29
|
-
test.libs << 'lib' << 'test'
|
30
|
-
test.pattern = 'test/**/test_*.rb'
|
31
|
-
test.verbose = true
|
32
|
-
end
|
33
|
-
|
34
|
-
desc "Code coverage detail"
|
35
|
-
task :simplecov do
|
36
|
-
ENV['COVERAGE'] = "true"
|
37
|
-
Rake::Task['test'].execute
|
38
|
-
end
|
39
|
-
|
40
|
-
task :default => :test
|
41
|
-
|
42
|
-
require 'rdoc/task'
|
43
|
-
Rake::RDocTask.new do |rdoc|
|
44
|
-
version = File.exist?('VERSION') ? File.read('VERSION') : ""
|
45
|
-
|
46
|
-
rdoc.rdoc_dir = 'rdoc'
|
47
|
-
rdoc.title = "rubocop-stamped #{version}"
|
48
|
-
rdoc.rdoc_files.include('README*')
|
49
|
-
rdoc.rdoc_files.include('lib/**/*.rb')
|
50
|
-
end
|
data/VERSION
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
0.0.1
|
data/lib/rubocop-stamped.rb
DELETED
File without changes
|
data/rubocop-stamped.gemspec
DELETED
@@ -1,77 +0,0 @@
|
|
1
|
-
# Generated by juwelier
|
2
|
-
# DO NOT EDIT THIS FILE DIRECTLY
|
3
|
-
# Instead, edit Juwelier::Tasks in Rakefile, and run 'rake gemspec'
|
4
|
-
# -*- encoding: utf-8 -*-
|
5
|
-
# stub: rubocop-stamped 0.0.1 ruby lib
|
6
|
-
|
7
|
-
Gem::Specification.new do |s|
|
8
|
-
s.name = "rubocop-stamped".freeze
|
9
|
-
s.version = "0.0.1"
|
10
|
-
|
11
|
-
s.required_rubygems_version = Gem::Requirement.new(">= 0".freeze) if s.respond_to? :required_rubygems_version=
|
12
|
-
s.require_paths = ["lib".freeze]
|
13
|
-
s.authors = ["Stamped".freeze]
|
14
|
-
s.date = "2018-04-23"
|
15
|
-
s.description = "Code style checking for Stamped Ruby repositories, based on RuboCop".freeze
|
16
|
-
s.email = "engineering@stamped.ai".freeze
|
17
|
-
s.extra_rdoc_files = [
|
18
|
-
"LICENSE.txt",
|
19
|
-
"README.md"
|
20
|
-
]
|
21
|
-
s.files = [
|
22
|
-
".document",
|
23
|
-
".ruby-version",
|
24
|
-
"Gemfile",
|
25
|
-
"Gemfile.lock",
|
26
|
-
"LICENSE.txt",
|
27
|
-
"README.md",
|
28
|
-
"Rakefile",
|
29
|
-
"VERSION",
|
30
|
-
"config/default.yml",
|
31
|
-
"config/rails.yml",
|
32
|
-
"config/rspec.yml",
|
33
|
-
"lib/rubocop-stamped.rb",
|
34
|
-
"rubocop-stamped.gemspec"
|
35
|
-
]
|
36
|
-
s.homepage = "http://github.com/stampedai/rubocop-stamped".freeze
|
37
|
-
s.licenses = ["MIT".freeze]
|
38
|
-
s.rubygems_version = "2.7.6".freeze
|
39
|
-
s.summary = "Code style checking for Stamped Ruby repositories".freeze
|
40
|
-
|
41
|
-
if s.respond_to? :specification_version then
|
42
|
-
s.specification_version = 4
|
43
|
-
|
44
|
-
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
45
|
-
s.add_runtime_dependency(%q<rubocop>.freeze, ["~> 0.52"])
|
46
|
-
s.add_runtime_dependency(%q<rubocop-github>.freeze, ["~> 0.10"])
|
47
|
-
s.add_runtime_dependency(%q<rubocop-airbnb>.freeze, ["~> 1.0"])
|
48
|
-
s.add_runtime_dependency(%q<rubocop-rspec>.freeze, ["~> 1.22"])
|
49
|
-
s.add_development_dependency(%q<shoulda>.freeze, [">= 0"])
|
50
|
-
s.add_development_dependency(%q<rdoc>.freeze, ["~> 3.12"])
|
51
|
-
s.add_development_dependency(%q<bundler>.freeze, ["~> 1.0"])
|
52
|
-
s.add_development_dependency(%q<juwelier>.freeze, ["~> 2.1.0"])
|
53
|
-
s.add_development_dependency(%q<simplecov>.freeze, [">= 0"])
|
54
|
-
else
|
55
|
-
s.add_dependency(%q<rubocop>.freeze, ["~> 0.52"])
|
56
|
-
s.add_dependency(%q<rubocop-github>.freeze, ["~> 0.10"])
|
57
|
-
s.add_dependency(%q<rubocop-airbnb>.freeze, ["~> 1.0"])
|
58
|
-
s.add_dependency(%q<rubocop-rspec>.freeze, ["~> 1.22"])
|
59
|
-
s.add_dependency(%q<shoulda>.freeze, [">= 0"])
|
60
|
-
s.add_dependency(%q<rdoc>.freeze, ["~> 3.12"])
|
61
|
-
s.add_dependency(%q<bundler>.freeze, ["~> 1.0"])
|
62
|
-
s.add_dependency(%q<juwelier>.freeze, ["~> 2.1.0"])
|
63
|
-
s.add_dependency(%q<simplecov>.freeze, [">= 0"])
|
64
|
-
end
|
65
|
-
else
|
66
|
-
s.add_dependency(%q<rubocop>.freeze, ["~> 0.52"])
|
67
|
-
s.add_dependency(%q<rubocop-github>.freeze, ["~> 0.10"])
|
68
|
-
s.add_dependency(%q<rubocop-airbnb>.freeze, ["~> 1.0"])
|
69
|
-
s.add_dependency(%q<rubocop-rspec>.freeze, ["~> 1.22"])
|
70
|
-
s.add_dependency(%q<shoulda>.freeze, [">= 0"])
|
71
|
-
s.add_dependency(%q<rdoc>.freeze, ["~> 3.12"])
|
72
|
-
s.add_dependency(%q<bundler>.freeze, ["~> 1.0"])
|
73
|
-
s.add_dependency(%q<juwelier>.freeze, ["~> 2.1.0"])
|
74
|
-
s.add_dependency(%q<simplecov>.freeze, [">= 0"])
|
75
|
-
end
|
76
|
-
end
|
77
|
-
|