-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix #105 Support CSS Fonts Module Level 4 - font-variant-emoji
- Loading branch information
Showing
21 changed files
with
168 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 10 additions & 0 deletions
10
css-checks/src/test/resources/checks/common/properties/css/font-variant-emoji.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
.mybox { | ||
font-variant-emoji: inherit; | ||
font-variant-emoji: auto; | ||
font-variant-emoji: text; | ||
font-variant-emoji: emoji; | ||
font-variant-emoji: 0; /* Noncompliant {Update the invalid value of property "font-variant-emoji". Expected format: auto | none}! */ | ||
font-variant-emoji: 10px; /* Noncompliant */ | ||
font-variant-emoji: normal; /* Noncompliant */ | ||
font-variant-emoji: auto none; /* Noncompliant */ | ||
} |
10 changes: 10 additions & 0 deletions
10
css-checks/src/test/resources/checks/common/properties/less/font-variant-emoji.less
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
.mybox { | ||
font-variant-emoji: inherit; | ||
font-variant-emoji: auto; | ||
font-variant-emoji: text; | ||
font-variant-emoji: emoji; | ||
font-variant-emoji: 0; /* Noncompliant {Update the invalid value of property "font-variant-emoji". Expected format: auto | none}! */ | ||
font-variant-emoji: 10px; /* Noncompliant */ | ||
font-variant-emoji: normal; /* Noncompliant */ | ||
font-variant-emoji: auto none; /* Noncompliant */ | ||
} |
10 changes: 10 additions & 0 deletions
10
css-checks/src/test/resources/checks/common/properties/scss/font-variant-emoji.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
.mybox { | ||
font-variant-emoji: inherit; | ||
font-variant-emoji: auto; | ||
font-variant-emoji: text; | ||
font-variant-emoji: emoji; | ||
font-variant-emoji: 0; /* Noncompliant {Update the invalid value of property "font-variant-emoji". Expected format: auto | none}! */ | ||
font-variant-emoji: 10px; /* Noncompliant */ | ||
font-variant-emoji: normal; /* Noncompliant */ | ||
font-variant-emoji: auto none; /* Noncompliant */ | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
33 changes: 33 additions & 0 deletions
33
css-frontend/src/main/java/org/sonar/css/model/property/standard/FontVariantEmoji.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
/* | ||
* SonarQube CSS / SCSS / Less Analyzer | ||
* Copyright (C) 2013-2017 David RACODON | ||
* mailto: [email protected] | ||
* | ||
* This program is free software; you can redistribute it and/or | ||
* modify it under the terms of the GNU Lesser General Public | ||
* License as published by the Free Software Foundation; either | ||
* version 3 of the License, or (at your option) any later version. | ||
* | ||
* This program is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
* Lesser General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU Lesser General Public License | ||
* along with this program; if not, write to the Free Software Foundation, | ||
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | ||
*/ | ||
package org.sonar.css.model.property.standard; | ||
|
||
import org.sonar.css.model.property.StandardProperty; | ||
import org.sonar.css.model.property.validator.valueelement.IdentifierValidator; | ||
|
||
public class FontVariantEmoji extends StandardProperty { | ||
|
||
public FontVariantEmoji() { | ||
setExperimental(true); | ||
addLinks("https://drafts.csswg.org/css-fonts-4/#propdef-font-variant-emoji"); | ||
addValidators(new IdentifierValidator("auto", "text", "emoji")); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 10 additions & 0 deletions
10
its/ruling/projects/custom/common/properties/css/font-variant-emoji.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
.mybox { | ||
font-variant-emoji: inherit; | ||
font-variant-emoji: auto; | ||
font-variant-emoji: text; | ||
font-variant-emoji: emoji; | ||
font-variant-emoji: 0; /* Noncompliant {Update the invalid value of property "font-variant-emoji". Expected format: auto | none}! */ | ||
font-variant-emoji: 10px; /* Noncompliant */ | ||
font-variant-emoji: normal; /* Noncompliant */ | ||
font-variant-emoji: auto none; /* Noncompliant */ | ||
} |
10 changes: 10 additions & 0 deletions
10
its/ruling/projects/custom/common/properties/less/font-variant-emoji.less
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
.mybox { | ||
font-variant-emoji: inherit; | ||
font-variant-emoji: auto; | ||
font-variant-emoji: text; | ||
font-variant-emoji: emoji; | ||
font-variant-emoji: 0; /* Noncompliant {Update the invalid value of property "font-variant-emoji". Expected format: auto | none}! */ | ||
font-variant-emoji: 10px; /* Noncompliant */ | ||
font-variant-emoji: normal; /* Noncompliant */ | ||
font-variant-emoji: auto none; /* Noncompliant */ | ||
} |
10 changes: 10 additions & 0 deletions
10
its/ruling/projects/custom/common/properties/scss/font-variant-emoji.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
.mybox { | ||
font-variant-emoji: inherit; | ||
font-variant-emoji: auto; | ||
font-variant-emoji: text; | ||
font-variant-emoji: emoji; | ||
font-variant-emoji: 0; /* Noncompliant {Update the invalid value of property "font-variant-emoji". Expected format: auto | none}! */ | ||
font-variant-emoji: 10px; /* Noncompliant */ | ||
font-variant-emoji: normal; /* Noncompliant */ | ||
font-variant-emoji: auto none; /* Noncompliant */ | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters