0.0
Repository is archived
No commit activity in last 3 years
No release in over 3 years
RuboCop custom cops for elegance. At the moment there is only one cop: Expert/RedundantParenthesesForMethodCall.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.16
~> 10.0
~> 3.0

Runtime

~> 0.58.2
~> 1.29.0
 Project Readme

RuboCop::Expert Gem

MIT License Ruby Versions Travis CI Maintainability Test Coverage

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.