Skip to content

Warnings not logged unless there is at least one error #135

@florian-sanders

Description

@florian-sanders

Version

module: 0.5.0
nuxt: 2.15.8

Nuxt configuration

mode:

  • universal

Nuxt configuration

htmlValidator: {
    usePrettier: true,
    options: {
      extends: [
      'html-validate:document',
      'html-validate:recommended'
      ],
      rules: {
        'aria-label-misuse': 'warn',
        'attr-case': 'warn',
        'attr-delimiter': 'warn',
        'attr-quotes': 'warn',
        'attr-spacing': 'warn',
        'attribute-allowed-values': 'warn',
        'attribute-boolean-style': 'warn',
        'attribute-empty-style': 'warn',
        'close-attr': 'warn',
        'close-order': 'warn',
        'deprecated': 'warn',
        'deprecated-rule': 'warn',
        'doctype-html': 'warn',
        'doctype-style': 'warn',
        'element-case': 'warn',
        'element-name': 'warn',
        'element-permitted-content': 'warn',
        'element-permitted-occurrences': 'warn',
        'element-permitted-order': 'warn',
        'element-required-attributes': 'warn',
        'element-required-content': 'warn',
        'empty-heading': 'warn',
        'empty-title': 'warn',
        'heading-level': 'warn',
        'input-attributes': 'warn',
        'input-missing-label': 'warn',
        'long-title': 'warn',
        'meta-refresh': 'warn',
        'missing-doctype': 'warn',
        'multiple-labeled-controls': 'warn',
        'no-autoplay': 'warn',
        'no-conditional-comment': 'warn',
        'no-deprecated-attr': 'warn',
        'no-dup-attr': 'warn',
        'no-dup-class': 'warn',
        'no-dup-id': 'warn',
        'no-implicit-close': 'warn',
        'no-inline-style': 'off',
        'no-missing-references': 'warn',
        'no-multiple-main': 'warn',
        'no-raw-characters': 'warn',
        'no-redundant-for': 'off',
        'no-redundant-role': 'warn',
        'no-self-closing': 'warn',
        'no-trailing-whitespace': 'warn',
        'no-utf8-bom': 'warn',
        'prefer-button': 'off',
        'prefer-native-element': 'off',
        'prefer-tbody': 'warn',
        'require-sri': 'warn',
        'script-element': 'warn',
        'script-type': 'warn',
        'svg-focusable': 'off',
        'text-content': 'warn',
        'unrecognized-char-ref': 'warn',
        'void-content': 'warn',
        'void-style': 'warn',
        'wcag/h30': 'warn',
        'wcag/h32': 'warn',
        'wcag/h36': 'warn',
        'wcag/h37': 'warn',
        'wcag/h67': 'warn',
        'wcag/h71': 'warn'
      }
    }
  }

Reproduction

Setting all rules to 'warn' or 'off'.

Link:
Github repo

Steps to reproduce

Run dev server and load the home page or run yarn generate. No warning is logged. If you change one of the rules to throw an error, the error is logged alongside the warnings.

What is expected?

All warnings should be logged.

What is actually happening?

Nothing is logged.
image

Checklist

  • I have tested with the latest Nuxt version and the issue still occurs
  • I have tested with the latest module version and the issue still occurs
  • I have searched the issue tracker and this issue hasn't been reported yet

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions