Comments (11)
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.
Note to self: Also need a fail
reporter like gulp-jshint.
from gulp-jscs.
+1 ... would like to see the reporter option as a pass through
from gulp-jscs.
@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.
I won't have time to implement this for a good while, but PR welcome :)
from gulp-jscs.
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.
#57 implemented the first stage for reporter supporting, an jscs
object attached to the file object with some reporter data.
Next step is implementing:
- reporter fetching (depends on jscs-dev/node-jscs#867) (implemented #41 (comment) in jscs 1.10.0)
- built-in fail reporter
from gulp-jscs.
@sindresorhus what's left for you to tick that first checkbox?
Guess I'll give this a stab tonight.
from gulp-jscs.
from gulp-jscs.
+1 this would be nice
from gulp-jscs.
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)
- Incompatibility with harmony-reflect HOT 1
- Support values other than true/false HOT 1
- Stop .pipe() chain on linting error?
- Unclear error when .jscsrc is missing HOT 5
- Cannot read property 'tokTypes' of undefined - urgent
- Allow indented "break" in "switch" statement. HOT 2
- install broken due to downstream dependency left-pad being unpublished HOT 2
- JSCS errors getting swallowed somewhere HOT 6
- Cannot convert undefined or null to object HOT 5
- Update to JSCS 3.0 HOT 1
- file.jscs.errors is an object not an array
- How can I use fix:true with a watch?
- JSCS reporter compatibility HOT 2
- JSCS unreasonably complain about the beginning of a js file HOT 1
- Integration with Sonar rules
- jscs domain has expired
- editorconfig + jscs
- Replace deprecated dependency gulp-util
- Linting solution incompatible with 'engines' field in package.json
- TypeError: Cannot convert undefined or null to object at Function.keys HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gulp-jscs.