branch: elpa/flycheck
commit 24016448b103b988748dc18ac76071fbdb81db70
Author: Bozhidar Batsov <[email protected]>
Commit: Bozhidar Batsov <[email protected]>
Remove json-jsonlint checker
The original jsonlint (zaach/jsonlint) has been abandoned since ~2017.
The json-python-json and json-jq checkers remain as alternatives.
---
doc/languages.rst | 7 +------
flycheck.el | 19 -------------------
test/specs/languages/test-json.el | 12 +++---------
3 files changed, 4 insertions(+), 34 deletions(-)
diff --git a/doc/languages.rst b/doc/languages.rst
index ff30e17745..d4ae7cee48 100644
--- a/doc/languages.rst
+++ b/doc/languages.rst
@@ -734,12 +734,7 @@ to view the docstring of the syntax checker. Likewise,
you may use
.. supported-language:: JSON
- Flycheck checks JSON with `json-jsonlint`, `json-python-json`, or
- `json-jq`.
-
- .. syntax-checker:: json-jsonlint
-
- Check JSON with `jsonlint <https://github.com/zaach/jsonlint>`_.
+ Flycheck checks JSON with `json-python-json` or `json-jq`.
.. syntax-checker:: json-python-json
diff --git a/flycheck.el b/flycheck.el
index bcb0d9c524..30c399ff35 100644
--- a/flycheck.el
+++ b/flycheck.el
@@ -167,7 +167,6 @@
javascript-oxlint
javascript-jshint
javascript-standard
- json-jsonlint
json-python-json
json-jq
jsonnet
@@ -10042,24 +10041,6 @@ See URL `https://github.com/standard/standard' and URL
:modes (js-mode js-jsx-mode js2-mode js2-jsx-mode js3-mode rjsx-mode
js-ts-mode))
-(flycheck-define-checker json-jsonlint
- "A JSON syntax and style checker using jsonlint.
-
-See URL `https://github.com/zaach/jsonlint'."
- ;; We can't use standard input for jsonlint, because it doesn't output errors
- ;; anymore when using -c -q with standard input :/
- :command ("jsonlint" "-c" "-q" source)
- :error-patterns
- ((error line-start
- (file-name)
- ": line " line
- ", col " column ", "
- (message) line-end))
- :error-filter
- (lambda (errors)
- (flycheck-sanitize-errors (flycheck-increment-error-columns errors)))
- :modes (json-mode js-json-mode json-ts-mode))
-
(flycheck-define-checker json-python-json
"A JSON syntax checker using Python json.tool module.
diff --git a/test/specs/languages/test-json.el
b/test/specs/languages/test-json.el
index bdbc697fda..e112fa21e0 100644
--- a/test/specs/languages/test-json.el
+++ b/test/specs/languages/test-json.el
@@ -4,19 +4,13 @@
(require 'test-helpers)
(describe "Language JSON"
- (flycheck-buttercup-def-checker-test json-jsonlint json nil
+ (flycheck-buttercup-def-checker-test json-python-json json nil
(flycheck-buttercup-should-syntax-check
"language/json.json" 'json-mode
- '(1 44 error "found: ',' - expected: 'EOF'." :checker json-jsonlint)))
-
- (flycheck-buttercup-def-checker-test json-python-json json nil
- (let ((flycheck-disabled-checkers '(json-jsonlint)))
- (flycheck-buttercup-should-syntax-check
- "language/json.json" 'json-mode
- '(1 44 error "Extra data" :checker json-python-json))))
+ '(1 44 error "Extra data" :checker json-python-json)))
(flycheck-buttercup-def-checker-test json-jq json nil
- (let ((flycheck-disabled-checkers '(json-jsonlint json-python-json)))
+ (let ((flycheck-disabled-checkers '(json-python-json)))
(flycheck-buttercup-should-syntax-check
"language/json.json" 'json-mode
'(1 44 error "Expected value before ','" :checker json-jq)))))