twisted / twistedchecker

twistedchecker is a tool to automatically verify code against the Twisted coding standard.
MIT License
9 stars 13 forks source link

twistedchecker always reports errors in interface definitions #37

Open ghost opened 10 years ago

ghost commented 10 years ago

W9016: Too many blank lines after docstring, found 2 or W9012: Expected 2 blank lines, found 1

I'm not sure which is the correct behavior.


Imported from Launchpad using lp2gh.

ghost commented 10 years ago

(by tom.prince) W9012 is the correct error.

ghost commented 10 years ago

(by lvh) This also happened to me for a base implementation of something that just has stub methods, so I guess the issue is that it doesn't deal well with functions with empty bodies.

ghost commented 10 years ago

(by hawkowl) This bug seems to be connected to the newline checking not working at all previously - if there's an example that it fails on, point me at it, and I'll double check.

adiroiban commented 9 years ago

+1 for hawkowl comment.

Please provide an example so that we can investigate this.

Thanks!