GNU bug report logs -
#31760
26.1; ruby-mode enables flymake-rubocop by default if the rubocop executable exists
Previous Next
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
View this message in rfc822 format
[Message part 1 (text/plain, inline)]
Why would have RuboCop installed and not what to use it?
I think the check is perfectly fine in its current state, especially given
the fact that you can simply disable RuboCop with the defcustom mentioned.
> Since most if not all of the warnings that
>> Rubocop generates are not raised by Ruby I consider them not adopted by
>> the Ruby community by default.
You know this thing is configurable, right? ;-) The vast majority of checks
are actually pretty much community standard - Ruby produces only a minimal
amount of lint warnings, RuboCop has extended linting but also a lot of
code style checking functionality.
I don't really want us to check for RuboCop config files (those are
hierarchical and won't necessarily be in the root of your current project
anyways) - I think the current check + config is sufficient.
On Fri, 15 Jun 2018 at 17:16, Dmitry Gutov <dgutov <at> yandex.ru> wrote:
> On 6/8/18 9:42 PM, João Távora wrote:
> > Petko Bordjukov <bordjukov <at> gmail.com> writes:
> >
> >> Emacs 26.1 enables flymake-rubocop by default if the rubocop executable
> >> is present in the system. Since most if not all of the warnings that
> >> Rubocop generates are not raised by Ruby I consider them not adopted by
> >> the Ruby community by default. Based on that, I propose that either
> >> using Rubocop by default is turned off, or at least a more inteligent
> >> per-project Rubocop detection scheme is implemented.
> >>
> > Paging Dmitry :-)
>
> So... First of all, there is the variable
> ruby-flymake-use-rubocop-if-available, to satisfy the individual
> preference to turn Rubocop off.
>
> Second, what kind of per-project detection scheme? I suppose we can
> abort if no ruby-rubocop-config file is found. That would certainly work
> for me, but would maybe conflict with the general usage of Rubocop out
> there (but probably not).
>
> Maybe Bozhidar has something to say on this?
>
[Message part 2 (text/html, inline)]
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.