branch: elpa/flycheck
commit b6bef94d403dbf3916918378e8282a4784b36fe6
Author: Bozhidar Batsov <[email protected]>
Commit: Bozhidar Batsov <[email protected]>
Remove scss checker (Ruby Sass)
Ruby Sass reached end-of-life in March 2019. The scss checker that
depended on it is no longer usable. Users should use scss-stylelint
instead.
---
doc/languages.rst | 5 +----
flycheck.el | 39 ---------------------------------------
test/specs/languages/test-scss.el | 13 +------------
3 files changed, 2 insertions(+), 55 deletions(-)
diff --git a/doc/languages.rst b/doc/languages.rst
index 2f389ca39e..1c57ef5eca 100644
--- a/doc/languages.rst
+++ b/doc/languages.rst
@@ -1479,13 +1479,10 @@ to view the docstring of the syntax checker. Likewise,
you may use
Whether to run stylelint in quiet mode via ``--quiet``.
.. syntax-checker:: sass
- scss
- Check SASS and SCSS respectively with the `SCSS compiler
- <http://sass-lang.com/>`_.
+ Check SASS with the `SCSS compiler <http://sass-lang.com/>`_.
.. defcustom:: flycheck-sass-compass
- flycheck-scss-compass
Whether to enable the Compass CSS framework with ``--compass``.
diff --git a/flycheck.el b/flycheck.el
index 7adbcab6c7..962086cdab 100644
--- a/flycheck.el
+++ b/flycheck.el
@@ -232,7 +232,6 @@
scss-stylelint
sass/scss-sass-lint
sass
- scss
sh-bash
sh-posix-dash
sh-posix-bash
@@ -12527,44 +12526,6 @@ See URL `https://stylelint.io/'."
:predicate flycheck-buffer-nonempty-p
:modes (sass-mode))
-(flycheck-def-option-var flycheck-scss-compass nil scss
- "Whether to enable the Compass CSS framework.
-
-When non-nil, enable the Compass CSS framework, via `--compass'."
- :type 'boolean
- :safe #'booleanp
- :package-version '(flycheck . "0.16"))
-
-(flycheck-define-checker scss
- "A SCSS syntax checker using the SCSS compiler.
-
-See URL `https://sass-lang.com'."
- :command ("scss"
- "--cache-location" (eval (flycheck-sass-scss-cache-location))
- (option-flag "--compass" flycheck-scss-compass)
- "--check" "--stdin")
- :standard-input t
- :error-patterns
- ((error line-start
- (or "Syntax error: " "Error: ")
- (message (one-or-more not-newline)
- (zero-or-more "\n"
- (one-or-more " ")
- (one-or-more not-newline)))
- (optional "\r") "\n" (one-or-more " ") "on line " line
- " of standard input"
- line-end)
- (warning line-start
- "WARNING: "
- (message (one-or-more not-newline)
- (zero-or-more "\n"
- (one-or-more " ")
- (one-or-more not-newline)))
- (optional "\r") "\n" (one-or-more " ") "on line " line
- " of an unknown file"
- line-end))
- :modes scss-mode)
-
(flycheck-def-args-var flycheck-sh-bash-args (sh-bash)
:package-version '(flycheck . "32"))
diff --git a/test/specs/languages/test-scss.el
b/test/specs/languages/test-scss.el
index 32077ff752..c3ba386e37 100644
--- a/test/specs/languages/test-scss.el
+++ b/test/specs/languages/test-scss.el
@@ -43,17 +43,6 @@
'(3 1 error "Syntax Error: Invalid CSS after \"... c olor: red\":
expected \"{\", was \";\""
:checker scss-lint :id "Syntax")))
- (flycheck-buttercup-def-checker-test scss scss nil
- (let ((flycheck-disabled-checkers '(scss-lint scss-stylelint
sass/scss-sass-lint)))
- (flycheck-buttercup-should-syntax-check
- "language/scss/error.scss" 'scss-mode
- '(3 nil error "Invalid CSS after \"... c olor: red\": expected
\"{\", was \";\""
- :checker scss))))
-
- (flycheck-buttercup-def-checker-test scss scss warning
- (let ((flycheck-disabled-checkers '(scss-lint scss-stylelint
sass/scss-sass-lint)))
- (flycheck-buttercup-should-syntax-check
- "language/scss/warning.scss" 'scss-mode
- '(2 nil warning ".container is deprecated" :checker scss)))))
+)
;;; test-scss.el ends here