Code Climate Lunch & Learn Example
Example files: https://gist.github.com/dblandin/589e70345774298e1622850349c31876
- Install the Code Climate browser extension
- Fork this project
-
Modify and commit foo_bar.rb from gist
$ git add foo_bar.rb $ git commit -m "Add FooBar"
-
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.
-
Modify and commit foo_bar_spec.rb from gist
$ git add spec/foo_bar_spec.rb $ git commit -m "Add FooBar specs"
-
Push to fork PR branch
You should now see green annotations which mean those lines are now covered by
-
Modify and commit duplication.rb and duplication_2.rb
$ git add duplication.rb duplication_2.rb $ git commit -m "Add duplication"
-
Push to fork PR branch
You should now see duplication issues reported by Code Climate.