rubocop-hk 1.2.1 → 1.3.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: 10fe695e4b1601a1f25433d44c4cf4a41d34fe8e87343677c1ef0461f43e0ba3
4
- data.tar.gz: 497a5c04edbbf771d97b2bd00c4b879dca0c28859e1dae83f8f5fdbb952c214f
3
+ metadata.gz: b9f1dc1498a194ae06980b6872988457b32e5c8ddca4e7e65026c93cf3203513
4
+ data.tar.gz: 707276b37ca1e772b66d512f133da403fcfd2be25fcc12e11689610ff32af9d8
5
5
  SHA512:
6
- metadata.gz: 73825a8781331af40e666618a44c6e00c41a5f77ed00ffb36c54b070ec9c37f318f3c652d82874c68da25204cfbac93e8db1395e4987a91ab646d605513a069a
7
- data.tar.gz: c55572742f8305c16944c3f800526580fcad5aac6bf633201dffad5a9c751d2f1594cf65934287c3e765b568aa9e7854ec895a3352e2ed9c8b76f70f8beb1da9
6
+ metadata.gz: 55ce666f8e31b3bb13e40f05e3a9867830ecf46cd6bc531fef101e5824ed714ffb8ce4673e426498ca502914d1c51e08281ccd024bec7a4799b492da15c46c35
7
+ data.tar.gz: c0f8cd0782949676b558c10d1603933ad218873b31ec76ce66b891b3410124d198b4969a21629a648ad37829d45b0bd3c082d61c6b9d24b4d0ce7f9c8d67c21c
data/README.md CHANGED
@@ -21,7 +21,7 @@ A comprehensive RuboCop configuration for modern Ruby 3.3+ and Rails 7.1+ applic
21
21
  Add this line to your application's Gemfile:
22
22
 
23
23
  ```ruby
24
- gem 'rubocop-hk', '~> 1.2.1', require: false
24
+ gem 'rubocop-hk', '~> 1.2.2', require: false
25
25
  ```
26
26
 
27
27
  And then execute:
@@ -79,13 +79,14 @@ See [CUSTOMIZATION.md](CUSTOMIZATION.md) for detailed configuration options.
79
79
  - RuboCop >= 1.78.0
80
80
  - Rails >= 7.1.0 (if using Rails cops)
81
81
 
82
- ## New in v1.2.1
82
+ ## New in v1.2.2
83
83
 
84
- This hotfix release resolves CI/CD pipeline issues and establishes Ruby 3.3+ support:
84
+ This patch release improves CI/CD compatibility and dependency management:
85
85
 
86
- - **Fixed RuboCop 1.80+ compatibility** - Resolved Rails cop validation errors
87
- - **Added missing gem entry point** - Proper gem loading with `require 'rubocop-hk'`
88
- - **Updated Ruby version requirement** - Now requires Ruby >= 3.3.0
86
+ - **Enhanced RuboCop compatibility** - Support for RuboCop 1.78-1.81+ with flexible version constraints
87
+ - **Fixed CI/CD pipeline issues** - Resolved Docker Ruby version compatibility and test failures
88
+ - **Improved dependency management** - Better version ranges for more reliable installations
89
+ - **Maintained Ruby 3.3+ support** - Continues to target modern Ruby versions
89
90
  - **45+ warning-only modern rules** - Gradual adoption without breaking builds
90
91
 
91
92
  See [CHANGELOG.md](CHANGELOG.md) for complete release notes.
data/bin/console ADDED
@@ -0,0 +1,15 @@
1
+ #!/usr/bin/env ruby
2
+ # frozen_string_literal: true
3
+
4
+ require "bundler/setup"
5
+ require "rubocop/hk"
6
+
7
+ # You can add fixtures and/or initialization code here to make experimenting
8
+ # with your gem easier. You can also use a different console, if you like.
9
+
10
+ # (If you use this, don't forget to add pry to your Gemfile!)
11
+ # require "pry"
12
+ # Pry.start
13
+
14
+ require "irb"
15
+ IRB.start(__FILE__)
data/bin/rubocop-hk ADDED
@@ -0,0 +1,6 @@
1
+ #!/usr/bin/env ruby
2
+ # frozen_string_literal: true
3
+
4
+ require "rubocop/hk/command"
5
+
6
+ Rubocop::Hk::Command.start(ARGV)
data/bin/setup ADDED
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ IFS=$"\n\t"
4
+ set -vx
5
+
6
+ bundle install
7
+
8
+ # Do any other automated setup that you need to do here
@@ -2,6 +2,10 @@
2
2
  # Configuration for rubocop-performance plugin
