Skip to content

Latest commit

 

History

History
53 lines (34 loc) · 2.48 KB

File metadata and controls

53 lines (34 loc) · 2.48 KB

Code Climate Lunch & Learn Example

Example files: https://gist.github.com/dblandin/589e70345774298e1622850349c31876

  1. Install the Code Climate browser extension
  2. Fork this project

  1. Modify and commit foo_bar.rb from gist

    $ git add foo_bar.rb
    $ git commit -m "Add FooBar"
    
  2. Push to fork and open PR against master

You should now see complexity issues reported by Code Climate as a commit status and via the browser extension. Test coverage reporting should also show uncovered lines via the browser extension and a drop in coverage via a commit status.

  1. Modify and commit foo_bar_spec.rb from gist

    $ git add spec/foo_bar_spec.rb
    $ git commit -m "Add FooBar specs"
    
  2. Push to fork PR branch

You should now see green annotations which mean those lines are now covered by

  1. Modify and commit duplication.rb and duplication_2.rb

    $ git add duplication.rb duplication_2.rb
    $ git commit -m "Add duplication"
    
  2. Push to fork PR branch

You should now see duplication issues reported by Code Climate.