From 6871a8fbe5003415e903ab48700e49c81ec318a6 Mon Sep 17 00:00:00 2001 From: jeddy3 Date: Mon, 11 Oct 2021 16:47:43 +0100 Subject: [PATCH] Use problem rather than violation --- CHANGELOG.md | 10 ++--- README.md | 2 +- docs/developer-guide/formatters.md | 2 +- docs/developer-guide/plugins.md | 2 +- docs/developer-guide/rules.md | 6 +-- docs/user-guide/configure.md | 2 +- docs/user-guide/errors.md | 2 +- docs/user-guide/get-started.md | 2 +- docs/user-guide/rules/about.md | 8 ++-- docs/user-guide/usage/cli.md | 6 +-- docs/user-guide/usage/node-api.md | 4 +- docs/user-guide/usage/options.md | 10 ++--- lib/__tests__/__snapshots__/cli.test.js.snap | 4 +- lib/cli.js | 4 +- lib/rules/alpha-value-notation/README.md | 12 +++--- lib/rules/at-rule-allowed-list/README.md | 4 +- lib/rules/at-rule-disallowed-list/README.md | 4 +- lib/rules/at-rule-empty-line-before/README.md | 36 ++++++++-------- lib/rules/at-rule-name-case/README.md | 8 ++-- .../at-rule-name-newline-after/README.md | 8 ++-- lib/rules/at-rule-name-space-after/README.md | 8 ++-- lib/rules/at-rule-no-unknown/README.md | 6 +-- lib/rules/at-rule-no-vendor-prefix/README.md | 4 +- .../at-rule-property-required-list/README.md | 4 +- .../at-rule-semicolon-newline-after/README.md | 4 +- .../at-rule-semicolon-space-before/README.md | 8 ++-- .../README.md | 16 +++---- .../README.md | 22 +++++----- .../README.md | 12 +++--- .../block-closing-brace-space-after/README.md | 24 +++++------ .../README.md | 24 +++++------ lib/rules/block-no-empty/README.md | 6 +-- .../README.md | 12 +++--- .../README.md | 20 ++++----- .../block-opening-brace-space-after/README.md | 24 +++++------ .../README.md | 28 ++++++------- lib/rules/color-function-notation/README.md | 8 ++-- lib/rules/color-hex-alpha/README.md | 8 ++-- lib/rules/color-hex-case/README.md | 8 ++-- lib/rules/color-hex-length/README.md | 8 ++-- lib/rules/color-named/README.md | 12 +++--- lib/rules/color-no-hex/README.md | 6 +-- lib/rules/color-no-invalid-hex/README.md | 4 +- lib/rules/comment-empty-line-before/README.md | 20 ++++----- lib/rules/comment-no-empty/README.md | 4 +- lib/rules/comment-pattern/README.md | 4 +- lib/rules/comment-whitespace-inside/README.md | 8 ++-- .../comment-word-disallowed-list/README.md | 4 +- lib/rules/custom-media-pattern/README.md | 4 +- .../README.md | 26 ++++++------ .../README.md | 4 +- lib/rules/custom-property-pattern/README.md | 4 +- .../declaration-bang-space-after/README.md | 8 ++-- .../declaration-bang-space-before/README.md | 8 ++-- .../README.md | 4 +- .../README.md | 16 +++---- .../README.md | 8 ++-- .../README.md | 4 +- .../README.md | 12 +++--- .../README.md | 12 +++--- .../README.md | 16 +++---- .../README.md | 16 +++---- .../README.md | 4 +- .../README.md | 10 ++--- .../declaration-colon-newline-after/README.md | 8 ++-- .../declaration-colon-space-after/README.md | 12 +++--- .../declaration-colon-space-before/README.md | 8 ++-- .../declaration-empty-line-before/README.md | 28 ++++++------- lib/rules/declaration-no-important/README.md | 4 +- .../README.md | 6 +-- .../README.md | 4 +- .../README.md | 4 +- .../README.md | 4 +- lib/rules/font-family-name-quotes/README.md | 12 +++--- .../font-family-no-duplicate-names/README.md | 6 +-- .../README.md | 8 ++-- lib/rules/font-weight-notation/README.md | 10 ++--- lib/rules/function-allowed-list/README.md | 4 +- .../README.md | 4 +- .../function-comma-newline-after/README.md | 12 +++--- .../function-comma-newline-before/README.md | 12 +++--- .../function-comma-space-after/README.md | 16 +++---- .../function-comma-space-before/README.md | 16 +++---- lib/rules/function-disallowed-list/README.md | 4 +- .../README.md | 4 +- lib/rules/function-max-empty-lines/README.md | 4 +- lib/rules/function-name-case/README.md | 12 +++--- .../README.md | 12 +++--- .../README.md | 16 +++---- .../function-url-no-scheme-relative/README.md | 4 +- lib/rules/function-url-quotes/README.md | 10 ++--- .../README.md | 4 +- .../README.md | 4 +- lib/rules/function-whitespace-after/README.md | 8 ++-- lib/rules/hue-degree-notation/README.md | 8 ++-- lib/rules/indentation/README.md | 18 ++++---- .../README.md | 4 +- lib/rules/keyframes-name-pattern/README.md | 4 +- lib/rules/length-zero-no-unit/README.md | 8 ++-- lib/rules/linebreaks/README.md | 4 +- lib/rules/max-empty-lines/README.md | 10 ++--- lib/rules/max-empty-lines/index.js | 8 ++-- lib/rules/max-line-length/README.md | 18 ++++---- lib/rules/max-nesting-depth/README.md | 16 +++---- .../media-feature-colon-space-after/README.md | 8 ++-- .../README.md | 8 ++-- .../media-feature-name-allowed-list/README.md | 4 +- lib/rules/media-feature-name-case/README.md | 8 ++-- .../README.md | 4 +- .../media-feature-name-no-unknown/README.md | 6 +-- .../README.md | 4 +- .../README.md | 4 +- .../README.md | 8 ++-- .../index.js | 14 +++---- .../README.md | 8 ++-- .../README.md | 8 ++-- .../README.md | 12 +++--- .../README.md | 12 +++--- .../README.md | 16 +++---- .../README.md | 16 +++---- .../named-grid-areas-no-invalid/README.md | 4 +- lib/rules/no-descending-specificity/README.md | 8 ++-- .../no-duplicate-at-import-rules/README.md | 4 +- lib/rules/no-duplicate-selectors/README.md | 8 ++-- lib/rules/no-empty-first-line/README.md | 4 +- lib/rules/no-empty-source/README.md | 4 +- lib/rules/no-eol-whitespace/README.md | 8 ++-- lib/rules/no-extra-semicolons/README.md | 4 +- .../README.md | 4 +- .../README.md | 6 +-- lib/rules/no-irregular-whitespace/README.md | 4 +- .../README.md | 6 +-- lib/rules/no-unknown-animations/README.md | 4 +- lib/rules/number-leading-zero/README.md | 8 ++-- lib/rules/number-max-precision/README.md | 12 +++--- lib/rules/number-no-trailing-zeros/README.md | 4 +- lib/rules/property-allowed-list/README.md | 4 +- lib/rules/property-case/README.md | 8 ++-- lib/rules/property-disallowed-list/README.md | 4 +- lib/rules/property-no-unknown/README.md | 14 +++---- lib/rules/property-no-vendor-prefix/README.md | 6 +-- lib/rules/rule-empty-line-before/README.md | 42 +++++++++---------- .../README.md | 8 ++-- .../README.md | 4 +- .../README.md | 4 +- .../README.md | 4 +- .../README.md | 8 ++-- .../README.md | 8 ++-- lib/rules/selector-attribute-quotes/README.md | 8 ++-- lib/rules/selector-class-pattern/README.md | 8 ++-- .../README.md | 4 +- .../README.md | 4 +- .../selector-combinator-space-after/README.md | 8 ++-- .../README.md | 8 ++-- .../README.md | 4 +- lib/rules/selector-disallowed-list/README.md | 4 +- lib/rules/selector-id-pattern/README.md | 4 +- .../README.md | 12 +++--- .../README.md | 12 +++--- .../selector-list-comma-space-after/README.md | 16 +++---- .../README.md | 16 +++---- lib/rules/selector-max-attribute/README.md | 6 +-- lib/rules/selector-max-class/README.md | 4 +- lib/rules/selector-max-combinators/README.md | 4 +- .../selector-max-compound-selectors/README.md | 4 +- lib/rules/selector-max-empty-lines/README.md | 4 +- lib/rules/selector-max-id/README.md | 8 ++-- lib/rules/selector-max-pseudo-class/README.md | 4 +- lib/rules/selector-max-specificity/README.md | 8 ++-- lib/rules/selector-max-type/README.md | 14 +++---- lib/rules/selector-max-universal/README.md | 4 +- lib/rules/selector-nested-pattern/README.md | 4 +- .../selector-no-qualifying-type/README.md | 10 ++--- lib/rules/selector-no-vendor-prefix/README.md | 6 +-- .../README.md | 4 +- .../selector-pseudo-class-case/README.md | 8 ++-- .../README.md | 4 +- .../README.md | 6 +-- .../README.md | 8 ++-- .../README.md | 4 +- .../selector-pseudo-element-case/README.md | 8 ++-- .../README.md | 8 ++-- .../README.md | 4 +- .../README.md | 6 +-- lib/rules/selector-type-case/README.md | 10 ++--- lib/rules/selector-type-no-unknown/README.md | 16 +++---- .../README.md | 4 +- lib/rules/string-no-newline/README.md | 4 +- lib/rules/string-quotes/README.md | 12 +++--- lib/rules/time-min-milliseconds/README.md | 6 +-- lib/rules/unicode-bom/README.md | 8 ++-- lib/rules/unit-allowed-list/README.md | 8 ++-- lib/rules/unit-case/README.md | 8 ++-- lib/rules/unit-case/index.js | 8 ++-- lib/rules/unit-disallowed-list/README.md | 12 +++--- lib/rules/unit-disallowed-list/index.js | 2 +- lib/rules/unit-no-unknown/README.md | 8 ++-- lib/rules/value-keyword-case/README.md | 20 ++++----- .../value-list-comma-newline-after/README.md | 12 +++--- .../value-list-comma-newline-before/README.md | 12 +++--- .../value-list-comma-space-after/README.md | 16 +++---- .../value-list-comma-space-before/README.md | 16 +++---- .../value-list-max-empty-lines/README.md | 4 +- lib/rules/value-no-vendor-prefix/README.md | 6 +-- lib/utils/report.js | 26 ++++++------ lib/utils/ruleMessages.js | 2 +- lib/utils/whitespaceChecker.js | 6 +-- system-tests/002/stylesheet.scss | 2 +- types/stylelint/index.d.ts | 10 ++--- types/stylelint/type-test.ts | 6 +-- 210 files changed, 902 insertions(+), 902 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8bead6b71a..9588d381e8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -24,7 +24,7 @@ All notable changes to this project are documented in this file. - Added: `ignoreProperties: []` to `number-max-precision` ([#5421](https://github.com/stylelint/stylelint/pull/5421)). - Added: TypeScript type definitions ([#5582](https://github.com/stylelint/stylelint/pull/5582)). - Fixed: "No files matching the pattern" when using backslash paths on Windows ([#5386](https://github.com/stylelint/stylelint/pull/5386)). -- Fixed: `function-url-quotes` violation messages to be consistent with other `*-quotes` rules ([#5488](https://github.com/stylelint/stylelint/pull/5488)). +- Fixed: `function-url-quotes` problem messages to be consistent with other `*-quotes` rules ([#5488](https://github.com/stylelint/stylelint/pull/5488)). - Fixed: `length-zero-no-unit` false positives for `flex` property ([#5315](https://github.com/stylelint/stylelint/pull/5315)). - Fixed: `media-feature-name-no-unknown` false positives for `prefers-contrast` ([#5428](https://github.com/stylelint/stylelint/pull/5428)). - Fixed: `property-no-unknown` false positives for Less maps ([#5381](https://github.com/stylelint/stylelint/pull/5381)). @@ -84,7 +84,7 @@ All notable changes to this project are documented in this file. - Added: `selector-attribute-name-disallowed-list` rule ([#4992](https://github.com/stylelint/stylelint/pull/4992)). - Added: `ignoreAtRules[]` to `property-no-unknown` ([#4965](https://github.com/stylelint/stylelint/pull/4965)). - Fixed: `*-notation` false negatives for dollar variables ([#5031](https://github.com/stylelint/stylelint/pull/5031)). -- Fixed: `*-pattern` missing configured pattern in violation messages ([#4975](https://github.com/stylelint/stylelint/pull/4975)). +- Fixed: `*-pattern` missing configured pattern in problem messages ([#4975](https://github.com/stylelint/stylelint/pull/4975)). ## 13.7.2 @@ -262,7 +262,7 @@ All notable changes to this project are documented in this file. ## 11.0.0 - Changed: `--report-needless-disables` CLI flag now reports needless disables and runs linting ([#4151](https://github.com/stylelint/stylelint/pull/4151)). -- Changed: display a violation at 1:1 for each file instead of throwing an error on unrecognised rules ([#4237](https://github.com/stylelint/stylelint/pull/4237)). +- Changed: display a problem at 1:1 for each file instead of throwing an error on unrecognised rules ([#4237](https://github.com/stylelint/stylelint/pull/4237)). - Changed: always return `stylelintError` as a boolean ([#4174](https://github.com/stylelint/stylelint/pull/4174)). - Deprecated: `createRuleTester` API ([#4279](https://github.com/stylelint/stylelint/pull/4279)). - Added: `--reportInvalidScopeDisables` CLI flag ([#4181](https://github.com/stylelint/stylelint/pull/4181)). @@ -274,7 +274,7 @@ All notable changes to this project are documented in this file. - Added: `ignoreSelectors: []` to `property-no-unknown` ([#4275](https://github.com/stylelint/stylelint/pull/4275)). - Fixed: Babel user configuration interfering with CSS-in-JS parser ([#4164](https://github.com/stylelint/stylelint/pull/4164)). - Fixed: PostCSS plugin ignoring .stylelintignore ([#4186](https://github.com/stylelint/stylelint/pull/4186)). -- Fixed: `*-max-empty-lines` to only report one violation per function, selector, value list ([#4260](https://github.com/stylelint/stylelint/pull/4260)). +- Fixed: `*-max-empty-lines` to only report one problem per function, selector, value list ([#4260](https://github.com/stylelint/stylelint/pull/4260)). - Fixed: `block-no-empty` crash for `@import` statements ([#4110](https://github.com/stylelint/stylelint/pull/4110)). - Fixed: `indentation` false positives for `