Created
December 24, 2019 11:34
-
-
Save harshalbhakta/2a3cec51c2493438453b59c7a6621772 to your computer and use it in GitHub Desktop.
Rails Best Practices Default Config
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
AddModelVirtualAttributeCheck: { } | |
AlwaysAddDbIndexCheck: { } | |
#CheckSaveReturnValueCheck: { } | |
#CheckDestroyReturnValueCheck: { } | |
DefaultScopeIsEvilCheck: { } | |
DryBundlerInCapistranoCheck: { } | |
#HashSyntaxCheck: { } | |
IsolateSeedDataCheck: { } | |
KeepFindersOnTheirOwnModelCheck: { } | |
LawOfDemeterCheck: { } | |
#LongLineCheck: { max_line_length: 80 } | |
MoveCodeIntoControllerCheck: { } | |
MoveCodeIntoHelperCheck: { array_count: 3 } | |
MoveCodeIntoModelCheck: { use_count: 2 } | |
MoveFinderToNamedScopeCheck: { } | |
MoveModelLogicIntoModelCheck: { use_count: 4 } | |
NeedlessDeepNestingCheck: { nested_count: 2 } | |
NotRescueExceptionCheck: { } | |
NotUseDefaultRouteCheck: { } | |
NotUseTimeAgoInWordsCheck: { } | |
OveruseRouteCustomizationsCheck: { customize_count: 3 } | |
ProtectMassAssignmentCheck: { } | |
RemoveEmptyHelpersCheck: { } | |
#RemoveTabCheck: { } | |
RemoveTrailingWhitespaceCheck: { } | |
RemoveUnusedMethodsInControllersCheck: { except_methods: [] } | |
RemoveUnusedMethodsInHelpersCheck: { except_methods: [] } | |
RemoveUnusedMethodsInModelsCheck: { except_methods: [] } | |
ReplaceComplexCreationWithFactoryMethodCheck: { attribute_assignment_count: 2 } | |
ReplaceInstanceVariableWithLocalVariableCheck: { } | |
RestrictAutoGeneratedRoutesCheck: { } | |
SimplifyRenderInControllersCheck: { } | |
SimplifyRenderInViewsCheck: { } | |
#UseBeforeFilterCheck: { customize_count: 2 } | |
UseModelAssociationCheck: { } | |
UseMultipartAlternativeAsContentTypeOfEmailCheck: { } | |
#UseParenthesesInMethodDefCheck: { } | |
UseObserverCheck: { } | |
UseQueryAttributeCheck: { } | |
UseSayWithTimeInMigrationsCheck: { } | |
UseScopeAccessCheck: { } | |
UseTurboSprocketsRails3Check: { } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment