ezcater_rubocop 5.0.0 → 5.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8d5368b75099f59a900d7c2b9805ea045e3dc0e8150612b4a455d0aa4bf661fe
4
- data.tar.gz: 96200ba4b7ee03b2781ad4b3bb8c202eab19a54600ec135d2d422cde96caef1f
3
+ metadata.gz: 3dbb408ffa690e48915809b4f55644601682034469f8b59d0f73624b2a1a225f
4
+ data.tar.gz: 75aa569d52eb164cc9ded5d5c1c776bb658dca665fb6c5c013ca9b0607d71db2
5
5
  SHA512:
6
- metadata.gz: fc5992ee8b6cb9facd94ef7fa312271352d405f6617375cb2fa9eae60e76f5d74930bc2aff46218a934268558fbc3374e46730d16209fdc3f68d6cd3c98f7879
7
- data.tar.gz: 6d240eca17afb70b3072dfb92f50773bb48c9d207ce316cd0223a56b04ac6ff5d0196784387a524063c976e10d1d1270ae0ad7eddd248e384dc6a31b893eed59
6
+ metadata.gz: 374a5e16b853aabf25af23c4860c6a00f1b457682499fda3f84937d764d5398ab8ae3c34cbcb4c948da51fc7795fe6a7ab14d3686bfe03f8613ffc3663bebc5c
7
+ data.tar.gz: 880dd4bea07e44db41452388715c763f5a608d3875ff767a3a2c689f69321a076004e71e211e6b60de5b90806a6886a8342336e422f35063ade3c4c76d40854e
data/.github/CODEOWNERS CHANGED
@@ -1 +1 @@
1
- * @ezcater/ruby-style-group
1
+ * @ezcater/developer-experience @ezcater/ruby-style-group
data/CHANGELOG.md CHANGED
@@ -6,6 +6,9 @@ This gem is moving onto its own [Semantic Versioning](https://semver.org/) schem
6
6
 
7
7
  Prior to v1.0.0 this gem was versioned based on the `MAJOR`.`MINOR` version of RuboCop. The first release of the ezcater_rubocop gem was `v0.49.0`.
8
8
 
9
+ ## 5.1.0
10
+ - Change paths to exclude for various cops to be agnostic of directory structure prior to the matching string. This is to allow apps to have greater flexibility in where files live, but still have them excluded from certain cops. The need for this arose when implementing Stimpack, which moves specs and other files under app/packs/[pack_name].
11
+
9
12
  ## 5.0.0
10
13
  - Enable all added cops since 0.8. There are a lot of new cops now, be sure to use `--regenerate-todo` if you're on a large project that can't be updated easily.
11
14
 
data/conf/rubocop.yml CHANGED
@@ -23,7 +23,7 @@ Metrics/AbcSize:
23
23
  Metrics/BlockLength:
24
24
  Exclude:
25
25
  - "*.gemspec"
26
- - "spec/**/*.rb"
26
+ - "/**/spec/**/*.rb"
27
27
 
28
28
  Metrics/CyclomaticComplexity:
29
29
  Enabled: false
@@ -61,12 +61,12 @@ RSpec/ContextWording:
61
61
 
62
62
  RSpec/DescribeClass:
63
63
  Exclude:
64
- - "spec/requests/**/*.rb"
65
- - "spec/features/**/*.rb"
66
- - "spec/routing/**/*.rb"
67
- - "spec/views/**/*.rb"
68
- - "spec/system/**/*.rb"
69
- - "spec/integrations/**/*.rb"
64
+ - "/**/spec/features/**/*.rb"
65
+ - "/**/spec/requests/**/*.rb"
66
+ - "/**/spec/routing/**/*.rb"
67
+ - "/**/spec/views/**/*.rb"
68
+ - "/**/spec/system/**/*.rb"
69
+ - "/**/spec/integrations/**/*.rb"
70
70
 
71
71
  RSpec/ExampleLength:
72
72
  Max: 25
@@ -17,8 +17,8 @@ Metrics/BlockLength:
17
17
  - Exclude
18
18
  Exclude:
19
19
  - "app/graphql/**/*.rb"
20
- - "config/environments/*.rb"
21
- - "lib/tasks/**/*.rake"
20
+ - "/**/config/environments/*.rb"
21
+ - "/**/lib/tasks/**/*.rake"
22
22
 
23
23
  Rails:
24
24
  Enabled: true
@@ -63,19 +63,19 @@ Ezcater/RailsEnv:
63
63
  Description: 'Enforce the use of `Rails.configuration.x.<foo>` instead of checking `Rails.env`.'
64
64
  Enabled: true
65
65
  Exclude:
66
- - "config/**/*"
67
- - "spec/rails_helper.rb"
66
+ - "/**/config/**/*"
67
+ - "/**/spec/rails_helper.rb"
68
68
  - "db/**/*"
69
- - "lib/tasks/**/*"
70
- - "spec/lib/tasks/**/*"
69
+ - "/**/lib/tasks/**/*"
70
+ - "/**/spec/lib/tasks/**/*"
71
71
 
72
72
  Ezcater/DirectEnvCheck:
73
73
  Description: 'Enforce the use of `Rails.configuration.x.<foo>` instead of checking `ENV`.'
74
74
  Enabled: true
75
75
  Exclude:
76
76
  - "bin/**/*"
77
- - "config/**/*"
78
- - "spec/rails_helper.rb"
77
+ - "/**/config/**/*"
78
+ - "/**/spec/rails_helper.rb"
79
79
  - "db/**/*"
80
- - "lib/tasks/**/*"
81
- - "spec/lib/tasks/**/*"
80
+ - "/**/lib/tasks/**/*"
81
+ - "/**/spec/lib/tasks/**/*"
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module EzcaterRubocop
4
- VERSION = "5.0.0"
4
+ VERSION = "5.1.0"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ezcater_rubocop
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.0.0
4
+ version: 5.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - ezCater, Inc
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-07-21 00:00:00.000000000 Z
11
+ date: 2022-11-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler