Upgrade to Pro — share decks privately, control downloads, hide ads and more …

How to introduce RuboCop and integrate into Jen...

Sponsored · Your Podcast. Everywhere. Effortlessly. Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.

How to introduce RuboCop and integrate into Jenkins

How to introduce RuboCop and integrate with Jenkins in your project.
M3 Tech Talk #13 2013/11/08 #m3dev

Avatar for Takayuki Matsubara

Takayuki Matsubara

November 08, 2013

More Decks by Takayuki Matsubara

Other Decks in Programming

Transcript

  1. Offences: test.rb:1:5: C: Use snake_case for methods and variables. def

    badName ^^^^^^^ test.rb:2:3: C: Favor modifier if/unless usage when you have a single-line body. Another good alternative is the usage of control flow &&/||. if something ^^ test.rb:4:5: W: end at 4, 4 is not aligned with if at 2, 2 end ^^^ 1 file inspected, 3 offences detected IUUQTHJUIVCDPNCCBUTPWSVCPDPQ
  2. 6TFGVM0QUJPO rubocop --format offences (87) Documentation (12) DotPosition (8) AvoidGlobalVars

    (7) EmptyLines (6) AssignmentInCondition (4) Blocks (4) CommentAnnotation (3) BlockAlignment (1) IndentationWidth (1) AvoidPerlBackrefs (1) ColonMethodCall
  3. FOE