Skip to content

Commit

Permalink
bump stylelint and packages
Browse files Browse the repository at this point in the history
  • Loading branch information
codacy-vrhpires committed Jun 19, 2024
1 parent a74d3c0 commit ae0a858
Show file tree
Hide file tree
Showing 121 changed files with 548 additions and 977 deletions.
15 changes: 8 additions & 7 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
FROM alpine:3.19
FROM node:lts-alpine3.20

WORKDIR /workdir
COPY package*.json ./
RUN adduser -u 2004 -D docker &&\
apk --no-cache add openjdk11-jre-headless bash nodejs npm &&\
npm install --omit=dev &&\
apk del npm
COPY --chmod=0755 target/universal/stage/bin/codacy-stylelint ./bin/codacy-stylelint
COPY docs /docs
COPY target/universal/stage/ /workdir/
RUN chmod +x /workdir/bin/codacy-stylelint

RUN adduser -u 2004 -D docker &&\
apk --no-cache add openjdk11-jre-headless bash &&\
npm install

USER docker

WORKDIR /src
ENTRYPOINT ["/workdir/bin/codacy-stylelint"]
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# codacy-stylelint

[![Codacy Badge](https://api.codacy.com/project/badge/Grade/80607506ff8c4a7f826bbe0b643ba16d)](https://www.codacy.com/gh/codacy/codacy-stylelint?utm_source=github.com&utm_medium=referral&utm_content=codacy/codacy-stylelint&utm_campaign=Badge_Grade)
[![Codacy Badge](https://api.codacy.com/project/badge/Coverage/80607506ff8c4a7f826bbe0b643ba16d)](https://www.codacy.com/gh/codacy/codacy-stylelint?utm_source=github.com&utm_medium=referral&utm_content=codacy/codacy-stylelint&utm_campaign=Badge_Coverage)
[![Codacy Badge](https://api.codacy.com/project/badge/Grade/80607506ff8c4a7f826bbe0b643ba16d)](https://app.codacy.com/gh/codacy/codacy-stylelint?utm_source=github.com&utm_medium=referral&utm_content=codacy/codacy-stylelint&utm_campaign=Badge_Grade)
[![CircleCI](https://circleci.com/gh/codacy/codacy-stylelint.svg?style=svg)](https://circleci.com/gh/codacy/codacy-stylelint)

Docker engine to allow Codacy to have [stylelint](https://github.com/stylelint/stylelint) support.
Expand Down
18 changes: 13 additions & 5 deletions build.sbt
Original file line number Diff line number Diff line change
@@ -1,12 +1,20 @@
ThisBuild / scalaVersion := "2.13.11"
ThisBuild / scalaVersion := "2.13.13"

ThisBuild / libraryDependencies += "com.codacy" %% "codacy-engine-scala-seed" % "6.1.2"
ThisBuild / libraryDependencies += "com.github.pathikrit" %% "better-files" % "3.9.2"
ThisBuild / libraryDependencies ++= Seq(
"com.codacy" %% "codacy-engine-scala-seed" % "6.1.3",
"com.github.pathikrit" %% "better-files" % "3.9.2"
)

name := "codacy-stylelint"

lazy val `doc-generator` = project.settings(libraryDependencies += "com.vladsch.flexmark" % "flexmark-all" % "0.64.8")
lazy val `doc-generator` = project.settings(
libraryDependencies += "com.vladsch.flexmark" % "flexmark-all" % "0.64.8"
)

enablePlugins(JavaAppPackaging)

Universal / javaOptions ++= Seq("-XX:+UseG1GC", "-XX:+UseStringDeduplication", "-XX:MaxRAMPercentage=90.0")
Universal / javaOptions ++= Seq(
"-XX:+UseG1GC",
"-XX:+UseStringDeduplication",
"-XX:MaxRAMPercentage=90.0"
)
4 changes: 2 additions & 2 deletions docs/description/alpha-value-notation.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ Specify percentage or number notation for alpha-values.
* This notation */
```

The [`fix` option](https://github.com/stylelint/stylelint/tree/16.3.1/docs/user-guide/options.md#fix) can automatically fix all of the problems reported by this rule.
The [`fix` option](https://github.com/stylelint/stylelint/tree/16.6.1/docs/user-guide/options.md#fix) can automatically fix all of the problems reported by this rule.

The [`message` secondary option](https://github.com/stylelint/stylelint/tree/16.3.1/docs/user-guide/configure.md#message) can accept the arguments of this rule.
The [`message` secondary option](https://github.com/stylelint/stylelint/tree/16.6.1/docs/user-guide/configure.md#message) can accept the arguments of this rule.

## Options

Expand Down
2 changes: 1 addition & 1 deletion docs/description/annotation-no-unknown.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ a { color: green !imprtant; }

This rule considers annotations defined in the CSS Specifications, up to and including Editor's Drafts, to be known.

The [`message` secondary option](https://github.com/stylelint/stylelint/tree/16.3.1/docs/user-guide/configure.md#message) can accept the arguments of this rule.
The [`message` secondary option](https://github.com/stylelint/stylelint/tree/16.6.1/docs/user-guide/configure.md#message) can accept the arguments of this rule.

## Options

Expand Down
2 changes: 1 addition & 1 deletion docs/description/at-rule-allowed-list.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Specify a list of allowed at-rules.
* At-rules like this */
```

The [`message` secondary option](https://github.com/stylelint/stylelint/tree/16.3.1/docs/user-guide/configure.md#message) can accept the arguments of this rule.
The [`message` secondary option](https://github.com/stylelint/stylelint/tree/16.6.1/docs/user-guide/configure.md#message) can accept the arguments of this rule.

## Options

Expand Down
2 changes: 1 addition & 1 deletion docs/description/at-rule-disallowed-list.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Specify a list of disallowed at-rules.
* At-rules like this */
```

The [`message` secondary option](https://github.com/stylelint/stylelint/tree/16.3.1/docs/user-guide/configure.md#message) can accept the arguments of this rule.
The [`message` secondary option](https://github.com/stylelint/stylelint/tree/16.6.1/docs/user-guide/configure.md#message) can accept the arguments of this rule.

## Options

Expand Down
2 changes: 1 addition & 1 deletion docs/description/at-rule-empty-line-before.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ This rule ignores:
- at-rules that are the very first node in the source
- `@import` in Less.

The [`fix` option](https://github.com/stylelint/stylelint/tree/16.3.1/docs/user-guide/options.md#fix) can automatically fix all of the problems reported by this rule.
The [`fix` option](https://github.com/stylelint/stylelint/tree/16.6.1/docs/user-guide/options.md#fix) can automatically fix all of the problems reported by this rule.

## Options

Expand Down
2 changes: 1 addition & 1 deletion docs/description/at-rule-no-unknown.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Disallow unknown at-rules.

This rule considers at-rules defined in the CSS Specifications, up to and including Editor's Drafts, to be known.

The [`message` secondary option](https://github.com/stylelint/stylelint/tree/16.3.1/docs/user-guide/configure.md#message) can accept the arguments of this rule.
The [`message` secondary option](https://github.com/stylelint/stylelint/tree/16.6.1/docs/user-guide/configure.md#message) can accept the arguments of this rule.

## Options

Expand Down
4 changes: 2 additions & 2 deletions docs/description/at-rule-no-vendor-prefix.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ Disallow vendor prefixes for at-rules.

This rule ignores non-standard vendor-prefixed at-rules that aren't handled by [Autoprefixer](https://github.com/postcss/autoprefixer).

The [`fix` option](https://github.com/stylelint/stylelint/tree/16.3.1/docs/user-guide/options.md#fix) can automatically fix all of the problems reported by this rule. However, it will not remove duplicate at-rules produced when the prefixes are removed. You can use [Autoprefixer](https://github.com/postcss/autoprefixer) itself, with the [`add` option off and the `remove` option on](https://github.com/postcss/autoprefixer#options), in these situations.
The [`fix` option](https://github.com/stylelint/stylelint/tree/16.6.1/docs/user-guide/options.md#fix) can automatically fix all of the problems reported by this rule. However, it will not remove duplicate at-rules produced when the prefixes are removed. You can use [Autoprefixer](https://github.com/postcss/autoprefixer) itself, with the [`add` option off and the `remove` option on](https://github.com/postcss/autoprefixer#options), in these situations.

The [`message` secondary option](https://github.com/stylelint/stylelint/tree/16.3.1/docs/user-guide/configure.md#message) can accept the arguments of this rule.
The [`message` secondary option](https://github.com/stylelint/stylelint/tree/16.6.1/docs/user-guide/configure.md#message) can accept the arguments of this rule.

## Options

Expand Down
2 changes: 1 addition & 1 deletion docs/description/at-rule-property-required-list.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Specify a list of required properties for an at-rule.
* At-rule and required property names */
```

The [`message` secondary option](https://github.com/stylelint/stylelint/tree/16.3.1/docs/user-guide/configure.md#message) can accept the arguments of this rule.
The [`message` secondary option](https://github.com/stylelint/stylelint/tree/16.6.1/docs/user-guide/configure.md#message) can accept the arguments of this rule.

## Options

Expand Down
4 changes: 2 additions & 2 deletions docs/description/color-function-notation.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ Modern color-functions use a comma-free syntax because functions in CSS are used

For legacy reasons, `rgb()` and `hsl()` also supports an alternate syntax that separates all of its arguments with commas. Also for legacy reasons, the `rgba()` and `hsla()` functions exist using the same comma-based syntax.

The [`fix` option](https://github.com/stylelint/stylelint/tree/16.3.1/docs/user-guide/options.md#fix) can automatically fix some of the problems reported by this rule when the primary option is `"modern"`.
The [`fix` option](https://github.com/stylelint/stylelint/tree/16.6.1/docs/user-guide/options.md#fix) can automatically fix some of the problems reported by this rule when the primary option is `"modern"`.

The [`message` secondary option](https://github.com/stylelint/stylelint/tree/16.3.1/docs/user-guide/configure.md#message) can accept the arguments of this rule.
The [`message` secondary option](https://github.com/stylelint/stylelint/tree/16.6.1/docs/user-guide/configure.md#message) can accept the arguments of this rule.

## Options

Expand Down
2 changes: 1 addition & 1 deletion docs/description/color-hex-alpha.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ a { color: #fffa }
* This alpha channel */
```

The [`message` secondary option](https://github.com/stylelint/stylelint/tree/16.3.1/docs/user-guide/configure.md#message) can accept the arguments of this rule.
The [`message` secondary option](https://github.com/stylelint/stylelint/tree/16.6.1/docs/user-guide/configure.md#message) can accept the arguments of this rule.

## Options

Expand Down
4 changes: 2 additions & 2 deletions docs/description/color-hex-length.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ a { color: #fff }
* This hex color */
```

The [`fix` option](https://github.com/stylelint/stylelint/tree/16.3.1/docs/user-guide/options.md#fix) can automatically fix all of the problems reported by this rule.
The [`fix` option](https://github.com/stylelint/stylelint/tree/16.6.1/docs/user-guide/options.md#fix) can automatically fix all of the problems reported by this rule.

The [`message` secondary option](https://github.com/stylelint/stylelint/tree/16.3.1/docs/user-guide/configure.md#message) can accept the arguments of this rule.
The [`message` secondary option](https://github.com/stylelint/stylelint/tree/16.6.1/docs/user-guide/configure.md#message) can accept the arguments of this rule.

## Options

Expand Down
2 changes: 1 addition & 1 deletion docs/description/color-no-hex.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ a { color: #333 }
* This hex color */
```

The [`message` secondary option](https://github.com/stylelint/stylelint/tree/16.3.1/docs/user-guide/configure.md#message) can accept the arguments of this rule.
The [`message` secondary option](https://github.com/stylelint/stylelint/tree/16.6.1/docs/user-guide/configure.md#message) can accept the arguments of this rule.

## Options

Expand Down
2 changes: 1 addition & 1 deletion docs/description/color-no-invalid-hex.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ a { color: #y3 }

Longhand hex colors can be either 6 or 8 (with alpha channel) hexadecimal characters. And their shorthand variants are 3 and 4 characters respectively.

The [`message` secondary option](https://github.com/stylelint/stylelint/tree/16.3.1/docs/user-guide/configure.md#message) can accept the arguments of this rule.
The [`message` secondary option](https://github.com/stylelint/stylelint/tree/16.6.1/docs/user-guide/configure.md#message) can accept the arguments of this rule.

## Options

Expand Down
2 changes: 1 addition & 1 deletion docs/description/comment-empty-line-before.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ This rule ignores:
- single-line comments with `//` (when you're using a custom syntax that supports them)
- comments within selector and value lists

The [`fix` option](https://github.com/stylelint/stylelint/tree/16.3.1/docs/user-guide/options.md#fix) can automatically fix all of the problems reported by this rule.
The [`fix` option](https://github.com/stylelint/stylelint/tree/16.6.1/docs/user-guide/options.md#fix) can automatically fix all of the problems reported by this rule.

## Options

Expand Down
2 changes: 1 addition & 1 deletion docs/description/comment-pattern.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Specify a pattern for comments.
* The pattern of this */
```

The [`message` secondary option](https://github.com/stylelint/stylelint/tree/16.3.1/docs/user-guide/configure.md#message) can accept the arguments of this rule.
The [`message` secondary option](https://github.com/stylelint/stylelint/tree/16.6.1/docs/user-guide/configure.md#message) can accept the arguments of this rule.

## Options

Expand Down
2 changes: 1 addition & 1 deletion docs/description/comment-whitespace-inside.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Any number of asterisks are allowed at the beginning or end of the comment. So `
> [!WARNING]
> Comments within _selector and value lists_ are currently ignored.
The [`fix` option](https://github.com/stylelint/stylelint/tree/16.3.1/docs/user-guide/options.md#fix) can automatically fix all of the problems reported by this rule.
The [`fix` option](https://github.com/stylelint/stylelint/tree/16.6.1/docs/user-guide/options.md#fix) can automatically fix all of the problems reported by this rule.

## Options

Expand Down
2 changes: 1 addition & 1 deletion docs/description/comment-word-disallowed-list.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Specify a list of disallowed words within comments.
> [!WARNING]
> Comments within _selector and value lists_ are currently ignored.
The [`message` secondary option](https://github.com/stylelint/stylelint/tree/16.3.1/docs/user-guide/configure.md#message) can accept the arguments of this rule.
The [`message` secondary option](https://github.com/stylelint/stylelint/tree/16.6.1/docs/user-guide/configure.md#message) can accept the arguments of this rule.

## Options

Expand Down
2 changes: 1 addition & 1 deletion docs/description/custom-media-pattern.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Specify a pattern for custom media query names.
* The pattern of this */
```

The [`message` secondary option](https://github.com/stylelint/stylelint/tree/16.3.1/docs/user-guide/configure.md#message) can accept the arguments of this rule.
The [`message` secondary option](https://github.com/stylelint/stylelint/tree/16.6.1/docs/user-guide/configure.md#message) can accept the arguments of this rule.

## Options

Expand Down
2 changes: 1 addition & 1 deletion docs/description/custom-property-empty-line-before.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ a {
* This line */
```

The [`fix` option](https://github.com/stylelint/stylelint/tree/16.3.1/docs/user-guide/options.md#fix) can automatically fix all of the problems reported by this rule.
The [`fix` option](https://github.com/stylelint/stylelint/tree/16.6.1/docs/user-guide/options.md#fix) can automatically fix all of the problems reported by this rule.

## Options

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ This rule has the following limitations:
- It only reports custom properties that are defined within the same source.
- It does not check properties that can contain author-defined identifiers, e.g. `transition-property`.

The [`message` secondary option](https://github.com/stylelint/stylelint/tree/16.3.1/docs/user-guide/configure.md#message) can accept the arguments of this rule.
The [`message` secondary option](https://github.com/stylelint/stylelint/tree/16.6.1/docs/user-guide/configure.md#message) can accept the arguments of this rule.

## Options

Expand Down
2 changes: 1 addition & 1 deletion docs/description/custom-property-pattern.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ a { --foo-: 1px; }
* The pattern of this */
```

The [`message` secondary option](https://github.com/stylelint/stylelint/tree/16.3.1/docs/user-guide/configure.md#message) can accept the arguments of this rule.
The [`message` secondary option](https://github.com/stylelint/stylelint/tree/16.6.1/docs/user-guide/configure.md#message) can accept the arguments of this rule.

## Options

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ a { --custom-property: pink; --custom-property: orange; }

This rule is case-sensitive.

The [`message` secondary option](https://github.com/stylelint/stylelint/tree/16.3.1/docs/user-guide/configure.md#message) can accept the arguments of this rule.
The [`message` secondary option](https://github.com/stylelint/stylelint/tree/16.6.1/docs/user-guide/configure.md#message) can accept the arguments of this rule.

## Options

Expand Down
4 changes: 2 additions & 2 deletions docs/description/declaration-block-no-duplicate-properties.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ a { color: pink; color: orange; }

This rule ignores variables (`$sass`, `@less`, `--custom-property`).

The [`fix` option](https://github.com/stylelint/stylelint/tree/16.3.1/docs/user-guide/options.md#fix) can automatically fix all of the problems reported by this rule.
The [`fix` option](https://github.com/stylelint/stylelint/tree/16.6.1/docs/user-guide/options.md#fix) can automatically fix all of the problems reported by this rule.

The [`message` secondary option](https://github.com/stylelint/stylelint/tree/16.3.1/docs/user-guide/configure.md#message) can accept the arguments of this rule.
The [`message` secondary option](https://github.com/stylelint/stylelint/tree/16.6.1/docs/user-guide/configure.md#message) can accept the arguments of this rule.

## Options

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,9 @@ This rule complains when the following shorthand properties can be used:
Flexbox-related properties can be ignored using `ignoreShorthands: ["/flex/"]` (see below).

The [`fix` option](https://github.com/stylelint/stylelint/tree/16.3.1/docs/user-guide/options.md#fix) can automatically fix most of the problems reported by this rule.
The [`fix` option](https://github.com/stylelint/stylelint/tree/16.6.1/docs/user-guide/options.md#fix) can automatically fix most of the problems reported by this rule.

The [`message` secondary option](https://github.com/stylelint/stylelint/tree/16.3.1/docs/user-guide/configure.md#message) can accept the arguments of this rule.
The [`message` secondary option](https://github.com/stylelint/stylelint/tree/16.6.1/docs/user-guide/configure.md#message) can accept the arguments of this rule.

## Options

Expand Down Expand Up @@ -174,6 +174,60 @@ a {

## Optional secondary options

### `ignoreLonghands: ["string"]`

Given:

<!-- prettier-ignore -->
```json
["text-decoration-thickness", "background-size", "background-origin", "background-clip"]
```

The following patterns are considered problems:

<!-- prettier-ignore -->
```css
a {
text-decoration-line: underline;
text-decoration-style: solid;
text-decoration-color: purple;
}
```

<!-- prettier-ignore -->
```css
a {
background-repeat: repeat;
background-attachment: scroll;
background-position: 0% 0%;
background-color: transparent;
background-image: none;
background-size: contain;
background-origin: border-box;
background-clip: text;
}
```

The following patterns are _not_ considered problems:

<!-- prettier-ignore -->
```css
a {
text-decoration: underline solid purple;
text-decoration-thickness: 1px;
}
```

<!-- prettier-ignore -->
```css
a {
background: none 0% 0% repeat scroll transparent;
background-size: contain;
background-origin: border-box;
background-clip: text;
}
```

### `ignoreShorthands: ["/regex/", /regex/, "string"]`

Given:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ a { background-repeat: repeat; background: green; }

In almost every case, this is just an authorial oversight. For more about this behavior, see [MDN's documentation of shorthand properties](https://developer.mozilla.org/en-US/docs/Web/CSS/Shorthand_properties).

The [`message` secondary option](https://github.com/stylelint/stylelint/tree/16.3.1/docs/user-guide/configure.md#message) can accept the arguments of this rule.
The [`message` secondary option](https://github.com/stylelint/stylelint/tree/16.6.1/docs/user-guide/configure.md#message) can accept the arguments of this rule.

## Options

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ a { color: pink; top: 0; }
* The number of these declarations */
```

The [`message` secondary option](https://github.com/stylelint/stylelint/tree/16.3.1/docs/user-guide/configure.md#message) can accept the arguments of this rule.
The [`message` secondary option](https://github.com/stylelint/stylelint/tree/16.6.1/docs/user-guide/configure.md#message) can accept the arguments of this rule.

## Options

Expand Down
4 changes: 2 additions & 2 deletions docs/description/declaration-empty-line-before.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ a {
* This line */
```

This rule only applies to standard property declarations. Use the [`custom-property-empty-line-before`](https://github.com/stylelint/stylelint/tree/16.3.1/lib/rules/custom-property-empty-line-before/README.md) rule for custom property declarations.
This rule only applies to standard property declarations. Use the [`custom-property-empty-line-before`](https://github.com/stylelint/stylelint/tree/16.6.1/lib/rules/custom-property-empty-line-before/README.md) rule for custom property declarations.

The [`fix` option](https://github.com/stylelint/stylelint/tree/16.3.1/docs/user-guide/options.md#fix) can automatically fix all of the problems reported by this rule.
The [`fix` option](https://github.com/stylelint/stylelint/tree/16.6.1/docs/user-guide/options.md#fix) can automatically fix all of the problems reported by this rule.

## Options

Expand Down
2 changes: 1 addition & 1 deletion docs/description/declaration-property-max-values.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Limit the number of values for a list of properties within declarations.

The [`message` secondary option](https://github.com/stylelint/stylelint/tree/16.3.1/docs/user-guide/configure.md#message) can accept the arguments of this rule.
The [`message` secondary option](https://github.com/stylelint/stylelint/tree/16.6.1/docs/user-guide/configure.md#message) can accept the arguments of this rule.

## Options

Expand Down
Loading

0 comments on commit ae0a858

Please sign in to comment.