GithubHelp home page GithubHelp logo

madskristensen / coffeelint Goto Github PK

View Code? Open in Web Editor NEW

This project forked from clutchski/coffeelint

0.0 3.0 0.0 1.17 MB

Lint your CoffeeScript.

Home Page: http://www.coffeelint.org

License: Other

Emacs Lisp 0.09% CoffeeScript 99.52% JavaScript 0.38%

coffeelint's Introduction

CoffeeLint

CoffeeLint is a style checker that helps keep CoffeeScript code clean and consistent.

For guides on installing, using and configuring CoffeeLint, head over here.

To suggest a feature, report a bug, or general discussion, head over here.

Contributing

  • New rules should be set to a warn level. Developers will expect new changes to NOT break their existing workflow, so unless your change is extremely usefull, default to warn. Expect discussion if you choose to use error.

  • Look at existing rules and test structures when deciding how to name your rule. no_foo.coffee is used for many tests designed to catch specific errors, whereas foo.coffee is used for tests that are designed to enforce formatting and syntax.

Steps

  1. Fork the repo locally.
  2. Run npm install to get dependencies.
  3. Create your rule in a single file as src/rules/your_rule_here.coffee, using the existing rules as a guide. You may examine the AST and tokens using http://asaayers.github.io/clfiddle/.
  4. Add your test file my_test.coffee to the test directory.
  5. Register your rule in src/coffeelint.coffee.
  6. Run your test using coffee vowsrunner.coffee --spec test/your_test_here.coffee.
  7. Run the whole tests suite using npm test.
  8. Squash all commits into a single commit when done.
  9. Submit a pull request.

Build Status

coffeelint's People

Contributors

alexgorbatchev avatar aparajita avatar asaayers avatar braddunbar avatar brysgo avatar calebegg avatar clutchski avatar davidchambers avatar eriwen avatar eventualbuddha avatar fauxparse avatar iamolivinius avatar ianmcnally avatar int3 avatar isakb avatar janpieper avatar jspiro avatar leostera avatar madskristensen avatar manuelschneider avatar mhart avatar misterdjules avatar nathanpalmer avatar plumlee avatar satook avatar sinetheta avatar sjz avatar szinsli avatar thomasf avatar zmbush avatar

Watchers

 avatar  avatar  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.