Coder Social home page Coder Social logo

Comments (11)

sindresorhus avatar sindresorhus commented on May 24, 2024

linting and reporting should be separated: $.jscs() and $.jscs.reporter('my-reporter') (similarly to https://github.com/spenceralger/gulp-jshint)

👍

we cannot use node-jscs reporters directly - they all write output to console.log, so they need to be ported and modified

Can you open a ticket on jscs about changing that? Manually porting all future reporters isn't feasible.

What are your thoughts?

Sure, I don't see the use-case myself, but I know some rely on it.

from gulp-jscs.

sindresorhus avatar sindresorhus commented on May 24, 2024

Note to self: Also need a fail reporter like gulp-jshint.

from gulp-jscs.

johnpapa avatar johnpapa commented on May 24, 2024

+1 ... would like to see the reporter option as a pass through

from gulp-jscs.

wylieconlon avatar wylieconlon commented on May 24, 2024

@sindresorhus The use case I see is to fail a build (on TeamCity, for example) if code doesn't pass style checks. Integration with https://github.com/wurmr/jscs-teamcity-reporter is an example

from gulp-jscs.

sindresorhus avatar sindresorhus commented on May 24, 2024

I won't have time to implement this for a good while, but PR welcome :)

from gulp-jscs.

wurmr avatar wurmr commented on May 24, 2024

If it helps anyone looking to implement this, grunt-jscs does a similar thing and allows for custom output routing and custom reporters.

Personally right now I'm using gulp-grunt to wrap that to do my jscs checking in TeamCity.

from gulp-jscs.

sindresorhus avatar sindresorhus commented on May 24, 2024

#57 implemented the first stage for reporter supporting, an jscs object attached to the file object with some reporter data.

Next step is implementing:

from gulp-jscs.

UltCombo avatar UltCombo commented on May 24, 2024

@sindresorhus what's left for you to tick that first checkbox?

Guess I'll give this a stab tonight.

from gulp-jscs.

UltCombo avatar UltCombo commented on May 24, 2024

#66

from gulp-jscs.

jamesmorgan avatar jamesmorgan commented on May 24, 2024

+1 this would be nice

from gulp-jscs.

idefy avatar idefy commented on May 24, 2024

Until this is available, you should look at this plugin that allows to use jshint reporters:
https://github.com/gonsfx/gulp-jscs-stylish

from gulp-jscs.

Related Issues (20)

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.