rubocop-neeto 0.1.12 → 0.1.14

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: 1b93018be6b3def6d6c449b2809931330ce9e1bbf05420ce31c8c8a17e958abf
4
- data.tar.gz: a717e43ba5754ba004d0460e43445d33a9b8ce056b75c16a1a55be0fcea6aed2
3
+ metadata.gz: ae8944880d20f276426bf727a892f8d3b07a02cbba66fa734362d194eff9c693
4
+ data.tar.gz: 944c435b5bbaf72915d631ee5000f82b93b12ff752653782656a67083665c7e8
5
5
  SHA512:
6
- metadata.gz: 6ef0c717345ffc75c8a451c6ea80cce118e4f260d36d29c4252cd54f86ac94db385a61b65512c437fd37c1afa0ccf9cd97c8c5aeae16efed937bb036e5447ca7
7
- data.tar.gz: 7b7d8da23d45418253ced5c59266123bda9e1815ca1b9ee2d515450a4b803b7cd12d30fb6860c2ca5d48ee03b868653bd97cd1ed3e3af817c9a5fabc61d0a6b6
6
+ metadata.gz: 5cb4071674f3abf3a935170e5b747ced06eafd98ffbcca76459e34858bf0b983cc4f69db5533ecb567450f1c725c52bbe489fc51c26db77277fc3e8aca59736b
7
+ data.tar.gz: b9a3a5d98df5092f19ae3f7685548d399682cf763db6c0bcfb415d6c66174d07373110737e96051f2451cf473227ece1a3eeba08358af12f87c341d64fd24540
data/README.md CHANGED
@@ -41,6 +41,42 @@ After checking out the repo, run `bin/setup` to install dependencies. Then, run
41
41
 
42
42
  To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and the created tag, and push the `.gem` file to [rubygems.org](https://rubygems.org).
43
43
 
44
+ ## Disabling Cops
45
+
46
+ You can disable specific cops in several ways:
47
+
48
+ ### Disable a cop for a specific file
49
+
50
+ Use inline comments at the top of the file:
51
+ ```ruby
52
+ # rubocop:disable Neeto/DirectEnvAccess
53
+
54
+ class ApiClient
55
+ def initialize
56
+ @api_key = ENV['API_KEY']
57
+ end
58
+ end
59
+
60
+ # rubocop:enable Neeto/DirectEnvAccess
61
+ ```
62
+
63
+ ### Disable a cop for a specific block
64
+
65
+ Wrap the code with disable/enable comments:
66
+ ```ruby
67
+ # rubocop:disable Neeto/DirectEnvAccess
68
+ api_key = ENV['API_KEY']
69
+ secret = ENV['SECRET_TOKEN']
70
+ # rubocop:enable Neeto/DirectEnvAccess
71
+ ```
72
+
73
+ ### Disable a cop for a single line
74
+
75
+ Add an inline comment at the end of the line:
76
+ ```ruby
77
+ api_key = ENV['API_KEY'] # rubocop:disable Neeto/DirectEnvAccess
78
+ ```
79
+
44
80
  ## Contributing
45
81
 
46
82
  Bug reports and pull requests are welcome.
@@ -2,6 +2,6 @@
2
2
 
3
3
  module RuboCop
4
4
  module Neeto
5
- VERSION = "0.1.12"
5
+ VERSION = "0.1.14"
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubocop-neeto
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.12
4
+ version: 0.1.14
5
5
  platform: ruby
6
6
  authors:
7
7
  - Abhay V Ashokan
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2026-01-27 00:00:00.000000000 Z
11
+ date: 2026-04-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rubocop