Comments (3)
Thanks Joe.
from hound.
Just FYI: bbatsov's "community-driven style guide" says the opposite, and provides some rationale.
Prefer map over collect, find over detect, select over find_all, reduce over inject and size over length. This is not a hard requirement; if the use of the alias enhances readability, it's ok to use it. The rhyming methods are inherited from Smalltalk and are not common in other programming languages. The reason the use of select is encouraged over find_all is that it goes together nicely with reject and its name is pretty self-explanatory.
from hound.
For those of you wanting to ignore this rule you can add the following to your .rubcop.yml
:
CollectionMethods:
Enabled: false
from hound.
Related Issues (20)
- .eslintrc format is invalid HOT 1
- Add support for @shopify/eslint-plugin
- [deleted]
- repos is too large ๏ผthen led to OOM
- Support golangci-lint instead of golint (deprecated)
- whitelist rubocop-graphql
- Feature request: allow to install eslint plugins and config from .eslintrc
- Bump RuboCop version to 1.21 HOT 3
- Add support for eslint v8.x HOT 1
- Where is perform method for LintersJob?
- Cannot terminate account HOT 1
- ESlint 8.1.0 does not work HOT 2
- Which permissions and events are needed in the GitHub app?
- How to do code check like hound locally and explicitly mute hound on some lines?
- houndci/linters repo not available
- Style/BlockDelimiters: Avoid using {...} for multi-line blocks. not being ignored for rspec HOT 1
- Bump Flake8 version to at least v3.9.2 HOT 1
- rubocop-solidus extension support
- Whitelist rubocop-thread_safety extension HOT 1
- Subscription issues HOT 1
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 hound.