Skip to content

"verbose" formatter does not work when called via this plugin #9

@andmor-

Description

@andmor-

The following gulp pipe fails:

      gulpStylelint({
        failAfterError: true,
        fix: hasFixFlag(),
        reporters: [{ formatter: "verbose", console: true }]
      })

With the following debug output:

user@host ~$ gulp lintscss
[17:18:13] Using gulpfile ~/gulpfile.js
[17:18:13] Starting 'lintscss'...
[17:18:14] 'lintscss' errored after 783 ms
[17:18:14] TypeError in plugin "gulp-stylelint"
Message:
    Cannot read properties of undefined (reading 'ruleMetadata')
Stack:
TypeError: Cannot read properties of undefined (reading 'ruleMetadata')
    at printProblems (~/node_modules/stylelint/lib/formatters/verboseFormatter.js:72:33)
    at verboseFormatter (~/node_modules/stylelint/lib/formatters/verboseFormatter.js:92:3)
    at Object.apply ~/node_modules/import-lazy/index.js:16:20)
    at reporter (~/node_modules/@ronilaukkarinen/gulp-stylelint/src/reporter-factory.js:45:27)
    at ~/node_modules/@ronilaukkarinen/gulp-stylelint/src/index.js:132:38
    at Array.map (<anonymous>)
    at passLintResultsThroughReporters (~/node_modules/@ronilaukkarinen/gulp-stylelint/src/index.js:132:22)

npx stylelint -f "verbose" <filename> works fine.

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedExtra attention is needed

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions