rubocop-fjord 0.1.4 → 0.2.1

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: f200b497645e044eec1b835e1f1212a1e36250ef3b4a40a9ff6349843c51628a
4
- data.tar.gz: 1363125267950b9e74c7cebd03af25bed170e1f2be381bcd05b77aaf12f20822
3
+ metadata.gz: 3d0678c87d106560e17c041425a87e8135e6aa20dbb1002a9ebb088a1908da2f
4
+ data.tar.gz: 9f71b6310834aec3c34ca0b70b8b4b8e21672b86c1567933c513845cb4d95636
5
5
  SHA512:
6
- metadata.gz: e95eda66eeea7dd022363761be6d61a5d6cc846431ce605765e4c6ccd43d1901236b9c03b87e3bab996029388f539dbf0dec5f099b2d388e5fb7196dcd0c782b
7
- data.tar.gz: 259910ba237aa8c215db88d1ae2f7ff4acd0fb4ecaa7de59be0b0ba290565f14132e7c27cd1772096c226cb5e96517ea49dd2784a618313532197b4ac2e480ed
6
+ metadata.gz: bc6c42976c6c7c67b95aa6c8b9e2a5cbd2a97fad55cf5d21eb879455b073ffbde2c591e91280ee2466836c34896a5cc63eaa11f096f8d4c3c60d446dad56ac6a
7
+ data.tar.gz: 27bad7559de10250d49a3a32b67e0d57aa7a02f0a25dc294eb83407f916c4076a9fc4cf155337a11c6c2565858a4455752a0b6a60e2d07c4b764620b20c9e4f1
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
@@ -7,9 +7,17 @@ rubocop-fjord is a rubocop configuration from Fjord, Inc.
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
- # gem 'rubocop-rails'
13
+ end
14
+ ```
15
+
16
+ ```ruby
17
+ # For Rails projects
18
+ group :development do
19
+ gem 'rubocop-fjord', require: false
20
+ gem 'rubocop-rails', require: false
13
21
  end
14
22
  ```
15
23
 
@@ -23,13 +31,27 @@ Or install it yourself as:
23
31
 
24
32
  ## Usage
25
33
 
26
- 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
+ ```
27
42
 
28
43
  ```yml
44
+ # For Rails projects
29
45
  inherit_gem:
30
46
  rubocop-fjord:
31
47
  - "config/rubocop.yml"
32
- # - "config/rails.yml"
48
+ - "config/rails.yml"
49
+ ```
50
+
51
+ Run `rubocop` command:
52
+
53
+ ```
54
+ $ rubocop
33
55
  ```
34
56
 
35
57
  ## Development
data/config/rails.yml CHANGED
@@ -7,7 +7,9 @@ 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/**/*'
@@ -15,4 +17,4 @@ AllCops:
15
17
 
16
18
  Metrics/MethodLength:
17
19
  Exclude:
18
- - '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:
@@ -29,3 +30,15 @@ Metrics/CyclomaticComplexity:
29
30
 
30
31
  Metrics/AbcSize:
31
32
  Enabled: false
33
+
34
+ Metrics/ClassLength:
35
+ Exclude:
36
+ - test/**/*
37
+
38
+ Metrics/MethodLength:
39
+ Exclude:
40
+ - test/**/*
41
+
42
+ Metrics/BlockLength:
43
+ Exclude:
44
+ - spec/**/*
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Rubocop
4
4
  module Fjord
5
- VERSION = '0.1.4'
5
+ VERSION = '0.2.1'
6
6
  end
7
7
  end
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.4
4
+ version: 0.2.1
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-11-09 00:00:00.000000000 Z
11
+ date: 2022-07-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rubocop
@@ -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
@@ -122,8 +122,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
122
122
  - !ruby/object:Gem::Version
123
123
  version: '0'
124
124
  requirements: []
125
- rubygems_version: 3.0.3
126
- signing_key:
125
+ rubygems_version: 3.3.5
126
+ signing_key:
127
127
  specification_version: 4
128
128
  summary: rubocop rules for fjord, Inc.
129
129
  test_files: []