rubocop-fjord 0.1.2 → 0.2.0
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/Gemfile.lock +18 -18
- data/README.md +26 -3
- data/config/rails.yml +4 -1
- data/config/rubocop.yml +4 -0
- data/lib/rubocop/fjord/version.rb +1 -1
- data/rubocop-fjord.gemspec +1 -1
- metadata +8 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4c5863f69ef011a8c881d879fd745c1692c51e9de404673dd7c1f1ae93b476c5
|
4
|
+
data.tar.gz: d45b50393400d4c99e4e46e61882908f5606bed02327c5222176a0e0f39a9140
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7e4bb85fc745436e6b3a52ba6f4f1899acd16cb89ff66a03010678d5db32443be8668d08d90938df7df09fb025adaaa296f55eb342ee6f60d77242298737cf18
|
7
|
+
data.tar.gz: 66853b08603a3e9e6d4e8ed958476312bc80495a06513c11055b3997b03b1090a2642fc59e15229f6acca2d0efe8453d2cb43580c92402c369b5f3794ca15ec9
|
data/Gemfile.lock
CHANGED
@@ -1,38 +1,38 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
rubocop-fjord (0.1.
|
5
|
-
rubocop
|
4
|
+
rubocop-fjord (0.1.4)
|
5
|
+
rubocop (>= 1.0)
|
6
6
|
rubocop-performance
|
7
7
|
|
8
8
|
GEM
|
9
9
|
remote: https://rubygems.org/
|
10
10
|
specs:
|
11
|
-
ast (2.4.
|
11
|
+
ast (2.4.2)
|
12
12
|
minitest (5.14.2)
|
13
|
-
parallel (1.
|
14
|
-
parser (
|
13
|
+
parallel (1.20.1)
|
14
|
+
parser (3.0.2.0)
|
15
15
|
ast (~> 2.4.1)
|
16
16
|
rainbow (3.0.0)
|
17
17
|
rake (10.5.0)
|
18
|
-
regexp_parser (1.
|
19
|
-
rexml (3.2.
|
20
|
-
rubocop (
|
18
|
+
regexp_parser (2.1.1)
|
19
|
+
rexml (3.2.5)
|
20
|
+
rubocop (1.18.4)
|
21
21
|
parallel (~> 1.10)
|
22
|
-
parser (>=
|
22
|
+
parser (>= 3.0.0.0)
|
23
23
|
rainbow (>= 2.2.2, < 4.0)
|
24
|
-
regexp_parser (>= 1.
|
24
|
+
regexp_parser (>= 1.8, < 3.0)
|
25
25
|
rexml
|
26
|
-
rubocop-ast (>=
|
26
|
+
rubocop-ast (>= 1.8.0, < 2.0)
|
27
27
|
ruby-progressbar (~> 1.7)
|
28
|
-
unicode-display_width (>= 1.4.0, <
|
29
|
-
rubocop-ast (
|
30
|
-
parser (>=
|
31
|
-
rubocop-performance (1.
|
32
|
-
rubocop (>=
|
28
|
+
unicode-display_width (>= 1.4.0, < 3.0)
|
29
|
+
rubocop-ast (1.8.0)
|
30
|
+
parser (>= 3.0.1.1)
|
31
|
+
rubocop-performance (1.11.4)
|
32
|
+
rubocop (>= 1.7.0, < 2.0)
|
33
33
|
rubocop-ast (>= 0.4.0)
|
34
|
-
ruby-progressbar (1.
|
35
|
-
unicode-display_width (
|
34
|
+
ruby-progressbar (1.11.0)
|
35
|
+
unicode-display_width (2.0.0)
|
36
36
|
|
37
37
|
PLATFORMS
|
38
38
|
ruby
|
data/README.md
CHANGED
@@ -1,17 +1,26 @@
|
|
1
1
|
# rubocop-fjord
|
2
2
|
|
3
|
-
rubocop-fjord is a rubocop configuration
|
3
|
+
rubocop-fjord is a rubocop configuration from Fjord, Inc.
|
4
4
|
|
5
5
|
## Installation
|
6
6
|
|
7
7
|
Add this line to your application's Gemfile:
|
8
8
|
|
9
9
|
```ruby
|
10
|
+
# For plain Ruby scripts
|
10
11
|
group :development do
|
11
12
|
gem 'rubocop-fjord', require: false
|
12
13
|
end
|
13
14
|
```
|
14
15
|
|
16
|
+
```ruby
|
17
|
+
# For Rails projects
|
18
|
+
group :development do
|
19
|
+
gem 'rubocop-fjord', require: false
|
20
|
+
gem 'rubocop-rails', require: false
|
21
|
+
end
|
22
|
+
```
|
23
|
+
|
15
24
|
And then execute:
|
16
25
|
|
17
26
|
$ bundle
|
@@ -22,13 +31,27 @@ Or install it yourself as:
|
|
22
31
|
|
23
32
|
## Usage
|
24
33
|
|
25
|
-
Add `inherit_gem:` setting to your `.rubocop.yml
|
34
|
+
Add `inherit_gem:` setting to your `.rubocop.yml`:
|
35
|
+
|
36
|
+
```yml
|
37
|
+
# For plain Ruby scripts
|
38
|
+
inherit_gem:
|
39
|
+
rubocop-fjord:
|
40
|
+
- "config/rubocop.yml"
|
41
|
+
```
|
26
42
|
|
27
43
|
```yml
|
44
|
+
# For Rails projects
|
28
45
|
inherit_gem:
|
29
46
|
rubocop-fjord:
|
30
47
|
- "config/rubocop.yml"
|
31
|
-
|
48
|
+
- "config/rails.yml"
|
49
|
+
```
|
50
|
+
|
51
|
+
Run `rubocop` command:
|
52
|
+
|
53
|
+
```
|
54
|
+
$ rubocop
|
32
55
|
```
|
33
56
|
|
34
57
|
## Development
|
data/config/rails.yml
CHANGED
@@ -7,11 +7,14 @@ AllCops:
|
|
7
7
|
- '**/vendor/**/*'
|
8
8
|
- 'app/views/**/*'
|
9
9
|
- 'config/**/*'
|
10
|
+
- 'config.ru'
|
10
11
|
- 'node_modules/**/*'
|
12
|
+
- 'db/migrate/*'
|
11
13
|
- 'db/schema.rb'
|
12
14
|
- 'storage/**/*'
|
13
15
|
- 'tmp/**/*'
|
16
|
+
- 'bin/**/*'
|
14
17
|
|
15
18
|
Metrics/MethodLength:
|
16
19
|
Exclude:
|
17
|
-
- 'db/migrate/*.rb'
|
20
|
+
- 'db/migrate/*.rb'
|
data/config/rubocop.yml
CHANGED
@@ -2,6 +2,7 @@ require:
|
|
2
2
|
- rubocop-performance
|
3
3
|
|
4
4
|
AllCops:
|
5
|
+
TargetRubyVersion: 2.6
|
5
6
|
NewCops: disable
|
6
7
|
|
7
8
|
Performance:
|
@@ -17,6 +18,9 @@ Style/Documentation:
|
|
17
18
|
Style/ClassAndModuleChildren:
|
18
19
|
Enabled: false
|
19
20
|
|
21
|
+
Style/AsciiComments:
|
22
|
+
Enabled: false
|
23
|
+
|
20
24
|
Metrics/MethodLength:
|
21
25
|
CountComments: false
|
22
26
|
Max: 20
|
data/rubocop-fjord.gemspec
CHANGED
@@ -25,7 +25,7 @@ Gem::Specification.new do |spec|
|
|
25
25
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
26
26
|
spec.require_paths = ['lib']
|
27
27
|
|
28
|
-
spec.add_dependency 'rubocop'
|
28
|
+
spec.add_dependency 'rubocop', '>= 1.0'
|
29
29
|
spec.add_dependency 'rubocop-performance'
|
30
30
|
|
31
31
|
spec.add_development_dependency 'bundler', '~> 1.17'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rubocop-fjord
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Masaki Komagata
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-10-26 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: '1.0'
|
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: '1.0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rubocop-performance
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -80,7 +80,7 @@ dependencies:
|
|
80
80
|
- - "~>"
|
81
81
|
- !ruby/object:Gem::Version
|
82
82
|
version: '10.0'
|
83
|
-
description:
|
83
|
+
description:
|
84
84
|
email:
|
85
85
|
- komagata@gmail.com
|
86
86
|
executables: []
|
@@ -107,7 +107,7 @@ homepage: https://github.com/fjordllc/rubocop-fjord
|
|
107
107
|
licenses:
|
108
108
|
- MIT
|
109
109
|
metadata: {}
|
110
|
-
post_install_message:
|
110
|
+
post_install_message:
|
111
111
|
rdoc_options: []
|
112
112
|
require_paths:
|
113
113
|
- lib
|
@@ -123,7 +123,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
123
123
|
version: '0'
|
124
124
|
requirements: []
|
125
125
|
rubygems_version: 3.0.3
|
126
|
-
signing_key:
|
126
|
+
signing_key:
|
127
127
|
specification_version: 4
|
128
128
|
summary: rubocop rules for fjord, Inc.
|
129
129
|
test_files: []
|