Comments (3)
Upon further examination - the existing code does not work with []
and {}
as well. It might be better to use tokens for this check instead of sexps.
from rubocop.
Thanks for the tip! I'll take a look.
from rubocop.
Can this issue be closed now?
from rubocop.
Related Issues (20)
- rubocop-1.61.0 crashes when the project's gemspec dynamically sets `spec.required_ruby_version` HOT 1
- Many methods on `Parser::Source::Range` from `Offense.highlighted_area` raise `NoMethodError` HOT 2
- False positive for `Lint/ToEnumArguments`
- Incompatibility between `parser_prism` and `ruby_extractors` HOT 4
- Error for `Lint/MixedCaseRange` when invalid utf8 and offense exists
- Infinite loop with `Style/IfUnlessModifier -> Layout/EndAlignment, Layout/IndentationWidth`
- False positives for Lint/UnusedBlockArgument when using parser_prism HOT 4
- Invalid offense/autocorrect for `Style/RedundantLineContinuation`
- invalid offense Style/HashEachMethods
- False positive for `Lint/RedundantWithIndex` when calling with_index without each beforehand
- Should esoteric cop errors be fixed? HOT 2
- `Style/RedundantPercentQ` autocorrects Ruby hash output unsafely
- Unexpected `Layout/HeredocIndentation` cop on the latest Prism parser
- Automated `Lint/UnusedMethodArgument` fix updates API signature, but does not update consumers HOT 1
- False positive of Style/RedundantLineContinuation
- False positive for `Style/RedundantArgument`
- Layout/BlockAlignment does not recognize "start of line" containing endless method HOT 1
- False positive for `Style/RedundantLineContinuation` HOT 1
- Style/CollectionCompact: bug in auto correction
- Naming/BlockForwarding with -a creates syntax error
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rubocop.