All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.sonar.css.checks.l10n.common.semicolon-declaration.html Maven / Gradle / Ivy

There is a newer version: 4.13
Show newest version

Adding a semicolon after the last declaration of a rule is not mandatory. But omitting this semicolon could lead to unexpected issues.

Noncompliant Code Example

Let's take the following piece of code as an example:

.foo {
  background-color: red;
  color: green             /* Noncompliant */
}

Then, add some properties:

.foo {
  background-color: red;
  color: green             /* Noncompliant */
  width: 30px;
}

Now, you might waste time figuring out why the width declaration isn't working. Even worse, you can even fail noticing that it's not working.

Compliant Solution

.foo {
  background-color: red;
  color: green;
  width: 30px;
}

stylelint Related Rules





© 2015 - 2024 Weber Informatics LLC | Privacy Policy