Skip to content

Instantly share code, notes, and snippets.

@timurvafin
Created March 6, 2012 09:18
Show Gist options
  • Select an option

  • Save timurvafin/1985223 to your computer and use it in GitHub Desktop.

Select an option

Save timurvafin/1985223 to your computer and use it in GitHub Desktop.
bundle install --bunstubs --path vendor/bundle
group :development do
gem 'rails_best_practices'
gem 'brakeman'
end
brew install libyaml
#!/usr/bin/env sh
bin/brakeman --quiet
bin/rails_best_practices --silent --spec --features
MoveFinderToNamedScopeCheck: { }
UseModelAssociationCheck: { }
UseScopeAccessCheck: { }
AddModelVirtualAttributeCheck: { }
ReplaceComplexCreationWithFactoryMethodCheck: { attribute_assignment_count: 2 }
MoveModelLogicIntoModelCheck: { use_count: 4 }
OveruseRouteCustomizationsCheck: { customize_count: 3 }
NeedlessDeepNestingCheck: { nested_count: 2 }
NotUseDefaultRouteCheck: { }
KeepFindersOnTheirOwnModelCheck: { }
LawOfDemeterCheck: { }
UseObserverCheck: { }
IsolateSeedDataCheck: { }
AlwaysAddDbIndexCheck: { }
UseBeforeFilterCheck: { customize_count: 2 }
MoveCodeIntoControllerCheck: { }
MoveCodeIntoModelCheck: { use_count: 2 }
MoveCodeIntoHelperCheck: { array_count: 3 }
ReplaceInstanceVariableWithLocalVariableCheck: { }
DryBundlerInCapistranoCheck: { }
UseSayWithTimeInMigrationsCheck: { }
UseQueryAttributeCheck: { }
RemoveTrailingWhitespaceCheck: { }
UseMultipartAlternativeAsContentTypeOfEmailCheck: { }
SimplifyRenderInViewsCheck: { }
SimplifyRenderInControllersCheck: { }
RemoveEmptyHelpersCheck: { }
RemoveTabCheck: { }
RestrictAutoGeneratedRoutesCheck: { }
# RemoveUnusedMethodsInModelsCheck: { except_methods: [] }
RemoveUnusedMethodsInControllersCheck: { except_methods: [] }
# RemoveUnusedMethodsInHelpersCheck: { except_methods: [] }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment