branch: elpa/flycheck
commit 9796a423662c2190336191668a74e1fd0545a548
Author: Bozhidar Batsov <[email protected]>
Commit: Bozhidar Batsov <[email protected]>

    Remove sass checker (Ruby Sass)
    
    Ruby Sass reached end-of-life in March 2019. The sass checker that
    depended on it is no longer usable. Users should use sass-stylelint
    instead.
---
 doc/languages.rst                 |  8 ------
 flycheck.el                       | 51 ---------------------------------------
 test/specs/languages/test-sass.el | 44 ---------------------------------
 3 files changed, 103 deletions(-)

diff --git a/doc/languages.rst b/doc/languages.rst
index 1c57ef5eca..73194bfb7c 100644
--- a/doc/languages.rst
+++ b/doc/languages.rst
@@ -1478,14 +1478,6 @@ to view the docstring of the syntax checker.  Likewise, 
you may use
 
          Whether to run stylelint in quiet mode via ``--quiet``.
 
-   .. syntax-checker:: sass
-
-      Check SASS with the `SCSS compiler <http://sass-lang.com/>`_.
-
-      .. defcustom:: flycheck-sass-compass
-
-         Whether to enable the Compass CSS framework with ``--compass``.
-
 .. supported-language:: Scala
 
    Flycheck checks Scala with `scala` and `scala-scalastyle`.
diff --git a/flycheck.el b/flycheck.el
index 962086cdab..a8987cb47c 100644
--- a/flycheck.el
+++ b/flycheck.el
@@ -231,7 +231,6 @@
     sass-stylelint
     scss-stylelint
     sass/scss-sass-lint
-    sass
     sh-bash
     sh-posix-dash
     sh-posix-bash
@@ -12242,56 +12241,6 @@ CHECKER and BUFFER are used to construct the error 
objects."
                    :id (plist-get e :id))) errors))
     (json-error nil)))
 
-(defvar flycheck-sass-scss-cache-directory nil
-  "The cache directory for `sass' and `scss'.")
-
-(defun flycheck-sass-scss-cache-location ()
-  "Get the cache location for `sass' and `scss'.
-
-If no cache directory exists yet, create one and return it.
-Otherwise return the previously used cache directory."
-  (setq flycheck-sass-scss-cache-directory
-        (or flycheck-sass-scss-cache-directory
-            (make-temp-file "flycheck-sass-scss-cache" 'directory))))
-
-(flycheck-def-option-var flycheck-sass-compass nil sass
-  "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 sass
-  "A Sass syntax checker using the Sass compiler.
-
-See URL `https://sass-lang.com'."
-  :command ("sass"
-            "--cache-location" (eval (flycheck-sass-scss-cache-location))
-            (option-flag "--compass" flycheck-sass-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 " (one-or-more not-newline)
-            line-end))
-  :modes sass-mode)
-
 (flycheck-def-config-file-var flycheck-sass-lintrc sass/scss-sass-lint
                               ".sass-lint.yml"
   :package-version '(flycheck . "30"))
diff --git a/test/specs/languages/test-sass.el 
b/test/specs/languages/test-sass.el
deleted file mode 100644
index 82ff2436e6..0000000000
--- a/test/specs/languages/test-sass.el
+++ /dev/null
@@ -1,44 +0,0 @@
-;;; test-sass.el --- Flycheck Specs: Sass      -*- lexical-binding: t; -*-
-
-;; Copyright (C) 2017 Flycheck contributors
-;; Copyright (C) 2016 Sebastian Wiesner and Flycheck contributors
-
-;; This file is not part of GNU Emacs.
-
-;; This program is free software; you can redistribute it and/or modify
-;; it under the terms of the GNU 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 General Public License for more details.
-
-;; You should have received a copy of the GNU General Public License
-;; along with this program.  If not, see <http://www.gnu.org/licenses/>.
-
-;;; Commentary:
-
-;; Specs for Sass support.
-
-;;; Code:
-
-(require 'flycheck-buttercup)
-(require 'test-helpers)
-
-(describe "Language Sass"
-  (flycheck-buttercup-def-checker-test sass sass nil
-    (let ((flycheck-disabled-checkers '(sass-stylelint sass/scss-sass-lint)))
-      (flycheck-buttercup-should-syntax-check
-       "language/sass/error.sass" 'sass-mode
-       '(5 nil error "Inconsistent indentation: 3 spaces were used for 
indentation, but the rest of the document was indented using 2 spaces."
-           :checker sass))))
-
-  (flycheck-buttercup-def-checker-test sass sass warning
-    (let ((flycheck-disabled-checkers '(sass-stylelint sass/scss-sass-lint)))
-      (flycheck-buttercup-should-syntax-check
-       "language/sass/warning.sass" 'sass-mode
-       '(2 nil warning "this is deprecated" :checker sass)))))
-
-;;; test-sass.el ends here

Reply via email to