fluid-project / fluid-lint-all

Consolidated linting logic free from any particular build technology
BSD 3-Clause "New" or "Revised" License
0 stars 5 forks source link

stylelint check incorrectly reports that 0 checked files are valid if any checked file has issues #39

Closed greatislander closed 3 years ago

greatislander commented 3 years ago

Describe the bug

Unlike other checks, the stylelint check reports that no files are valid if even a single file targeted by this check has issues. In a case where there are 99 valid CSS or Sass files and 1 with issues, fluid-lint-all will report:

0% (0/100) files checked are valid.

To reproduce

Review the GitHub Actions output for a repository I've created to demonstrate the issue, greatislander/stylelint-test.

Or:

  1. Clone greatislander/stylelint-test.
  2. Install dependencies: npm install
  3. Run the linter: npm test
  4. Observe that while only one of the two CSS files has reported issues, fluid-lint-all reports:

0% (0/2) files checked are valid.

Expected behavior

As with other checks, fluid-lint-all should correctly report the number of CSS/Sass files with issues.