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 +4 -4
- data/README.md +36 -0
- data/lib/rubocop/neeto/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: ae8944880d20f276426bf727a892f8d3b07a02cbba66fa734362d194eff9c693
|
|
4
|
+
data.tar.gz: 944c435b5bbaf72915d631ee5000f82b93b12ff752653782656a67083665c7e8
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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.
|
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.
|
|
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-
|
|
11
|
+
date: 2026-04-02 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rubocop
|