RuboCop custom cops for elegance.
- Cops
- RedundantParenthesesForMethodCall
- Installation and Usage
- License
Cops
RedundantParenthesesForMethodCall
This cop checks for any redundant parentheses for method calls even with arguments.
# bad
foo(/a/, *b)
# good
foo /a/, *b
For more information and examples, refer to the documentation comment in redundant_parentheses_for_method_call.rb.
Installation and Usage
Add this line to Gemfile:
gem 'rubocop-expert'
Require this gem in .rubocop.yml:
require:
- rubocop-expert
Now you can check your code with:
$ rubocop
Development
TODO
Contributing
Bug reports and pull requests are welcome on GitHub at https://github.com/akouryy/rubocop-expert.
License
The gem is available as open source under the terms of the MIT License.