Code Monkey home page Code Monkey logo

gulp-jshint-xml-file-reporter's People

Contributors

lourenzo avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

gulp-jshint-xml-file-reporter's Issues

Clean run does not create report file

It would be nice if the reporter always produced a report file and not only if errors occurred. Currently once I correct a jshint warning my report file is not updated to indicate 0 errors and instead will contain the errors prior to the successful run.

if the target folder is not existing, the file can't be written

If you have a clean task on your output folder, which removes all content and subfolders and then jshint is the first task which is running, then it can't write the output file because of a missing folder structure.

Workaround:

gulp.task('prepareStylecheck', function () {
    //just create the output folder because of a reporter bug
    return gulp.src(PATH_IN_SRC)
        .pipe(gulp.dest(PATH_OUT_TESTRESULT));
});

gulp.task('stylecheck', ['prepareStylecheck'], function () {
    return gulp.src(FILES_SRC)
        .pipe(jshint())
        .pipe(jshint.reporter('jshint-stylish'))
        .pipe(jshint.reporter(jshintXMLReporter))
        .on('end', jshintXMLReporter.writeFile({
            format: 'checkstyle',
            filePath: PATH_OUT_TESTRESULT + 'checkstyle.xml'
        }));
});

Create a new release

Hi,

I would be very grateful if you could create a new release through npm version and create a new tag for the new updates that have been pulled into the repository recently.

Many thanks

jshint_xml formatter: Cannot find module './lib/jshint_xml_emitter'

Hi,

I tried the plugin for the first time today, and i have an issue when i try to use the jshint-xml formatter instead of the default one (checkstyle).

Here are some inputs:

  • The gulp task
   return gulp.src('app/scripts/**/*.js')
        .pipe($.jshint())
        .pipe($.jshint.reporter($.jshintXmlFileReporter))
        .on('end', $.jshintXmlFileReporter.writeFile({
            format: 'jshint_xml',
            filePath: './jshint.xml'
        }));
  • A dump of the stack when the gulp task is called :
[14:13:18] Error: Cannot find module './lib/jshint_xml_emitter'
    at Function.Module._resolveFilename (module.js:338:15)
    at Function.Module._load (module.js:280:25)
    at Module.require (module.js:364:17)
    at require (module.js:380:17)
    at loadFormatter (/home/spiroid/test/node_modules/gulp-jshint-xml-file-reporter/index.js:17:12)
    at Object.exports.writeFile (/home/spiroid/test/node_modules/gulp-jshint-xml-file-reporter/index.js:34:26)
    at Gulp.<anonymous> (/home/spiroid/test/gulp/lint.js:19:44)
    at module.exports (/home/spiroid/test/node_modules/gulp/node_modules/orchestrator/lib/runTask.js:34:7)
    at Gulp.Orchestrator._runTask (/home/spiroid/test/node_modules/gulp/node_modules/orchestrator/index.js:273:3)
    at Gulp.Orchestrator._runStep (/home/spiroid/test/node_modules/gulp/node_modules/orchestrator/index.js:214:10)
  • The jslint_xml_emitter.js is located in the project node_modules/gulp-jshint-xml-file-reporter/lib directory
  • plugin version : 0.3.3

Did i forget something in my gulp task / configuration ?
Thanks.

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.