Skip to content

Commit

Permalink
Suppress a RuboCop's offense
Browse files Browse the repository at this point in the history
This PR suppresses the following RuboCop's offense:

```console
$ bundle exec rubocop
(snip)

Offenses:

rubocop-rake.gemspec:34:8: C: [Correctable] Gemspec/AddRuntimeDependency: Use add_dependency instead of add_runtime_dependency.
  spec.add_runtime_dependency 'rubocop', '~> 1.0'
       ^^^^^^^^^^^^^^^^^^^^^^

25 files inspected, 1 offense detected, 1 offense autocorrectable
```
  • Loading branch information
koic committed Oct 23, 2024
1 parent 2207e15 commit f4e8b76
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rubocop-rake.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,5 @@ Gem::Specification.new do |spec|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
spec.require_paths = ["lib"]

spec.add_runtime_dependency 'rubocop', '~> 1.0'
spec.add_dependency 'rubocop', '~> 1.0'
end

0 comments on commit f4e8b76

Please sign in to comment.