3
3
  # Focused on Ruby performance patterns for Rails 6.0+ applications
4
4
 
5
+ # Load the rubocop-performance plugin
6
+ plugins:
7
+ - rubocop-performance
8
+
5
9
  # Note: Performance cops are now provided by the rubocop-performance gem
6
10
  # This configuration file provides sensible defaults for performance-oriented development
7
11
 
@@ -1,6 +1,10 @@
1
1
  # Rails 6-8.x Configuration - Modern Best Practices for 2025
2
2
  # Optimized for Rails 6.0-8.0+ applications with backward compatibility
3
3
 
4
+ # Load the rubocop-rails plugin
5
+ plugins:
6
+ - rubocop-rails
7
+
4
8
  # ==========================================
5
9
  # Core Rails Cops - Compatible with Rails 6-8.x
6
10
  # ==========================================
@@ -227,10 +231,6 @@ Rails/ReversibleMigration:
227
231
  Description: Ensure migrations are reversible
228
232
  Enabled: true
229
233
 
230
- Rails/SafeNavigation:
231
- Description: Use safe navigation instead of try!
232
- Enabled: true
233
-
234
234
  Rails/SafeNavigationWithBlank:
235
235
  Description: Avoid safe navigation with blank?
236
236
  Enabled: true
@@ -1,3 +1,7 @@
1
+ # Load the rubocop-rspec plugin
2
+ plugins:
3
+ - rubocop-rspec
4
+
1
5
  RSpec/AnyInstance:
2
6
  Description: Check that instances are not being stubbed globally.
3
7
  Prefer instance doubles over stubbing any instance of a class
@@ -3,6 +3,6 @@
3
3
  module Rubocop
4
4
  # RuboCop HK - Modern RuboCop configuration
5
5
  module Hk
6
- VERSION = "1.2.1" unless defined?(VERSION)
6
+ VERSION = "1.3.0" unless defined?(VERSION)
7
7
  end
8
8
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubocop-hk
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.1
4
+ version: 1.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hammad Khan
@@ -13,16 +13,22 @@ dependencies:
13
13
  name: rubocop
14
14
  requirement: !ruby/object:Gem::Requirement
15
15
  requirements:
16
- - - "~>"
16
+ - - ">="
17
+ - !ruby/object:Gem::Version
18
+ version: 1.78.0
19
+ - - "<"
17
20
  - !ruby/object:Gem::Version
18
- version: 1.80.0
21
+ version: 1.82.0
19
22
  type: :runtime
20
23
  prerelease: false
21
24
  version_requirements: !ruby/object:Gem::Requirement
22
25
  requirements:
23
- - - "~>"
26
+ - - ">="
27
+ - !ruby/object:Gem::Version
28
+ version: 1.78.0
29
+ - - "<"
24
30
  - !ruby/object:Gem::Version
25
- version: 1.80.0
31
+ version: 1.82.0
26
32
  - !ruby/object:Gem::Dependency
27
33
  name: rubocop-performance
28
34
  requirement: !ruby/object:Gem::Requirement
@@ -82,12 +88,16 @@ dependencies:
82
88
  description: Modern RuboCop configuration for Ruby and Rails applications
83
89
  email:
84
90
  - hammadkhanxcm@gmail.com
85
- executables: []
91
+ executables:
92
+ - rubocop-hk
86
93
  extensions: []
87
94
  extra_rdoc_files: []
88
95
  files:
89
96
  - README.md
90
97
  - STYLEGUIDE.md
98
+ - bin/console
99
+ - bin/rubocop-hk
100
+ - bin/setup
91
101
  - config/default.yml
92
102
  - config/rubocop-layout.yml
93
103
  - config/rubocop-lint.yml