GitHub PushEvent at 2014-09-24 10:23:23
Repository: rubocop
Actor: smangelsdorf
Payload: {"shas":[["e2b4450946f16b77088ea7dfe850e790b3ab2451","3e8ef04ebc9202dfd9acf7b95ff970413cbb7dc4@gmail.com","Allow DSL methods to be checked by Metrics cops\n\nThe MethodLength, CyclomaticComplexity and PerceivedComplexity cops\nhaven't been able to check DSL-style methods in RSpec, Sinatra, and\nothers. Especially in the case of Sinatra apps, the content in the DSL\nis the most important part of the app, so it's important that this is\ncheckable.\n\nThis change adds support for a configurable list of DSL methods which\nare treated as methods when running those cops. To be checked, the\nmethods must be invoked with a block and no receiver, and then the\ncontents of the block are considered the \"body\" of the method.","Shaun Mangelsdorf",true]],"size":1,"ref":"refs/heads/dsl-method-length","head":"e2b4450946f16b77088ea7dfe850e790b3ab2451"}