From: Alexis Laferrière Date: Sun, 15 Jun 2014 13:29:54 +0000 (-0400) Subject: pep8analysis: intro a feature to clear the list of errors/notes X-Git-Tag: v0.6.6~24^2~8 X-Git-Url: http://nitlanguage.org pep8analysis: intro a feature to clear the list of errors/notes Signed-off-by: Alexis Laferrière --- diff --git a/contrib/pep8analysis/src/backbone.nit b/contrib/pep8analysis/src/backbone.nit index 369c0a7..016369f 100644 --- a/contrib/pep8analysis/src/backbone.nit +++ b/contrib/pep8analysis/src/backbone.nit @@ -28,10 +28,11 @@ abstract class Noter failed = true end - fun reset - do - failed = false - end + # Reset failure status + fun reset do failed = false + + # Clear list of notes + fun clear do notes = new Array[Note] end abstract class Note