nonstandard 0.1.2 → 0.1.3

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: d75402f0cd408fea08271bafb71c3fcec3326f8edc3ad01ebbdb1b2ad72f3cd9
4
- data.tar.gz: fcd02277980b6f4527e3762542c6a92b81cfa93135791a9eaf96b74ceff46240
3
+ metadata.gz: fe798af7005d6da709ffdf1e5a582caaf010b471d9dd6d4e6d9408d7c1086847
4
+ data.tar.gz: f9205b431761be31947b7170caa903f298aa2188670159449d17f2c0113c74ac
5
5
  SHA512:
6
- metadata.gz: 4bfd5620e46da3dba6eff8a0899fb6940349743f71508621f4de16c8bb424ee8c74bcb75bf47234f9ca41ce510e227ffe4073b5b620717ea4968293e1b331312
7
- data.tar.gz: fb10da36b30709281faf4512403966432fe6e1cd77cd28954f98881ef86f6b4a5cd19b2cbf0d8ff77a0dd8d14188569cce881545475449a772b2a42e0dd39546
6
+ metadata.gz: 34cd68f675e454e5f71ec6233fcb593d4ec8d60c4b9c75e45e48c49db57e72e59a5031199cf5026018ac523df21e4031559df7a011385466defb5d851db4a782
7
+ data.tar.gz: e6441bc1d7de69148c44c30f44d8c20cc84f605a226ab32833a6aad8b28be30c7788d31757fc4251263f015d59560517cbceae74d3ca262f742a62b772e53cc7
data/CHANGELOG.md CHANGED
@@ -1,7 +1,11 @@
1
1
  # CHANGELOG
2
2
 
3
3
  ## main (unreleased)
4
- - Work in Progress
4
+
5
+ ## 0.1.3 (2021-11-06)
6
+ - Split rules into ruby/rails/rswag(rspec) rules
7
+ - Add exclusion for annotate_models comments
8
+ - Add exclusion for spec variables ending with []
5
9
 
6
10
  ## 0.1.2 (2021-06-11)
7
11
  - Improvement: Disable AbcSize/BlockLength/MethodLength
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- nonstandard (0.1.2)
4
+ nonstandard (0.1.3)
5
5
  rubocop
6
6
  rubocop-faker
7
7
  rubocop-performance
@@ -12,7 +12,7 @@ PATH
12
12
  GEM
13
13
  remote: https://rubygems.org/
14
14
  specs:
15
- activesupport (6.1.3.2)
15
+ activesupport (6.1.4.1)
16
16
  concurrent-ruby (~> 1.0, >= 1.0.2)
17
17
  i18n (>= 1.6, < 2)
18
18
  minitest (>= 5.1)
@@ -20,50 +20,49 @@ GEM
20
20
  zeitwerk (~> 2.3)
21
21
  ast (2.4.2)
22
22
  concurrent-ruby (1.1.9)
23
- faker (2.18.0)
23
+ faker (2.19.0)
24
24
  i18n (>= 1.6, < 2)
25
- i18n (1.8.10)
25
+ i18n (1.8.11)
26
26
  concurrent-ruby (~> 1.0)
27
27
  minitest (5.14.4)
28
- parallel (1.20.1)
29
- parser (3.0.1.1)
28
+ parallel (1.21.0)
29
+ parser (3.0.2.0)
30
30
  ast (~> 2.4.1)
31
31
  rack (2.2.3)
32
32
  rainbow (3.0.0)
33
33
  rake (13.0.3)
34
34
  regexp_parser (2.1.1)
35
35
  rexml (3.2.5)
36
- rubocop (1.16.1)
36
+ rubocop (1.22.3)
37
37
  parallel (~> 1.10)
38
38
  parser (>= 3.0.0.0)
39
39
  rainbow (>= 2.2.2, < 4.0)
40
40
  regexp_parser (>= 1.8, < 3.0)
41
41
  rexml
42
- rubocop-ast (>= 1.7.0, < 2.0)
42
+ rubocop-ast (>= 1.12.0, < 2.0)
43
43
  ruby-progressbar (~> 1.7)
44
44
  unicode-display_width (>= 1.4.0, < 3.0)
45
- rubocop-ast (1.7.0)
45
+ rubocop-ast (1.12.0)
46
46
  parser (>= 3.0.1.1)
47
47
  rubocop-faker (1.1.0)
48
48
  faker (>= 2.12.0)
49
49
  rubocop (>= 0.82.0)
50
- rubocop-performance (1.11.3)
50
+ rubocop-performance (1.12.0)
51
51
  rubocop (>= 1.7.0, < 2.0)
52
52
  rubocop-ast (>= 0.4.0)
53
- rubocop-rails (2.10.1)
53
+ rubocop-rails (2.12.4)
54
54
  activesupport (>= 4.2.0)
55
55
  rack (>= 1.1)
56
56
  rubocop (>= 1.7.0, < 2.0)
57
- rubocop-rake (0.5.1)
58
- rubocop
59
- rubocop-rspec (2.4.0)
57
+ rubocop-rake (0.6.0)
60
58
  rubocop (~> 1.0)
61
- rubocop-ast (>= 1.1.0)
59
+ rubocop-rspec (2.5.0)
60
+ rubocop (~> 1.19)
62
61
  ruby-progressbar (1.11.0)
63
62
  tzinfo (2.0.4)
64
63
  concurrent-ruby (~> 1.0)
65
- unicode-display_width (2.0.0)
66
- zeitwerk (2.4.2)
64
+ unicode-display_width (2.1.0)
65
+ zeitwerk (2.5.1)
67
66
 
68
67
  PLATFORMS
69
68
  arm64-darwin-20
@@ -74,4 +73,4 @@ DEPENDENCIES
74
73
  rake (~> 13.0)
