rubocop-rickselby 0.5.0 → 0.7.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: 189fcbc5ca7ad79fdb8577740343febeacfcd747ab748f75da785ba2fbb6eba9
4
- data.tar.gz: bfa8de3e9d21538efaed490908c1d55defc41f22b00a2456fb5fafff5216379c
3
+ metadata.gz: c06ae72de9af2430189d5331c95dfdcf39bb76caabad29595468bf4561bbce94
4
+ data.tar.gz: 9b422db84981cbf1be3862a30a6bfe12d84613c40e2955c06bcbee903de87090
5
5
  SHA512:
6
- metadata.gz: 8eb8b13a0ac522df817a336fd2e6ee0402168e178038cc53f3df4092e0fc90e8056adf00aea33faf109692bfd9fcd33d79e8466b6e9023b5524217c72757e7dd
7
- data.tar.gz: b53a283a2a0ac3991ac51d0f0aed036561c925f7c6155eba2bb5e64953d33612bd8c0e8a510389c1ea2642cfe73152c63fa7b971b6ccd2f0efb52d747381f6f7
6
+ metadata.gz: bce4f93ca8cf03d8746fab266153909059c7b749b8ccb4c278a03a04121aef84df77a8ba6b9e467fdcf70893c3d947a3d367e8b15e8ec5edeaace6f8c33c87fe
7
+ data.tar.gz: 2faa8a8e98d18e15cf48d7e659fd5ac1a5d2ab286f8ab36b2e69a3a7e7b228a041911e2db544a83004c5fa99ce4210e47d265760f26e3b4b25c28fd87dd088ec
data/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Config in `./config`
4
4
 
5
- ## Usage
5
+ ## Installation
6
6
 
7
7
  Add `rubocop-rickselby` to your Gemfile:
8
8
 
@@ -23,7 +23,7 @@ group :development, :test do
23
23
  end
24
24
  ```
25
25
 
26
- Inherit the configuration in your `.rubocop.yml`:
26
+ Inherit the desired configuration in your `.rubocop.yml`:
27
27
 
28
28
  ```yaml
29
29
  # .rubocop.yml
@@ -34,3 +34,9 @@ inherit_gem:
34
34
  - config/rspec.yml # RSpec-specific rules and cops
35
35
  - config/capybara.yml # capybara-specific rules and cops
36
36
  ```
37
+
38
+ ## Contributing
39
+ Bug reports and pull requests are welcome on GitHub at https://github.com/rickselby/rubocop-rickselby.
40
+
41
+ ## License
42
+ The gem is available as open source under the terms of the MIT License.
data/config/rails.yml CHANGED
@@ -2,9 +2,31 @@ require:
2
2
  - rubocop-rails
3
3
  - rubocop-rails-accessibility
4
4
 
5
+ # Config blocks can be very long
6
+ Metrics/BlockLength:
7
+ Exclude:
8
+ - 'config/**/*'
9
+
10
+ # casecmp does not work with all of Unicode, so this is not a good optimization for internationalized apps
11
+ Performance/Casecmp:
12
+ Enabled: false
13
+
14
+ # This cop is unsafe because it has known compatibility issues with ActiveRecord and other frameworks.
15
+ Performance/Count:
16
+ Enabled: false
17
+
18
+ # This cop is unsafe because it has known compatibility issues with ActiveRecord and other frameworks.
19
+ Performance/Detect:
20
+ Enabled: false
21
+
22
+ # Sum is different between enumerables and ActiveRecord, let's not cause confusion...
23
+ Performance/Sum:
24
+ Enabled: false
25
+
5
26
  Style/Documentation:
6
27
  Exclude:
7
28
  - app/controllers/**/*
8
29
  - app/models/**/*
30
+ - config/**/*
9
31
  - db/migrate/**/*
10
32
  - test/**/*
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Rubocop
4
4
  module Rickselby
5
- VERSION = "0.5.0"
5
+ VERSION = "0.7.0"
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubocop-rickselby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rick Selby
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-12-03 00:00:00.000000000 Z
11
+ date: 2023-12-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rubocop