htmllint / grunt-htmllint

HTML5 linting and validation.
ISC License
14 stars 17 forks source link

feature_request(stderr): any number of errors — 1 toast #25

Open Kristinita opened 6 years ago

Kristinita commented 6 years ago

1. Summary

It would be nice, if the user would get one toast, if any numbers of errors/warnings.

2. Environment and configuration

As #24.

Except: I add grunt-notify to Gruntfile.js.

Updated Gruntfile.js:

module.exports = function (grunt) {
    grunt.initConfig({
        htmllint: {
            options: {
                force: true,
                maxerr: 5
            },
            src: [
                'SashaHtmllintDebugging.html'
            ]
        }
    });

    grunt.loadNpmTasks('grunt-htmllint');
    grunt.loadNpmTasks('grunt-notify');

    grunt.registerTask('default', ['htmllint']);
};

3. Actual behavior

1 error — 1 toast.

Toasties

If user have 400 errors, he got 400 toasts. It not good by these reasons:

  1. High CPU usage
  2. User get toasties many minutes, it prevents work

4. Expected behavior

As any another Grunt linter (examples: grunt-stylint, grunt-coffeelint, grunt-markdownlint):

If any numbers errors of warnings:

    1 toast.

Thanks.