r-cochran / cuke_sniffer

A ruby library used to root out smells in your cukes.
MIT License
44 stars 28 forks source link

Only partial detection of hooks #93

Open enkessler opened 8 years ago

enkessler commented 8 years ago

Hooks that use brackets instead of do/end for their block are not detected by this tool.

This will trigger a rule:

Before do
  # Will trigger the no begin/rescue rule  
end

But this will not:

Before {
  # Will trigger nothing
}