Coder Social home page Coder Social logo

jshint-reporter-jscs's Introduction

jshint-reporter-jscs

Build Status Dependencies Code Climate

JSHint reporter that looks like the reporter from JSCS. Supports code previews with line numbering.

Screenshot

Installation

$ npm install jshint-reporter-jscs --save-dev

Usage with gulp

return gulp.src(scripts)
    .pipe(jshint())
    .pipe(jshint.reporter('jshint-reporter-jscs'));

jshint-reporter-jscs's People

Contributors

lnikkila avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

jshint-reporter-jscs's Issues

malformed quotes breaks the reporter

with this code

var iFrameHTML = '<iframe src="'+ iFrameSrc + "></iframe>';

I know it's broken code but shouldn't the reporter notify me of that instead of breaking on my face?

/Users/lbueno/work/www/shared-auth/devkit/node_modules/jshint-reporter-jscs/source/reporter.js:110
  var dashes = new Array(column + 9).join('-');
               ^

RangeError: Invalid array length
    at writeArrow (/Users/lbueno/work/www/shared-auth/devkit/node_modules/jshint-reporter-jscs/source/reporter.js:110:16)
    at writeEntry (/Users/lbueno/work/www/shared-auth/devkit/node_modules/jshint-reporter-jscs/source/reporter.js:50:13)
    at Array.map (native)
    at reportErrors (/Users/lbueno/work/www/shared-auth/devkit/node_modules/jshint-reporter-jscs/source/reporter.js:18:11)
    at DestroyableTransform.<anonymous> (/Users/lbueno/work/www/shared-auth/devkit/node_modules/gulp-jshint/src/reporters/index.js:48:7)
    at DestroyableTransform._transform (/Users/lbueno/work/www/shared-auth/devkit/node_modules/gulp-jshint/src/stream.js:26:15)
    at DestroyableTransform.Transform._read (/Users/lbueno/work/www/shared-auth/devkit/node_modules/gulp-jshint/node_modules/readable-stream/lib/_stream_transform.js:184:10)
    at DestroyableTransform.Transform._write (/Users/lbueno/work/www/shared-auth/devkit/node_modules/gulp-jshint/node_modules/readable-stream/lib/_stream_transform.js:172:12)
    at doWrite (/Users/lbueno/work/www/shared-auth/devkit/node_modules/gulp-jshint/node_modules/readable-stream/lib/_stream_writable.js:237:10)
    at writeOrBuffer (/Users/lbueno/work/www/shared-auth/devkit/node_modules/gulp-jshint/node_modules/readable-stream/lib/_stream_writable.js:227:5)
    at DestroyableTransform.Writable.write (/Users/lbueno/work/www/shared-auth/devkit/node_modules/gulp-jshint/node_modules/readable-stream/lib/_stream_writable.js:194:11)
    at write (/Users/lbueno/work/www/shared-auth/devkit/node_modules/gulp-jshint/node_modules/readable-stream/lib/_stream_readable.js:623:24)
    at flow (/Users/lbueno/work/www/shared-auth/devkit/node_modules/gulp-jshint/node_modules/readable-stream/lib/_stream_readable.js:632:7)
    at DestroyableTransform.pipeOnReadable (/Users/lbueno/work/www/shared-auth/devkit/node_modules/gulp-jshint/node_modules/readable-stream/lib/_stream_readable.js:664:5)
    at emitNone (events.js:72:20)
    at DestroyableTransform.emit (events.js:166:7)

I've got gulp-plumber working properly and if I comment out the reporter it works fine, so... ๐Ÿ˜ž

BTW awesome work! ;)

many thanks indeed!

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.