75
74
 
76
75
  BUNDLED WITH
77
- 2.2.16
76
+ 2.2.30
data/README.md CHANGED
@@ -21,8 +21,12 @@ end
21
21
  Add this to your project `.rubocop.yml` file
22
22
 
23
23
  ```ruby
24
+ # Include one or more of the configurations below
24
25
  inherit_gem:
25
- nonstandard: default.yml
26
+ nonstandard:
27
+ - ruby.yml # Vanilla ruby/rubocop/performance
28
+ - rails.yml # Rails
29
+ - rswag.yml # RSpec/rswag integration
26
30
  ```
27
31
 
28
32
  And then execute:
@@ -56,11 +60,13 @@ If you have access to publish the gem on rubygems:
56
60
  1. `bundle` if any dependencies have changed
57
61
  1. Commit all changes
58
62
  1. Update the `CHANGELOG.md`
59
- 1. Publish to rubygems:
60
- 1. `rake build`
61
- 1. `cd pkg`
62
- 1. `gem push nonstandard.<version_number>.gem`
63
+ 1. Publish to rubygems
63
64
 
65
+ Publishing to rubygems:
66
+
67
+ 1. `rake build`
68
+ 1. `cd pkg`
69
+ 1. `gem push nonstandard.<version_number>.gem`
64
70
 
65
71
  ## Contributing
66
72
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Nonstandard
4
- VERSION = '0.1.2'
4
+ VERSION = '0.1.3'
5
5
  end
@@ -1,40 +1,31 @@
1
1
  ---
2
- # Reference: https://github.com/rubocop-hq/rubocop/blob/master/config/default.yml
2
+ # https://github.com/rubocop-hq/rubocop/blob/master/config/default.yml
3
3
  require:
4
- - rubocop-faker
5
- - rubocop-performance
6
4
  - rubocop-rails
7
- - rubocop-rake
8
- - rubocop-rspec
5
+
6
+ inherit_mode:
7
+ merge:
8
+ - Exclude
9
9
 
10
10
  AllCops:
11
+ NewCops: enable
11
12
  Exclude:
12
- - 'bin/**/*'
13
- - 'db/**/*'
14
13
  - 'lib/tasks/*'
15
- - 'Rakefile'
16
- - '*.gemspec'
17
14
  - '**/node_modules/**/*'
18
15
  - 'vendor/**/*'
19
16
 
20
17
  Layout/LineLength:
21
18
  Exclude:
22
19
  - config/routes.rb
20
+ IgnoredPatterns:
21
+ - '\A# '
23
22
 
24
23
  Metrics/AbcSize:
25
24
  Enabled: false
26
25
 
27
- Metrics/BlockLength:
28
- Enabled: false
29
-
30
- Metrics/MethodLength:
31
- Enabled: false
32
-
33
26
  Style/Documentation:
34
27
  Exclude:
35
28
  - app/controllers/**/*
36
29
  - app/helpers/application_helper.rb
37
30
  - app/models/application_record.rb
38
31
  - config/application.rb
39
- - spec/**/*
40
- - test/**/*
data/rswag.yml ADDED
@@ -0,0 +1,30 @@
1
+ ---
2
+ # https://github.com/rubocop-hq/rubocop/blob/master/config/default.yml
3
+ require:
4
+ - rubocop-rspec
5
+
6
+ inherit_mode:
7
+ merge:
8
+ - Exclude
9
+
10
+ AllCops:
11
+ NewCops: enable
12
+
13
+ Layout/LineLength:
14
+ Exclude:
15
+ - spec/swagger_helper.rb
16
+
17
+ RSpec/EmptyExampleGroup:
18
+ Exclude:
19
+ - spec/requests/**/*
20
+
21
+ RSpec/VariableName:
22
+ IgnoredPatterns:
23
+ - ^Authorization
24
+ - .*\[\]
25
+ - .*\[(.*)?\]
26
+
27
+ Style/Documentation:
28
+ Exclude:
29
+ - spec/**/*
30
+ - test/**/*
data/ruby.yml ADDED
@@ -0,0 +1,24 @@
1
+ ---
2
+ # https://github.com/rubocop-hq/rubocop/blob/master/config/default.yml
3
+ require:
4
+ - rubocop-performance
5
+ - rubocop-rake
6
+
7
+ inherit_mode:
8
+ merge:
9
+ - Exclude
10
+
11
+ AllCops:
12
+ NewCops: enable
13
+ Exclude:
14
+ - 'Rakefile'
15
+ - '*.gemspec'
16
+
17
+ Metrics/AbcSize:
18
+ Enabled: false
19
+
20
+ Metrics/BlockLength:
21
+ Enabled: false
22
+
23
+ Metrics/MethodLength:
24
+ Enabled: false
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nonstandard
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jay Dorsey
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-06-11 00:00:00.000000000 Z
11
+ date: 2021-11-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rubocop
@@ -111,10 +111,12 @@ files:
111
111
  - Rakefile
112
112
  - bin/console
113
113
  - bin/setup
114
- - default.yml
115
114
  - lib/nonstandard.rb
116
115
  - lib/nonstandard/version.rb
117
116
  - nonstandard.gemspec
117
+ - rails.yml
118
+ - rswag.yml
119
+ - ruby.yml
118
120
  homepage: https://github.com/jaybocop/nonstandard
119
121
  licenses:
120
122
  - MIT
@@ -138,7 +140,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
138
140
  - !ruby/object:Gem::Version
139
141
  version: '0'
140
142
  requirements: []
141
- rubygems_version: 3.2.16
143
+ rubygems_version: 3.2.30
142
144
  signing_key:
143
145
  specification_version: 4
144
146
  summary: Opinionated Style Guide