Skip to content
This repository has been archived by the owner on Apr 7, 2023. It is now read-only.

akouryy/rubocop-expert

Repository files navigation

RuboCop::Expert Gem

MIT License Ruby Versions Travis CI Maintainability Test Coverage

RuboCop custom cops for elegance.

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.

About

RuboCop custom cops for elegance

Resources

License

Stars

Watchers

Forks

Packages

No packages published