English | 日本語
Momocop is highly opinionated custom cops for RuboCop.
Add momocop
to your Gemfile.
# Gemfile
gem 'momocop', require: false
Edit .rubocop.yml
to require momocop
and enable the cops you want.
All cops are disabled by default.
# .rubocop.yaml
require:
- momocop
Momocop/FactoryBotClassExistence:
Enabled: true
Momocop/FactoryBotConsistentFileName:
Enabled: true
Momocop/FactoryBotInlineAssociation:
Enabled: true
Momocop/FactoryBotMissingAssociations:
Enabled: true
Momocop/FactoryBotMissingClassOption:
Enabled: true
Momocop/FactoryBotMissingProperties:
Enabled: true
Momocop/FactoryBotPropertyOrder:
Enabled: true
Momocop/FactoryBotSingleDefinePerFile:
Enabled: true
Momocop/FactoryBotSingleFactoryPerDefine:
Enabled: true
Momocop/FactoryBotSingularFactoryName:
Enabled: true
Momocop/Layout/LeadingCommentSpace:
Enabled: true
Bug reports and pull requests are welcome on GitHub at https://github.com/supermomonga/momocop. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the code of conduct.
The gem is available as open source under the terms of the MIT License.
Everyone interacting in the Momocop project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the code of conduct.