Skip to content

adrianpietka/jshint-html-reporter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

jshint-html-reporter

Simple generator of HTML report for JSHint results.

Installation

$: npm install jshint-html-reporter --save

Usage

Use it with:

JSHint CLI

# standard output
$: jshint --reporter node_modules/jshint-html-reporter/reporter.js file.js
$: jshint --reporter node_modules/jshint-html-reporter/reporter.js controllers/*.js

# redirect output to HTML file
$: jshint --reporter node_modules/jshint-html-reporter/reporter.js file.js > report.html
$: jshint --reporter node_modules/jshint-html-reporter/reporter.js controllers/*.js > report.html
grunt.initConfig({
    jshint: {
        options: {
            reporter: require('jshint-html-reporter'),
            reporterOutput: 'jshint-report.html'
        },
        target: ['file.js']
    }
});

grunt.loadNpmTasks('grunt-contrib-jshint');
grunt.registerTask('default', ['jshint']);

URLs

Author

Adrian Pietka

License

CC BY 4.0 © Adrian Pietka

Release History

  • 0.2.5 Fixed page overflow when there are long lines of code
  • 0.2.4 Using HTTPS protocol for Bootstrap CDN url
  • 0.2.3 Changed license to CC 4.0
  • 0.2.2 HTTP protocol removed from Bootstrap CDN url
  • 0.2.1 Properly escape content for HTML output
  • 0.2.0 Summary of results and code refactor
  • 0.1.3 Improvements in package.json
  • 0.1.2 Improvements in package.json and template
  • 0.1.1 Fixes for path of template files
  • 0.1.0 Initial release

About

Simple generator of HTML report for JSHint results.

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •