forked from kalidasya/sonar-css
-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix #188 Add missing CSS functions such as format, toggle, etc.
- Loading branch information
Showing
7 changed files
with
184 additions
and
0 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
30 changes: 30 additions & 0 deletions
30
css-squid/src/main/java/org/sonar/css/model/function/standard/FitContent.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,30 @@ | ||
/* | ||
* SonarQube CSS Plugin | ||
* Copyright (C) 2013 Tamas Kende and David RACODON | ||
* [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 02 | ||
*/ | ||
package org.sonar.css.model.function.standard; | ||
|
||
import org.sonar.css.model.function.StandardFunction; | ||
|
||
public class FitContent extends StandardFunction { | ||
|
||
public FitContent() { | ||
addLinks("https://www.w3.org/TR/css-grid-1/#valdef-grid-template-columns-fit-content"); | ||
} | ||
|
||
} |
30 changes: 30 additions & 0 deletions
30
css-squid/src/main/java/org/sonar/css/model/function/standard/Format.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,30 @@ | ||
/* | ||
* SonarQube CSS Plugin | ||
* Copyright (C) 2013 Tamas Kende and David RACODON | ||
* [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 02 | ||
*/ | ||
package org.sonar.css.model.function.standard; | ||
|
||
import org.sonar.css.model.function.StandardFunction; | ||
|
||
public class Format extends StandardFunction { | ||
|
||
public Format() { | ||
addLinks("https://drafts.csswg.org/css-fonts-3/#descdef-src"); | ||
} | ||
|
||
} |
31 changes: 31 additions & 0 deletions
31
css-squid/src/main/java/org/sonar/css/model/function/standard/Max.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,31 @@ | ||
/* | ||
* SonarQube CSS Plugin | ||
* Copyright (C) 2013 Tamas Kende and David RACODON | ||
* [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 02 | ||
*/ | ||
package org.sonar.css.model.function.standard; | ||
|
||
import org.sonar.css.model.function.StandardFunction; | ||
|
||
public class Max extends StandardFunction { | ||
|
||
public Max() { | ||
setObsolete(true); | ||
addLinks("https://www.w3.org/TR/2011/WD-css3-values-20110906/#max"); | ||
} | ||
|
||
} |
31 changes: 31 additions & 0 deletions
31
css-squid/src/main/java/org/sonar/css/model/function/standard/Min.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,31 @@ | ||
/* | ||
* SonarQube CSS Plugin | ||
* Copyright (C) 2013 Tamas Kende and David RACODON | ||
* [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 02 | ||
*/ | ||
package org.sonar.css.model.function.standard; | ||
|
||
import org.sonar.css.model.function.StandardFunction; | ||
|
||
public class Min extends StandardFunction { | ||
|
||
public Min() { | ||
setObsolete(true); | ||
addLinks("https://www.w3.org/TR/2011/WD-css3-values-20110906/#min"); | ||
} | ||
|
||
} |
30 changes: 30 additions & 0 deletions
30
css-squid/src/main/java/org/sonar/css/model/function/standard/Minmax.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,30 @@ | ||
/* | ||
* SonarQube CSS Plugin | ||
* Copyright (C) 2013 Tamas Kende and David RACODON | ||
* [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 02 | ||
*/ | ||
package org.sonar.css.model.function.standard; | ||
|
||
import org.sonar.css.model.function.StandardFunction; | ||
|
||
public class Minmax extends StandardFunction { | ||
|
||
public Minmax() { | ||
addLinks("https://www.w3.org/TR/css-grid-1/#valdef-grid-template-columns-minmax"); | ||
} | ||
|
||
} |
31 changes: 31 additions & 0 deletions
31
css-squid/src/main/java/org/sonar/css/model/function/standard/Toggle.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,31 @@ | ||
/* | ||
* SonarQube CSS Plugin | ||
* Copyright (C) 2013 Tamas Kende and David RACODON | ||
* [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 02 | ||
*/ | ||
package org.sonar.css.model.function.standard; | ||
|
||
import org.sonar.css.model.function.StandardFunction; | ||
|
||
public class Toggle extends StandardFunction { | ||
|
||
public Toggle() { | ||
setExperimental(true); | ||
addLinks("https://drafts.csswg.org/css-values-3/#valdef-frequency-toggle"); | ||
} | ||
|
||
} |