From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Ergus Newsgroups: gmane.emacs.devel Subject: Re: Flymake backends Date: Sun, 16 Apr 2023 22:35:57 +0200 Message-ID: References: <87wn2btz63.fsf@posteo.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="34790"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Philip Kaludercic Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Apr 16 22:37:11 2023 Return-path: Envelope-to: ged-emacs-devel@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 1po97W-0008w6-Gy for ged-emacs-devel@m.gmane-mx.org; Sun, 16 Apr 2023 22:37:10 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1po96Z-0005Sm-8N; Sun, 16 Apr 2023 16:36:11 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1po96X-0005Sc-0B for emacs-devel@gnu.org; Sun, 16 Apr 2023 16:36:09 -0400 Original-Received: from sonic302-3.consmr.mail.bf2.yahoo.com ([74.6.135.42]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1po96S-0006TX-7j for emacs-devel@gnu.org; Sun, 16 Apr 2023 16:36:08 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aol.com; s=a2048; t=1681677362; bh=b3nV+YjO17sm3PWnWfII30l6QRFM29Fy4d31FVqeU+M=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From:Subject:Reply-To; b=gMyh0TgRPbU2ZOS0AS2xO9we6MsiG2fc7+AAPKrBKAbPGrYdxaZxx5ienJtKIL/I9k6YAHlBKSXuaA5gr/TOj/ajIiEIMmOnKiuGZSTQ95rJ1dCbevaXE8FUiZwyh0q9VqBZQiL9eF/h1cfkSn7jfemO0TcjKzh8zJS2iGAVzHGYaTaCqonG2l4uGG9eoKZ1YMKYqytPb8FvnFNI9hqcOZwYlg3Ol+K7MpOtM3TXyFUuFCM437QaUnmWrxju0c92M8uNTy3gvKSnqGKvHa1899Z4pqOzPsi4ZokueNdz1vKRXNzoPrqKA7W/RDTpQf7EmkfiU6LNdVE0uCL27YoSbQ== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1681677362; bh=eK9RHCm4beGwMrqpGFj16deknGtQOn+Xxi7+Brbm+nf=; h=X-Sonic-MF:Date:From:To:Subject:From:Subject; b=sx+1l7ZOl2wDtYDe90RBpSvh9+nynKwvzrSfEC/aFOcp+gyD8W9dVlsDsIWQORq/qTNvSEQi3zYI4DmCuhkSbjns/RnYvnIrMblTnDH+Rfxd0jtWMRAOHGNZAiQzLBSrPO/opEUZw7XBwzwE8L0zVxGaX3HKTenfIC0mKNAjjZVMkQy9Wf4Gu4QiC/QjdWNPCXj/EHJwd9PoquncmO/GjmK5M6qTLpP9itdqP1FzYidpzDRnVl37cO1uWOc8gbOjcTkKTMPQppV+urjGWhan8yf6e1enpx03F36ZKSGUEVyYsVvlSWZK3W4hGzQn79Xw5DU+xK3XO4QXkRJPT/fdAg== X-YMail-OSG: id.nAegVM1lO4OPTIVMU4F8tdVqO8iNjL_xR6ZzQzzeW7E6DLY_4CgT6rVxlOeV zPYFp_PmK37Ic.2GdOgG21N6RbaCkWDJR.EOEn_HvaCRlJR2.bpbAKp6V9KNTzJO5vVBCqnmTZvr ojonyCvSuOsZbPDOKoxmknlVCITLKJjZ7i5o7C._5Eij8b8RpKySEhfWtfgF76oKC7wescKULj96 Gh7c.VXamovMTx_JJ4wWAlilPcJJvCivNqdaG7HIeb0uf2E.FOsvwM8yxcy61NuDeFyTrDWIWK4u ni4k5sWfK5pJHDXqnDZOFgby.6_UN94VbaHa6oFdx_dFRa.dFyqagK6Lt3Z26jrmGv1zecbpHnOV nDeD1hM9O8SZLbDhaSjzk8r4wpVmpOGx9.aGBMZIgpEXFe_iRuj2tuJXYhZOHLzyxhMvqwYz6yZ3 3JEqW2QRMM8JyTP34m0smK6Lp5yzftP0rDbaB9GIaApZOpyCLwrWoxw6pLysYWFQYrtklWvokhQf YWAzQfIwlWUBVe7WNJUYh7VvogofXUoPlC3XcwBpDziXuzG9JI.R90.vIuNnIq0UDUDjesbhkYGA dUiIxndm9WsZTVrlG9zZ8t0gFVAPP6RRaQqN4uNiB6.U5r_DchHvy.tckua_AQ36z6mZweOR2fOT NxrviCueu_CmTErI1wmOUfk2CSt3fMQvE.HJlvAcussThsoIK380t6oxyGSPlDHnhGdWvlL9u80u pEj1h5Idi4pMiJvSQnMhUZW6KDBD4LC.xmMLKyuAxNBigTCouOuXbAvng3RUgCV6qS6flgvWt179 qTVuZdoQryWKhwrksO3qmhDTD.fqa7xxHyC9FFStHv X-Sonic-MF: X-Sonic-ID: d6e0096d-47b1-4536-92e9-e110eac58144 Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic302.consmr.mail.bf2.yahoo.com with HTTP; Sun, 16 Apr 2023 20:36:02 +0000 Original-Received: by hermes--production-ir2-74cd8fc864-ggn56 (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID 80dfe1354f3afa0c5d6945940feefd5a; Sun, 16 Apr 2023 20:36:00 +0000 (UTC) Content-Disposition: inline In-Reply-To: <87wn2btz63.fsf@posteo.net> X-Mailer: WebService/1.1.21365 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.aol Received-SPF: pass client-ip=74.6.135.42; envelope-from=spacibba@aol.com; helo=sonic302-3.consmr.mail.bf2.yahoo.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:305350 Archived-At: Hi Philip: On Sun, Apr 16, 2023 at 07:17:08PM +0000, Philip Kaludercic wrote: >Ergus writes: > > >There has been an attempt at abstracting over the current API in this >project: https://github.com/mohkale/flymake-collection > Thanks for replying. I am looking the flymake-collection project and I think that this is the kind of api we should offer to the user for applications development. Even that one or a simplified version of that. But sadly the project is not in elpa... so what should we do for that? >> Because there are multiple functions the flymake code to simplify common >> tasks, but they are intended for private use cases. >> >> It may simplify integration with other build systems like ninja or >> cmake. >> >> So far something like flymake-quickdef, may help... >> >> 2) Is it desirable to add built-in backends to flymake for common/simple >> tools generally available like cppcheck, flake and so on... to improve >> the default experience and minimize configuration? > >I think that is of interest. In Emacs 29 shellcheck was added for >instance, and I don't see why other systems shouldn't be supported >either (setting aside legal issues). > Then I think we should first provide a simpler api that we can maintain better (i.e. bring functions like flymake-collection-define-rx to vanilla) And then we can make a list of the common backends we can support: So far we only need to give a look to the backends supported by flycheck. >> Best, >> Ergus