-
Found this bug while investigating #1058
Given this config.reek:
``` yaml
---
UncommunicativeVariableName:
accept:
- /\d+$/
```
this:
``` Ruby
def foo; x1 = 2; end
```
shouldn't smell of Un…
-
This
``` Ruby
class Dummy
def m1(a)
return true if a.respond_to?(:to_a)
false if a.respond_to?(:to_s)
end
end
```
will report ManualDispatch once for the first respond_to? w…
-
The new `&.` operator (https://github.com/ruby/ruby/commit/a356fe1c3550892902103f66928426ac8279e072, https://github.com/ruby/ruby/commit/0b7d473734d0dec8520afe7a36540aa1f40d2532, https://github.com/ru…
-
I see 2 huge problems at the moment:
1.) Something like
> > ```
> > # :reek:DuplicateMethodCall: { wtf is this!? }
> > ```
is a **valid** expression looking at our [comment regex](https://github.…
-
Given
``` Ruby
class Parent
def initialize(omg)
@omg = omg
end
end
class Child < Parent
def initialize(omg)
super
end
def foo
@omg
end
end
```
Reek would report:
> > [7]…
-
I'm defining a set of methods inside a module via
``` ruby
module Foo
module Bar
extend self
def do_stuff
# things
end
end
end
```
Reek triggers the UtilityFunction smell on t…
-
Completely unrelated to @waldyr 's [PR](https://github.com/troessner/reek/pull/959/files) but honest to god, our spec set up is a huge pain in the ass sometimes.
When one isolated change like a new sm…
-
Hi,
I'm an engineer at @codeclimate, and we've recently gotten some customer confusion from PR comparisons sometimes showing the same effective issue as both "fixed" and "new" on some issues from Ree…
-
Here's the exception from Reek:
```
!!!
Source /dropbox/cosi105b_jramirez/pa-ims/artist.rb can not be processed by Reek.
This is most likely a Reek bug.
It would be great if you cou…
-
Coming from #942 and #953 we agreed on the following:
We have smell detectors sometimes failing for unexpected reasons, and Reek aborts.
In order to be able to drill down to the root of this problem …