9. RuboCopMetrics
» Metrics/ClassLength
» Large Class (default: 100 lines)
» Metrics/MethodLength
» Long Function (default: 10 lines)
» Metrics/ParameterLists (default: 5 params)
» Long Parameter List
@andyw8 9
11. AutomatingtheWorkflow
» Aim is to run RuboCop against each pull request
» Tools: Code Climate, HoundCI, Pronto
» Review the warnings
» Choose to act or ignore
@andyw8 11
12. Summary
» Code Metrics can give valuable insights
» Make them part of your automated checks
» Use them to detect potential Code Smells
» Don't make changes only to satisfy RuboCop
» But refactor when it makes sense to you
» Continually evolve your application's design
@andyw8 12