armitage-rubocop 0.76.0 → 0.76.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +1 -1
- data/README.md +22 -0
- data/Rakefile +3 -0
- data/armitage-rubocop.gemspec +4 -1
- data/lib/common/rake.yml +14 -0
- data/lib/rubocop.general.yml +1 -0
- metadata +17 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1c965ce3bb6e9fec6147576fc40b459797d91198cbbd7835b1dd3748f2d01ddf
|
4
|
+
data.tar.gz: 40d19c127e0b4a35ac4673cfc10cb7ab8c07f92fa4881ed4b5cdabdbd833a488
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e8bafb5df099c7dd79f3bc5d97a1f1450b325484322a0a1773b61416474b1d30fb723f6abab24a9f6b1b351d2aa8f561ead8873f99b585a07abc89e8120c3edc
|
7
|
+
data.tar.gz: d4dfa829dabafb6b7f16dd6789a46ca0621b5ac98bc5d395107b1b7e973f868fecfa0b468a46fcbc01817459f27144acab0bf6fc93d18504a9bdb448f0c59431
|
data/.rubocop.yml
CHANGED
data/README.md
CHANGED
@@ -6,6 +6,28 @@
|
|
6
6
|
|
7
7
|
---
|
8
8
|
|
9
|
+
Configured rules:
|
10
|
+
|
11
|
+
- **Common** (`.rubocop.general.yml`) (`.rubocop.rails.yml`)
|
12
|
+
- Bundler
|
13
|
+
- Rake
|
14
|
+
- Gemspec
|
15
|
+
- Layout
|
16
|
+
- Lint
|
17
|
+
- Metrics
|
18
|
+
- Naming
|
19
|
+
- Performance
|
20
|
+
- Rails (isn't included in `.rubocop.general.yml`)
|
21
|
+
- Security
|
22
|
+
- Style
|
23
|
+
- **RSpec** (`.rubocop.rspec.yml`) (`.rubocop.rails.yml`)
|
24
|
+
- Capybara
|
25
|
+
- FactoryBot
|
26
|
+
- Rails
|
27
|
+
- RSpec
|
28
|
+
|
29
|
+
---
|
30
|
+
|
9
31
|
### Installation
|
10
32
|
```ruby
|
11
33
|
gem 'armitage-rubocop'
|
data/Rakefile
CHANGED
@@ -8,17 +8,20 @@ require 'rubocop'
|
|
8
8
|
require 'rubocop-rails'
|
9
9
|
require 'rubocop-performance'
|
10
10
|
require 'rubocop-rspec'
|
11
|
+
require 'rubocop-rake'
|
11
12
|
|
12
13
|
RuboCop::RakeTask.new(:rubocop) do |t|
|
13
14
|
t.options = %w[--config ./lib/rubocop.rails.yml]
|
14
15
|
t.requires << 'rubocop-rspec'
|
15
16
|
t.requires << 'rubocop-performance'
|
16
17
|
t.requires << 'rubocop-rails'
|
18
|
+
t.requires << 'rubocop-rake'
|
17
19
|
end
|
18
20
|
|
19
21
|
NON_CHECKABLE_COPS = %w[Rails].freeze # NOTE: Global Rails cop has only `Enabled` option
|
20
22
|
|
21
23
|
namespace :armitage_rubocop do
|
24
|
+
desc 'Full armitage-rubocop build (code style, cops validation, yaml validation)'
|
22
25
|
task :build do
|
23
26
|
build_processes = {
|
24
27
|
code_style_check:
|
data/armitage-rubocop.gemspec
CHANGED
@@ -4,12 +4,14 @@ lib = File.expand_path('lib', __dir__)
|
|
4
4
|
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
5
5
|
|
6
6
|
Gem::Specification.new do |spec|
|
7
|
+
spec.version = '0.76.0.1'
|
8
|
+
|
7
9
|
spec.name = 'armitage-rubocop'
|
8
|
-
spec.version = '0.76.0'
|
9
10
|
spec.license = 'MIT'
|
10
11
|
spec.authors = ['Rustam Ibragimov']
|
11
12
|
spec.email = ['iamdaiver@icloud.com']
|
12
13
|
spec.homepage = 'https://github.com/0exp/armitage'
|
14
|
+
|
13
15
|
spec.summary = 'A set of rubocop settings'
|
14
16
|
spec.description = 'A set of rubocop settings used in my own projects.' \
|
15
17
|
'Support for: vanilla ruby, rspec, rails.'
|
@@ -24,6 +26,7 @@ Gem::Specification.new do |spec|
|
|
24
26
|
spec.add_dependency 'rubocop-performance', '= 1.5.0'
|
25
27
|
spec.add_dependency 'rubocop-rails', '= 2.3.2'
|
26
28
|
spec.add_dependency 'rubocop-rspec', '= 1.36.0'
|
29
|
+
spec.add_dependency 'rubocop-rake', '= 0.5.0'
|
27
30
|
|
28
31
|
spec.add_development_dependency 'bundler'
|
29
32
|
spec.add_development_dependency 'rake'
|
data/lib/common/rake.yml
ADDED
data/lib/rubocop.general.yml
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: armitage-rubocop
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.76.0
|
4
|
+
version: 0.76.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Rustam Ibragimov
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-10
|
11
|
+
date: 2019-11-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rubocop
|
@@ -66,6 +66,20 @@ dependencies:
|
|
66
66
|
- - '='
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: 1.36.0
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: rubocop-rake
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - '='
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: 0.5.0
|
76
|
+
type: :runtime
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - '='
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: 0.5.0
|
69
83
|
- !ruby/object:Gem::Dependency
|
70
84
|
name: bundler
|
71
85
|
requirement: !ruby/object:Gem::Requirement
|
@@ -134,6 +148,7 @@ files:
|
|
134
148
|
- lib/common/naming.yml
|
135
149
|
- lib/common/performance.yml
|
136
150
|
- lib/common/rails.yml
|
151
|
+
- lib/common/rake.yml
|
137
152
|
- lib/common/security.yml
|
138
153
|
- lib/common/style.yml
|
139
154
|
- lib/rspec/capybara.yml
|