Giter Site home page Giter Site logo

example-foobar's Introduction

Code Climate Lunch & Learn Example

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

Setup

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

Introduce some complexity

  1. Modify foo_bar.rb with this content from gist

  2. Push to fork and open PR against master

    git add foo_bar.rb
    git commit -m "Add FooBar"
    git push origin master
    hub pull-request # or using the GitHub UI
    

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.

Add some test coverage

  1. Modify spec/foo_bar_spec.rb with this content from gist

  2. Commit and push to your fork PR branch

    git add spec/foo_bar_spec.rb
    git commit -m "Add FooBar specs"
    git push origin master
    

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

Introduce some duplication

  1. Modify duplication.rb and duplication_2.rb with these files

  2. Commit and push to your fork PR branch

    git add duplication.rb duplication_2.rb
    git commit -m "Add duplication"
    git push origin master
    

You should now see duplication issues reported by Code Climate.

example-foobar's People

Contributors

dblandin avatar efueger avatar wfleming avatar davehenton avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.