Skip to content

Commit

Permalink
Fix #188 Add missing CSS functions such as format, toggle, etc.
Browse files Browse the repository at this point in the history
  • Loading branch information
racodond committed May 24, 2016
1 parent 78f1a70 commit 5d734ca
Show file tree
Hide file tree
Showing 7 changed files with 184 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
public class Attr extends StandardFunction {

public Attr() {
setExperimental(true);
addLinks("https://drafts.csswg.org/css-values-3/#funcdef-attr");
}

Expand Down
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");
}

}
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");
}

}
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");
}

}
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");
}

}
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");
}

}
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");
}

}

0 comments on commit 5d734ca

Please sign in to comment.