Comments (17)
I want to do "Use only ascii symbols in identifiers and comments". The list is a great idea, by the way.
from rubocop.
It's yours then.
from rubocop.
I've written a cop for "Prefer %w to the literal array syntax when you need an array of strings." and now it detects that style rule on various code files from the project. Should I correct them to match this new rule too?
from rubocop.
This can be crossed off the list:
- Avoid methods longer than 10 LOC (lines of code). Ideally, most methods will be shorter than 5 LOC. Empty lines do not contribute to the relevant LOC. (this cop should have configurable max length)
I'm going to work on "When using reduce with short blocks, name the arguments |a, e|"
from rubocop.
I guess I crossed it off just as you were typing this comment. :-)
Great, looking forward to it.
from rubocop.
I'll do "Use %r only for regular expressions matching more than one '/' character".
from rubocop.
I'll look into "Avoid more than three levels of block nesting."
from rubocop.
Great, @emou. I'd suggest to actually use a customizable param for that particular check(instead of hardcoding 3), since a lot of people might disagree with the number prescribed by default.
from rubocop.
I'll do 'Favor %r if you have more than 1 '/' characters in your regexp'.
from rubocop.
What do you think about an indentation Cop?
ps. Could you use a task list? I think that's more clear.
from rubocop.
Yep, that would be a great addition. The ruby interpreter detect misaligned end
s, but nothing more than that. An indentation cop would be an awesome addition. Do you volunteer to write it? :-)
ps. Will do!
from rubocop.
Done.
from rubocop.
@jonas054 @yujinakayama I think we should try to wrap this issue before 1.0. I'd suggest we continue the old practice of doing a cop at time until we're out of cops. I'll start with the unneeded return
check.
from rubocop.
I'll do Avoid self where not required.
from rubocop.
I'll do the implicit begin next.
from rubocop.
I'll do "Comment annotation should be all upper case and at the beginning of the comment".
from rubocop.
I'll do "Prefer modules to classes with only class methods" next.
from rubocop.
Related Issues (20)
- False positive of `Style/RedundantLineContinuation`
- Cop idea: Disallow having `yield` in a `lambda`
- Regression in v.1.63.3 HOT 6
- False positive `Lint/Syntax` with ruby 3.3.1 and anonymous rest arg/keyword argument forwarding HOT 2
- False positive for `Layout/HeredocIndentation` with `parser_prism` HOT 2
- False positive for `Layout/LineEndStringConcatenationIndentation` with Prism
- `Lint/ShadowingOuterLocalVariable` does not take into account `if`/`else` branches HOT 1
- `class Foo; bar do` will crash Metrics/BlockLength HOT 2
- `Style/ArgumentsForwarding` enforce anonymous bad autocorrect
- regression in 1.63.4 -- "Could not locate Gemfile" HOT 2
- False Positive for `Lint/ImplicitStringConcatenation` with prism HOT 1
- `Style/HashEachMethods` mistakenly reported for zipped arrays HOT 2
- New cops warning still show up even after they have been configured HOT 1
- `cop.documentation_url` is nil for extension cops
- Question about Lint/ToEnumArguments HOT 1
- Metrics/AbcSize with `auto-gen-only-exclude` option
- Unexpected change to Style/Copyright from #12804 HOT 4
- uninitialized constant Bundler::SharedHelpers (NameError) HOT 13
- `Style/MapIntoArray` misinterprets my class design HOT 3
- Rubocop::Config#gem_version_to_major_minor_float doesn't work for Rails 8.0
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.