From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Philip Kaludercic Newsgroups: gmane.emacs.bugs Subject: bug#57884: [PATCH] Flymake backend using the shellcheck program Date: Sun, 18 Sep 2022 11:58:08 +0000 Message-ID: <87wna0dhdb.fsf@posteo.net> References: <87a66yaqwc.fsf@gmail.com> <83bkre0w4m.fsf@gnu.org> <871qs9c3er.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="23471"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Eli Zaretskii , 57884@debbugs.gnu.org To: Augusto Stoffel Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Sep 18 13:59:10 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oZsx4-0005v0-22 for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 18 Sep 2022 13:59:10 +0200 Original-Received: from localhost ([::1]:39594 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oZsx3-0005St-4T for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 18 Sep 2022 07:59:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:51272) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oZsww-0005SW-K0 for bug-gnu-emacs@gnu.org; Sun, 18 Sep 2022 07:59:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:49091) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oZsww-0002P4-Bq for bug-gnu-emacs@gnu.org; Sun, 18 Sep 2022 07:59:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oZsww-0007Gx-6n for bug-gnu-emacs@gnu.org; Sun, 18 Sep 2022 07:59:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Philip Kaludercic Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 18 Sep 2022 11:59:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 57884 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 57884-submit@debbugs.gnu.org id=B57884.166350229927880 (code B ref 57884); Sun, 18 Sep 2022 11:59:02 +0000 Original-Received: (at 57884) by debbugs.gnu.org; 18 Sep 2022 11:58:19 +0000 Original-Received: from localhost ([127.0.0.1]:48169 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oZswE-0007Fc-O4 for submit@debbugs.gnu.org; Sun, 18 Sep 2022 07:58:18 -0400 Original-Received: from mout02.posteo.de ([185.67.36.66]:50585) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oZswC-0007FM-7s for 57884@debbugs.gnu.org; Sun, 18 Sep 2022 07:58:17 -0400 Original-Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id B4679240101 for <57884@debbugs.gnu.org>; Sun, 18 Sep 2022 13:58:10 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1663502290; bh=+uQyTpdX9dCWiO0FebOi0tx/0koL41IKgSPLkIimeoI=; h=From:To:Cc:Subject:Autocrypt:Date:From; b=lBKN3OxjWS6M24ouWiVTMSrU/KxkYPS64obVL2DiAb6gQjy6HJ1kXx83JnBUUCFY3 ttOwLGKT/+yvmMbC9Z56z0R1IMZ3ILMfxJTLKneYRqv9lnefvh8JDwwePICopk/6wR /RIPBVYuXGkWKqb9A9dRTxlSulsD8GaOQ+OEXLaPr+JaJbX7Ewq1JflOuAuA8VJuKz Uw9iPulC2hWlMzcdcqlSdkLp+yMO8rAT+5bbk3qi3M3+MrkokLDvIwWKIXKMhoUEX7 BiQMPT5FvtihMJH+ThELlP7cl18wlMgx4MQQwtnI7HIkZCCP/wANkr7vsFznkfC6Cf aKrq+zQNkx5BQ== Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4MVmXf1mjYz6tqm; Sun, 18 Sep 2022 13:58:09 +0200 (CEST) In-Reply-To: <871qs9c3er.fsf@gmail.com> (Augusto Stoffel's message of "Sat, 17 Sep 2022 19:32:44 +0200") Autocrypt: addr=philipk@posteo.net; prefer-encrypt=nopreference; keydata= mDMEYHHqUhYJKwYBBAHaRw8BAQdAp3GdmYJ6tm5McweY6dEvIYIiry+Oz9rU4MH6NHWK0Ee0QlBo aWxpcCBLYWx1ZGVyY2ljIChnZW5lcmF0ZWQgYnkgYXV0b2NyeXB0LmVsKSA8cGhpbGlwa0Bwb3N0 ZW8ubmV0PoiQBBMWCAA4FiEEDM2H44ZoPt9Ms0eHtVrAHPRh1FwFAmBx6lICGwMFCwkIBwIGFQoJ CAsCBBYCAwECHgECF4AACgkQtVrAHPRh1FyTkgEAjlbGPxFchvMbxzAES3r8QLuZgCxeAXunM9gh io0ePtUBALVhh9G6wIoZhl0gUCbQpoN/UJHI08Gm1qDob5zDxnIHuDgEYHHqUhIKKwYBBAGXVQEF AQEHQNcRB+MUimTMqoxxMMUERpOR+Q4b1KgncDZkhrO2ql1tAwEIB4h4BBgWCAAgFiEEDM2H44Zo Pt9Ms0eHtVrAHPRh1FwFAmBx6lICGwwACgkQtVrAHPRh1Fw1JwD/Qo7kvtib8jy7puyWrSv0MeTS g8qIxgoRWJE/KKdkCLEA/jb9b9/g8nnX+UcwHf/4VfKsjExlnND3FrBviXUW6NcB X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:242971 Archived-At: Augusto Stoffel writes: > + (add-hook 'flymake-diagnostic-functions #'sh-shellcheck-flymake nil t) [...] > + (setq sh--shellcheck-process > + (make-process > + :name "luacheck" :noquery t :connection-type 'pipe > + :buffer (generate-new-buffer " *flymake-luacheck*") > + :command `(,(car sh-shellcheck-command) > + "--format=gcc" > + "--color=never" > + "-s" ,dialect > + ,@(cdr sh-shellcheck-command) > + "-") > + :sentinel sentinel)) Also what happens if someone doesn't have shellcheck installed?