Commit Graph

7 Commits

Author SHA1 Message Date
Marcelo Fabri 05eb60a67e Check if spec() is instance method 2017-08-18 12:09:42 +02:00
Marcelo Fabri 084850af7a Alternative approach without ASTRule 2017-08-18 12:09:20 +02:00
Ornithologist Coder 1908160d2b Update Rules file 2017-08-18 11:34:37 +02:00
Ornithologist Coder fe96e4139a Improve validation
* Apply 'cheap' validation earlier. It's not a call to a restrictive
  method, returns no violations.
* But if it it's a call to a restrictive method, then checks if the file
  containts a QuickSpec and if the call is within the bounds of the
  QuickSpec class.
2017-08-18 11:24:03 +02:00
Ornithologist Coder da98afcaf7 Apply code review changes 2017-08-18 11:24:03 +02:00
Ornithologist Coder 339e23070e Rename examples file and update headers 2017-08-18 11:24:03 +02:00
Ornithologist Coder c707adb0d8 Add quick_discouraged_call opt-in rule
Implements #1781 (Method calls and object initialization inside Quick
'describe' and 'context' blocks can be harmful)
2017-08-18 11:24:02 +02:00