sevencop
Opinionated custom cops for RuboCop.
Usage
Install sevencop
gem:
# Gemfile
gem 'sevencop', require: false
then require sevencop
and enable the cops you want to use on .rubocop.yml:
# .rubocop.yml
require:
- sevencop
Sevencop/MethodDefinitionOrdered:
Enabled: true
Note that all cops are Enabled: false
by default.
Cops
- Sevencop/AutoloadOrdered
- Sevencop/BundlerGemGroupNameOrdered
- Sevencop/BundlerGemGroupOrdered
- Sevencop/HashElementOrdered
- Sevencop/MapMethodChain
- Sevencop/MethodDefinitionArgumentsMultiline
- Sevencop/MethodDefinitionInIncluded
- Sevencop/MethodDefinitionKeywordArgumentOrdered
- Sevencop/MethodDefinitionOrdered
- Sevencop/RailsBelongsToOptional
- Sevencop/RailsDateAndTimeCalculation
- Sevencop/RailsOrderFieldArelSql
- Sevencop/RailsOrderFieldInOrderOf
- Sevencop/RailsRouteAs
- Sevencop/RailsRouteOrdered
- Sevencop/RailsSpecificActionName
- Sevencop/RailsUniquenessValidatorExplicitCaseSensitivity
- Sevencop/RailsWhereNot
- Sevencop/RSpecDescribeHttpEndpoint
- Sevencop/RSpecEmptyLineAfterLet
- Sevencop/RSpecExamplesInSameGroup
- Sevencop/RSpecMatcherConsistentParentheses
- Sevencop/RSpecMemoizedHelperBlockDelimiter
- Sevencop/RSpecPendingOnlyExampleGroup
- Sevencop/RSpecRailsHaveHttpStatus
- Sevencop/RSpecRailsStatusCodeCheckBySubject
Notes
All migration related cops are moved to r7kamura/rubocop-migration.