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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e927ec26b90c2f5fdf701fed0d9f0219b10ec176f3ab23bb7ea5e5befd819ef5
4
- data.tar.gz: '086c2a1533ef1326677ed86ba0b8ae70e49a9cf834a49ce10c403ca15b457926'
3
+ metadata.gz: 4c5863f69ef011a8c881d879fd745c1692c51e9de404673dd7c1f1ae93b476c5
4
+ data.tar.gz: d45b50393400d4c99e4e46e61882908f5606bed02327c5222176a0e0f39a9140
5
5
  SHA512:
6
- metadata.gz: 5a10671afc77526992e0e3b5ef62b86b722540760290a6f26c6ce708a3318a4d25ff8d5e50ceb283092f119db7cfbd189a3ab16dd4984988f02cd90d3f74a10a
7
- data.tar.gz: 1320dcd7d12c55c6bf4c5d371bf4dd57e53130d77c2ba888d8f2b4025e90cc57008a31e6e9db1a48c298f2f991b7624f680fc983bf48ba76d7b535432ab96672
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.0)
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.1)
11
+ ast (2.4.2)
12
12
  minitest (5.14.2)
13
- parallel (1.19.2)
14
- parser (2.7.1.5)
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.8.1)
19
- rexml (3.2.4)
20
- rubocop (0.92.0)
18
+ regexp_parser (2.1.1)
19
+ rexml (3.2.5)
20
+ rubocop (1.18.4)
21
21
  parallel (~> 1.10)
22
- parser (>= 2.7.1.5)
22
+ parser (>= 3.0.0.0)
23
23
  rainbow (>= 2.2.2, < 4.0)
24
- regexp_parser (>= 1.7)
24
+ regexp_parser (>= 1.8, < 3.0)
25
25
  rexml
26
- rubocop-ast (>= 0.5.0)
26
+ rubocop-ast (>= 1.8.0, < 2.0)
27
27
  ruby-progressbar (~> 1.7)
28
- unicode-display_width (>= 1.4.0, < 2.0)
29
- rubocop-ast (0.7.1)
30
- parser (>= 2.7.1.5)
31
- rubocop-performance (1.8.1)
32
- rubocop (>= 0.87.0)
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.10.1)
35
- unicode-display_width (1.7.0)
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 fro Fjord, Inc.
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
- # - "config/rails.yml"
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
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Rubocop
4
4
  module Fjord
5
- VERSION = '0.1.2'
5
+ VERSION = '0.2.0'
6
6
  end
7
7
  end
@@ -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.1.2
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: 2020-10-06 00:00:00.000000000 Z
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: []