rubocop / rubocop/ruby-style-guide
No rule for space after stab
Nobody has claimed this yet.
- Dominant language
- No language data
- Stars
- 16.5k
- Forks
- 3.3k
- PR merge metrics
- No merged PRs in 30d
Description
There is no rule for the separation between the stab and its parameters. The parser accepts both with space and without space but it seems that in any other language the 'arrow-like' preferred syntaxes are with space.
# Bad
->(x) { x }
# Good
-> (x) { x }
references:
http://eslint.org/docs/rules/arrow-spacing
https://google.github.io/styleguide/javaguide.html
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the requested spacing between Ruby stab syntax and its parameters, then compare the linked ESLint arrow-spacing rule and Google Java Style reference. Done means the style guide documents one preferred spacing form with matching Bad and Good examples.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- ruby
- Domain
- documentation
- Issue type
- Documentation
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 38/100