Comments (1)
The delegate
example is definitely wrong.
MethodCreatingMethods
is for things like define_method
that are aware of their current visibility. A somewhat contrived example would be:
class C
private # wrongly flagged as Lint/UselessAccessModifier: Useless private access modifier
send :define_method, :foo, -> { 'E621' } # `private` is respected when `foo` is defined
end
C.new.foo
# private method `foo' called for #<C:0x00007fa1770405b8> (NoMethodError)
from rubocop.
Related Issues (20)
- EmptyConditionalBody autocorrect generates invalid syntax
- EmptyConditionalBody autocorrect can result in breaking logic changes HOT 1
- Yet another Lint/FormatParameterMismatch false positive related to string interpolation HOT 1
- Compatibility Inquiry: rubocop 1.60.2 with Ruby 3.3.0 HOT 2
- Allow specifying the location to report on for `check_code_length` HOT 2
- `Style/MapCompactWithConditionalBlock` replaces with `#reject` when it should be `#select` HOT 1
- `Style/ConditionalAssignment` is incorrectly flagging use of `===` in `case` statement HOT 2
- Lint/Void false positive and unsafe autocorrect
- Style/InvertibleUnlessCondition breaks for class inheritance checks. HOT 1
- `Style/CaseLikeIf` Error
- `Style/MultilineTernaryOperator` Error
- `Style/AccessorGrouping` safe autocorrect results in invalid code
- `Style/ObjectThen` safe autocorrect results in invalid code
- Unexpected glob behavior when including files HOT 2
- Implement support for storing a project-specific config file under .config
- Question: fail only if autocorrectable offenses HOT 2
- `invalid byte sequence in UTF-8` error while linting regexp with `Lint/MixedCaseRange` cop HOT 1
- Layout/SpaceBeforeFirstArg is not found until after "some code" HOT 3
- YARD-style directives HOT 4
- Add ability to globally disable caching HOT 3
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.