emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/nix-mode 3edda90cfd 146/500: Remove nix-flycheck


From: ELPA Syncer
Subject: [nongnu] elpa/nix-mode 3edda90cfd 146/500: Remove nix-flycheck
Date: Sat, 29 Jan 2022 08:26:57 -0500 (EST)

branch: elpa/nix-mode
commit 3edda90cfd5d98cc0e305db6bb325b44807a5e1e
Author: Matthew Bauer <mjbauer95@gmail.com>
Commit: Matthew Bauer <mjbauer95@gmail.com>

    Remove nix-flycheck
    
    Flycheck now provides Nix support. Any changes should be made there at:
    
    https://github.com/flycheck/flycheck
---
 nix-flycheck.el | 47 -----------------------------------------------
 1 file changed, 47 deletions(-)

diff --git a/nix-flycheck.el b/nix-flycheck.el
deleted file mode 100644
index 505c296410..0000000000
--- a/nix-flycheck.el
+++ /dev/null
@@ -1,47 +0,0 @@
-;; -*- lexical-binding: t -*-
-;;; nix-flycheck.el --- Flycheck support for Nix.
-
-;; This file is NOT part of GNU Emacs.
-
-;;; Commentary:
-
-;;; Code:
-
-(require 'flycheck)
-
-(defconst nix-err-msg-re
-  "error: \\(.*\\) at \\(.*\\):\\([0-9]+\\):\\([0-9]+\\)")
-
-(defun nix--parse-errors (output checker buffer)
-  (with-temp-buffer
-    (insert output)
-    (goto-char (point-min))
-    (let ((errs '()))
-      (while (search-forward-regexp nix-err-msg-re nil t 1)
-        (let* ((file (match-string 2))
-               (line (string-to-number (match-string 3)))
-               (col (string-to-number (match-string 4)))
-               (msg (match-string 1)))
-          (setq errs
-                (cons (flycheck-error-new-at
-                       line col 'error msg
-                       :filename (and (not (string= file "(string)")) file)
-                       :checker checker
-                       :buffer buffer)
-                      errs))))
-      errs)))
-
-(flycheck-def-args-var flycheck-nix-args (nix))
-
-(flycheck-define-checker flycheck-nix
-  "A syntax and evaluation checker for Nix using nix-instantiate."
-  :command ("nix-instantiate" "--eval" "--strict" "--show-trace" (eval 
flycheck-nix-args) "-")
-  :standard-input t
-  :error-parser nix--parse-errors
-  :modes (nix-mode)
-  )
-
-(add-to-list 'flycheck-checkers 'flycheck-nix)
-
-(provide 'nix-flycheck)
-;;; nix-flycheck.el ends here



reply via email to

[Prev in Thread] Current Thread [Next in Thread]