Skip to content

Commit

Permalink
Fix warning when executing rubocop with bundle exec
Browse files Browse the repository at this point in the history
`check_commit.rake` requires 'English' but when doing `bundle exec rubocop` this file will also be evaluated.

```
earlopain@DESKTOP-PC rubocop-ast]$ RUBYOPT=-w bundle exec rubocop -V
/home/earlopain/Documents/rubocop-ast/rubocop-ast.gemspec:18: warning: global variable `$RS' not initialized
1.62.1 (using Parser 3.3.0.5, rubocop-ast 1.31.2, running on ruby 3.3.0) [x86_64-linux]
  - rubocop-performance 1.20.2
  - rubocop-rspec 2.27.1
```
  • Loading branch information
Earlopain authored and bbatsov committed Oct 25, 2024
1 parent d125a6b commit b91da40
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rubocop-ast.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Gem::Specification.new do |s|

s.email = 'rubocop@googlegroups.com'
s.files = `git ls-files lib LICENSE.txt README.md`
.split($RS) + %w[
.lines(chomp: true) + %w[
lib/rubocop/ast/node_pattern/parser.racc.rb
lib/rubocop/ast/node_pattern/lexer.rex.rb
]
Expand Down

0 comments on commit b91da40

Please sign in to comment.