Comments (1)
It's a bug; this case should be ignored. We can't make assumptions about parameters that :not_m
needs; it may not even depend on x
.
def m(x)
return to_enum(:not_m, some_option: true) unless block_given? # should be allowed
...
end
from rubocop.
Related Issues (20)
- `cop.documentation_url` is nil for extension cops
- Metrics/AbcSize with `auto-gen-only-exclude` option
- Unexpected change to Style/Copyright from #12804 HOT 4
- uninitialized constant Bundler::SharedHelpers (NameError) HOT 16
- `Style/MapIntoArray` misinterprets my class design HOT 3
- Rubocop::Config#gem_version_to_major_minor_float doesn't work for Rails 8.0
- Cop idea: Detect `map` where result is discarded HOT 2
- "too many arguments for format string" warning HOT 4
- False negative for `Style/ArgumentsForwarding` and super
- Ruby 3.4.0preview1 - False positive for Style/FrozenStringLiteralComment cop HOT 4
- Style/SendWithLiteralMethodName should check method name characters HOT 1
- Style/SuperArguments is probably not safe to autocorrect HOT 1
- Style/RedundantLineContinuation false alarm on "break" with an argument
- Style/TrailingCommaInArrayLiteral and Style/TrailingCommaInHashLiteral use comma by default HOT 2
- False positive with `Style/SuperArguments` cop HOT 2
- `Style/HashEachMethods` mistakes other objects which define a `values` method as a Hash HOT 2
- Ability to disable `Lint/Syntax` from extension HOT 1
- Option for `Naming/VariableName` to disallow certain identifiers
- CodeClimate coverage upload not working HOT 2
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.