GNU bug report logs - #31760
26.1; ruby-mode enables flymake-rubocop by default if the rubocop executable exists

Previous Next

Package: emacs;

Reported by: Petko Bordjukov <bordjukov <at> gmail.com>

Date: Fri, 8 Jun 2018 18:33:01 UTC

Severity: normal

Found in version 26.1

Fixed in version 27.1

Done: Dmitry Gutov <dgutov <at> yandex.ru>

Bug is archived. No further changes may be made.

Full log


Message #46 received at 31760-done <at> debbugs.gnu.org (full text, mbox):

From: Dmitry Gutov <dgutov <at> yandex.ru>
To: Bozhidar Batsov <bozhidar <at> batsov.com>
Cc: Petko Bordjukov <bordjukov <at> gmail.com>,
 João Távora <joaotavora <at> gmail.com>,
 31760-done <at> debbugs.gnu.org
Subject: Re: bug#31760: 26.1; ruby-mode enables flymake-rubocop by default if
 the rubocop executable exists
Date: Tue, 25 Dec 2018 17:36:34 +0200
Version: 27.1

On 18.06.2018 17:09, Bozhidar Batsov wrote:
> I guess you can just look for .rubocop.yml in the root of the project. 
> That's not a precise way to infer if someone wants to use RuboCop, but 
> it should be good enough for most people (relatively few people have 
> global RuboCop configs).
> 
> I wonder if it won't be good to have a lint-mode only option as well - 
> generally `rubocop --lint` will show only things that are important to 
> fix, but it's much nicer than `ruby -w`. So, I'd still use rubocop for 
> linting if RuboCop is installed and use it for everything else only when 
> the project has some project config.

Thanks, Bozhidar!

I've tried this approach, and it works well. So as of commit 
a361cc88a15e9c39f17145f9acd1ea4a8ca70461, we call rubocop with --lint if 
there's no .rubocop.yml in any parent directory of the current file.

It was an easy tweak.




This bug report was last modified 6 years and 152 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.