summaryrefslogtreecommitdiff
path: root/test/messages
diff options
context:
space:
mode:
authorroot <devnull@localhost>2006-04-26 10:48:09 +0000
committerroot <devnull@localhost>2006-04-26 10:48:09 +0000
commiteea76f1da01a33dec2afc42119e001e4350aaea2 (patch)
tree3bb03a16daa8c780bf60c622dc288eb01cfca145 /test/messages
downloadpylint-eea76f1da01a33dec2afc42119e001e4350aaea2.tar.gz
forget the past.
forget the past.
Diffstat (limited to 'test/messages')
-rw-r--r--test/messages/builtin_module.txt1
-rw-r--r--test/messages/func___future___import_not_first_stmt.txt1
-rw-r--r--test/messages/func___name___access.txt3
-rw-r--r--test/messages/func_attrs_definition_order.txt1
-rw-r--r--test/messages/func_bad_assigment_to_exception_var.txt5
-rw-r--r--test/messages/func_base_stmt_without_effect.txt3
-rw-r--r--test/messages/func_block_disable_msg.txt9
-rw-r--r--test/messages/func_class_members.txt3
-rw-r--r--test/messages/func_continue_not_in_loop.txt2
-rw-r--r--test/messages/func_dangerous_default.txt2
-rw-r--r--test/messages/func_docstring.txt4
-rw-r--r--test/messages/func_dotted_ancestor.txt1
-rw-r--r--test/messages/func_e0011.txt1
-rw-r--r--test/messages/func_e0012.txt1
-rw-r--r--test/messages/func_e0101.txt1
-rw-r--r--test/messages/func_e0203.txt2
-rw-r--r--test/messages/func_e0204.txt3
-rw-r--r--test/messages/func_e0205.txt2
-rw-r--r--test/messages/func_e0206.txt3
-rw-r--r--test/messages/func_e0214.txt2
-rw-r--r--test/messages/func_e0601.txt1
-rw-r--r--test/messages/func_empty_module.txt2
-rw-r--r--test/messages/func_exceptions_raise_type_error.txt2
-rw-r--r--test/messages/func_f0001.txt1
-rw-r--r--test/messages/func_f0401.txt2
-rw-r--r--test/messages/func_fixme.txt2
-rw-r--r--test/messages/func_format.txt25
-rw-r--r--test/messages/func_globals.txt6
-rw-r--r--test/messages/func_i0010.txt1
-rw-r--r--test/messages/func_i0011.txt2
-rw-r--r--test/messages/func_i0012.txt2
-rw-r--r--test/messages/func_indent.txt3
-rw-r--r--test/messages/func_init_vars.txt1
-rw-r--r--test/messages/func_interfaces.txt5
-rw-r--r--test/messages/func_method_could_be_function.txt1
-rw-r--r--test/messages/func_method_missing_self.txt1
-rw-r--r--test/messages/func_method_without_self_but_self_assignment.txt2
-rw-r--r--test/messages/func_nameerror_on_string_substitution.txt2
-rw-r--r--test/messages/func_names_imported_from_module.txt8
-rw-r--r--test/messages/func_newstyle___slots__.txt1
-rw-r--r--test/messages/func_newstyle_exceptions.txt4
-rw-r--r--test/messages/func_newstyle_property.txt1
-rw-r--r--test/messages/func_newstyle_super.txt4
-rw-r--r--test/messages/func_nonascii_noencoding.txt1
-rw-r--r--test/messages/func_r0901.txt2
-rw-r--r--test/messages/func_r0902.txt1
-rw-r--r--test/messages/func_r0903.txt1
-rw-r--r--test/messages/func_r0904.txt1
-rw-r--r--test/messages/func_r0921.txt1
-rw-r--r--test/messages/func_r0922.txt1
-rw-r--r--test/messages/func_r0923.txt1
-rw-r--r--test/messages/func_reqattrs.txt1
-rw-r--r--test/messages/func_scope_regrtest.txt2
-rw-r--r--test/messages/func_syntax_error.txt2
-rw-r--r--test/messages/func_toolonglines.txt2
-rw-r--r--test/messages/func_typecheck_callfunc_assigment.txt2
-rw-r--r--test/messages/func_typecheck_getattr.txt9
-rw-r--r--test/messages/func_typecheck_non_callable_call.txt6
-rw-r--r--test/messages/func_undefined_var.txt5
-rw-r--r--test/messages/func_unknown_encoding.txt1
-rw-r--r--test/messages/func_unreachable.txt3
-rw-r--r--test/messages/func_use_for_or_listcomp_var.txt3
-rw-r--r--test/messages/func_w0101.txt1
-rw-r--r--test/messages/func_w0102.txt5
-rw-r--r--test/messages/func_w0103.txt1
-rw-r--r--test/messages/func_w0104.txt1
-rw-r--r--test/messages/func_w0105.txt1
-rw-r--r--test/messages/func_w0109.txt1
-rw-r--r--test/messages/func_w0110.txt1
-rw-r--r--test/messages/func_w0111.txt1
-rw-r--r--test/messages/func_w0112.txt1
-rw-r--r--test/messages/func_w0122.txt5
-rw-r--r--test/messages/func_w0133.txt9
-rw-r--r--test/messages/func_w0151.txt2
-rw-r--r--test/messages/func_w0152.txt3
-rw-r--r--test/messages/func_w0202.txt3
-rw-r--r--test/messages/func_w0205.txt2
-rw-r--r--test/messages/func_w0223.txt2
-rw-r--r--test/messages/func_w0231.txt2
-rw-r--r--test/messages/func_w0233.txt1
-rw-r--r--test/messages/func_w0302.txt2
-rw-r--r--test/messages/func_w0312.txt2
-rw-r--r--test/messages/func_w0331.txt1
-rw-r--r--test/messages/func_w0332.txt1
-rw-r--r--test/messages/func_w0401.txt2
-rw-r--r--test/messages/func_w0402.txt2
-rw-r--r--test/messages/func_w0403.txt1
-rw-r--r--test/messages/func_w0404.txt1
-rw-r--r--test/messages/func_w0405.txt4
-rw-r--r--test/messages/func_w0406.txt2
-rw-r--r--test/messages/func_w0611.txt1
-rw-r--r--test/messages/func_w0612.txt1
-rw-r--r--test/messages/func_w0613.txt2
-rw-r--r--test/messages/func_w0622.txt2
-rw-r--r--test/messages/func_w0701.txt3
-rw-r--r--test/messages/func_w0702.txt1
-rw-r--r--test/messages/func_w0703.txt1
-rw-r--r--test/messages/func_w0704.txt1
-rw-r--r--test/messages/func_w0705.txt5
-rw-r--r--test/messages/func_w0801.txt11
-rw-r--r--test/messages/func_wrong_encoding.txt1
-rw-r--r--test/messages/nonexistant.txt1
-rw-r--r--test/messages/nonexistant.txt21
103 files changed, 265 insertions, 0 deletions
diff --git a/test/messages/builtin_module.txt b/test/messages/builtin_module.txt
new file mode 100644
index 0000000..8829318
--- /dev/null
+++ b/test/messages/builtin_module.txt
@@ -0,0 +1 @@
+F: 0: ignored builtin module sys
diff --git a/test/messages/func___future___import_not_first_stmt.txt b/test/messages/func___future___import_not_first_stmt.txt
new file mode 100644
index 0000000..ff96b55
--- /dev/null
+++ b/test/messages/func___future___import_not_first_stmt.txt
@@ -0,0 +1 @@
+W: 4: __future__ import is not the first non docstring statement
diff --git a/test/messages/func___name___access.txt b/test/messages/func___name___access.txt
new file mode 100644
index 0000000..51aeeaa
--- /dev/null
+++ b/test/messages/func___name___access.txt
@@ -0,0 +1,3 @@
+E: 11:Aaaa.__init__: Instance of 'Aaaa' has no '__name__' member
+E: 21:NewClass.__init__: Instance of 'NewClass' has no '__name__' member
+
diff --git a/test/messages/func_attrs_definition_order.txt b/test/messages/func_attrs_definition_order.txt
new file mode 100644
index 0000000..895c315
--- /dev/null
+++ b/test/messages/func_attrs_definition_order.txt
@@ -0,0 +1 @@
+E: 9:Aaaa.__init__: Access to member '_var2' before its definition line 10
diff --git a/test/messages/func_bad_assigment_to_exception_var.txt b/test/messages/func_bad_assigment_to_exception_var.txt
new file mode 100644
index 0000000..9b9bc02
--- /dev/null
+++ b/test/messages/func_bad_assigment_to_exception_var.txt
@@ -0,0 +1,5 @@
+W: 11: Identifier e used to raise an exception is assigned to 1 line 7
+W: 15: Identifier e2 used to raise an exception is assigned to 'yo' line 8
+W: 20:func: Identifier e3 used to raise an exception is assigned to None
+W: 30: Identifier e3 used to raise an exception is assigned to None
+
diff --git a/test/messages/func_base_stmt_without_effect.txt b/test/messages/func_base_stmt_without_effect.txt
new file mode 100644
index 0000000..b50fd82
--- /dev/null
+++ b/test/messages/func_base_stmt_without_effect.txt
@@ -0,0 +1,3 @@
+W: 9: Statement seems to have no effect
+W: 11: Statement seems to have no effect
+W: 15: Statement seems to have no effect
diff --git a/test/messages/func_block_disable_msg.txt b/test/messages/func_block_disable_msg.txt
new file mode 100644
index 0000000..0019f03
--- /dev/null
+++ b/test/messages/func_block_disable_msg.txt
@@ -0,0 +1,9 @@
+E: 26:Foo.meth3: Instance of 'Foo' has no 'blop' member
+E: 36:Foo.meth4: Instance of 'Foo' has no 'blip' member
+E: 46:Foo.meth5: Instance of 'Foo' has no 'blip' member
+E: 61:Foo.meth6: Instance of 'Foo' has no 'blip' member
+E: 72:Foo.meth7: Instance of 'Foo' has no 'blip' member
+E: 75:Foo.meth7: Instance of 'Foo' has no 'blip' member
+E: 77:Foo.meth7: Instance of 'Foo' has no 'blip' member
+E: 83:Foo.meth8: Instance of 'Foo' has no 'blip' member
+W: 11:Foo.meth1: Unused argument 'arg'
diff --git a/test/messages/func_class_members.txt b/test/messages/func_class_members.txt
new file mode 100644
index 0000000..ba2c639
--- /dev/null
+++ b/test/messages/func_class_members.txt
@@ -0,0 +1,3 @@
+E: 16:MyClass.test: Instance of 'MyClass' has no 'incorrect' member
+E: 17:MyClass.test: Instance of 'MyClass' has no 'nonexistent1' member
+E: 18:MyClass.test: Instance of 'MyClass' has no 'nonexistent2' member
diff --git a/test/messages/func_continue_not_in_loop.txt b/test/messages/func_continue_not_in_loop.txt
new file mode 100644
index 0000000..d3a3183
--- /dev/null
+++ b/test/messages/func_continue_not_in_loop.txt
@@ -0,0 +1,2 @@
+E: 8:run: 'continue' not properly in loop
+E: 10:run: 'break' not properly in loop
diff --git a/test/messages/func_dangerous_default.txt b/test/messages/func_dangerous_default.txt
new file mode 100644
index 0000000..21d32e0
--- /dev/null
+++ b/test/messages/func_dangerous_default.txt
@@ -0,0 +1,2 @@
+W: 7:function1: Dangerous default value [] as argument
+W: 11:function2: Dangerous default value HEHE ({}) as argument
diff --git a/test/messages/func_docstring.txt b/test/messages/func_docstring.txt
new file mode 100644
index 0000000..d379392
--- /dev/null
+++ b/test/messages/func_docstring.txt
@@ -0,0 +1,4 @@
+C: 0: Missing docstring
+C: 5:function1: Missing docstring
+C: 17:AAAA: Missing docstring
+C: 33:AAAA.method1: Missing docstring
diff --git a/test/messages/func_dotted_ancestor.txt b/test/messages/func_dotted_ancestor.txt
new file mode 100644
index 0000000..84247b8
--- /dev/null
+++ b/test/messages/func_dotted_ancestor.txt
@@ -0,0 +1 @@
+R: 8:Aaaa: Not enough public methods (0/2)
diff --git a/test/messages/func_e0011.txt b/test/messages/func_e0011.txt
new file mode 100644
index 0000000..55f07b1
--- /dev/null
+++ b/test/messages/func_e0011.txt
@@ -0,0 +1 @@
+E: 1: Unrecognized file option 'bouboule'
diff --git a/test/messages/func_e0012.txt b/test/messages/func_e0012.txt
new file mode 100644
index 0000000..a6d1b69
--- /dev/null
+++ b/test/messages/func_e0012.txt
@@ -0,0 +1 @@
+E: 1: Bad option value 'W04044'
diff --git a/test/messages/func_e0101.txt b/test/messages/func_e0101.txt
new file mode 100644
index 0000000..53d007d
--- /dev/null
+++ b/test/messages/func_e0101.txt
@@ -0,0 +1 @@
+E: 10:MyClass.__init__: Explicit return in __init__
diff --git a/test/messages/func_e0203.txt b/test/messages/func_e0203.txt
new file mode 100644
index 0000000..869cf22
--- /dev/null
+++ b/test/messages/func_e0203.txt
@@ -0,0 +1,2 @@
+C: 12:Abcd.abcd: Class method should have "cls" as first argument
+
diff --git a/test/messages/func_e0204.txt b/test/messages/func_e0204.txt
new file mode 100644
index 0000000..8e05efe
--- /dev/null
+++ b/test/messages/func_e0204.txt
@@ -0,0 +1,3 @@
+E: 10:Abcd.__init__: Method should have "self" as first argument
+E: 14:Abcd.abdc: Method should have "self" as first argument
+
diff --git a/test/messages/func_e0205.txt b/test/messages/func_e0205.txt
new file mode 100644
index 0000000..1adf408
--- /dev/null
+++ b/test/messages/func_e0205.txt
@@ -0,0 +1,2 @@
+E: 14:Cdef.abcd: An attribute inherited from Abcd hide this method
+
diff --git a/test/messages/func_e0206.txt b/test/messages/func_e0206.txt
new file mode 100644
index 0000000..c15f841
--- /dev/null
+++ b/test/messages/func_e0206.txt
@@ -0,0 +1,3 @@
+E: 6:Abcd: Interface resolved to None is not a class
+E: 13:Cdef: Interface resolved to None is not a class
+
diff --git a/test/messages/func_e0214.txt b/test/messages/func_e0214.txt
new file mode 100644
index 0000000..e3fb5f5
--- /dev/null
+++ b/test/messages/func_e0214.txt
@@ -0,0 +1,2 @@
+C: 11:MetaClass.whatever: Metaclass method should have "mcs" as first argument
+
diff --git a/test/messages/func_e0601.txt b/test/messages/func_e0601.txt
new file mode 100644
index 0000000..321c731
--- /dev/null
+++ b/test/messages/func_e0601.txt
@@ -0,0 +1 @@
+E: 8:function: Using variable 'aaaa' before assignment
diff --git a/test/messages/func_empty_module.txt b/test/messages/func_empty_module.txt
new file mode 100644
index 0000000..2a8190d
--- /dev/null
+++ b/test/messages/func_empty_module.txt
@@ -0,0 +1,2 @@
+C: 0: Missing docstring
+C: 0: Missing required attribute "__revision__"
diff --git a/test/messages/func_exceptions_raise_type_error.txt b/test/messages/func_exceptions_raise_type_error.txt
new file mode 100644
index 0000000..8ac5778
--- /dev/null
+++ b/test/messages/func_exceptions_raise_type_error.txt
@@ -0,0 +1,2 @@
+E: 11: Raising int while only classes, instances or string are allowed
+E: 14: Raising None while only classes, instances or string are allowed \ No newline at end of file
diff --git a/test/messages/func_f0001.txt b/test/messages/func_f0001.txt
new file mode 100644
index 0000000..87c315d
--- /dev/null
+++ b/test/messages/func_f0001.txt
@@ -0,0 +1 @@
+W: 3: Unused import whatever
diff --git a/test/messages/func_f0401.txt b/test/messages/func_f0401.txt
new file mode 100644
index 0000000..1ae5ea4
--- /dev/null
+++ b/test/messages/func_f0401.txt
@@ -0,0 +1,2 @@
+F: 8:function: Unable to import 'tutu.toto' (No module named tutu)
+
diff --git a/test/messages/func_fixme.txt b/test/messages/func_fixme.txt
new file mode 100644
index 0000000..2544ce8
--- /dev/null
+++ b/test/messages/func_fixme.txt
@@ -0,0 +1,2 @@
+W: 5: FIXME: beep
+W: 8: XXX:bop'''
diff --git a/test/messages/func_format.txt b/test/messages/func_format.txt
new file mode 100644
index 0000000..c87d01d
--- /dev/null
+++ b/test/messages/func_format.txt
@@ -0,0 +1,25 @@
+C: 6: Operator not preceded by a space
+notpreceded= 1
+ ^
+C: 7: Operator not followed by a space
+notfollowed =1
+ ^
+C: 8: Operator not followed by a space
+notfollowed <=1
+ ^^
+C: 19: Comma not followed by a space
+aaaa,bbbb = 1,2
+ ^^
+C: 24: More than one statement on a single line
+C: 26: Comma not followed by a space
+ aaaa,bbbb = 1,2
+ ^^
+C: 27: Comma not followed by a space
+ aaaa,bbbb = bbbb,aaaa
+ ^^
+C: 29: Comma not followed by a space
+bbbb = (1,2,3)
+ ^^
+C: 51:other: Operator not preceded by a space
+ funky= funky+2
+ ^
diff --git a/test/messages/func_globals.txt b/test/messages/func_globals.txt
new file mode 100644
index 0000000..40963f2
--- /dev/null
+++ b/test/messages/func_globals.txt
@@ -0,0 +1,6 @@
+E: 27: Undefined variable 'CSTE'
+E: 32:other: Undefined variable 'HOP'
+W: 23:fix_contant: Using the global statement
+W: 26: Using the global statement at the module level
+W: 31:other: Using global for 'HOP' but no assigment is done
+W: 39:define_constant: Global variable 'somevar' undefined at the module level
diff --git a/test/messages/func_i0010.txt b/test/messages/func_i0010.txt
new file mode 100644
index 0000000..315f701
--- /dev/null
+++ b/test/messages/func_i0010.txt
@@ -0,0 +1 @@
+I: 1: Unable to consider inline option 'disable-all'
diff --git a/test/messages/func_i0011.txt b/test/messages/func_i0011.txt
new file mode 100644
index 0000000..e4d2975
--- /dev/null
+++ b/test/messages/func_i0011.txt
@@ -0,0 +1,2 @@
+I: 1: Locally disabling 'W0404'
+
diff --git a/test/messages/func_i0012.txt b/test/messages/func_i0012.txt
new file mode 100644
index 0000000..0bb035c
--- /dev/null
+++ b/test/messages/func_i0012.txt
@@ -0,0 +1,2 @@
+I: 1: Locally enabling 'W0404'
+
diff --git a/test/messages/func_indent.txt b/test/messages/func_indent.txt
new file mode 100644
index 0000000..aa3645f
--- /dev/null
+++ b/test/messages/func_indent.txt
@@ -0,0 +1,3 @@
+W: 5: Bad indentation. Found 1 spaces, expected 4
+W: 6: Bad indentation. Found 1 spaces, expected 4
+W: 13: Bad indentation. Found 5 spaces, expected 4
diff --git a/test/messages/func_init_vars.txt b/test/messages/func_init_vars.txt
new file mode 100644
index 0000000..44ef6f3
--- /dev/null
+++ b/test/messages/func_init_vars.txt
@@ -0,0 +1 @@
+W: 18:MyClass.met: Attribute 'base_var' defined outside __init__
diff --git a/test/messages/func_interfaces.txt b/test/messages/func_interfaces.txt
new file mode 100644
index 0000000..546acdd
--- /dev/null
+++ b/test/messages/func_interfaces.txt
@@ -0,0 +1,5 @@
+E: 46:MissingMethod: Missing method 'truc' from IMachin interface
+E: 77:InterfaceCantBeFound: Undefined variable 'undefined'
+F: 77:InterfaceCantBeFound: failed to resolve interfaces implemented by InterfaceCantBeFound (undefined)
+F: 90:InterfaceCantBeFound2: failed to resolve interfaces implemented by InterfaceCantBeFound2 ((BadArgument.__implements__) + (Correct2.__implements__))
+W: 71:BadArgument.troc: Arguments number differs from IMachin interface method
diff --git a/test/messages/func_method_could_be_function.txt b/test/messages/func_method_could_be_function.txt
new file mode 100644
index 0000000..1def89e
--- /dev/null
+++ b/test/messages/func_method_could_be_function.txt
@@ -0,0 +1 @@
+R: 16:Toto.function_method: Method could be a function
diff --git a/test/messages/func_method_missing_self.txt b/test/messages/func_method_missing_self.txt
new file mode 100644
index 0000000..861871f
--- /dev/null
+++ b/test/messages/func_method_missing_self.txt
@@ -0,0 +1 @@
+E: 14:MyClass.met: Method has no argument
diff --git a/test/messages/func_method_without_self_but_self_assignment.txt b/test/messages/func_method_without_self_but_self_assignment.txt
new file mode 100644
index 0000000..da5ee02
--- /dev/null
+++ b/test/messages/func_method_without_self_but_self_assignment.txt
@@ -0,0 +1,2 @@
+E: 13:Example.setup: Method has no argument
+E: 15:Example.setup: Undefined variable 'self'
diff --git a/test/messages/func_nameerror_on_string_substitution.txt b/test/messages/func_nameerror_on_string_substitution.txt
new file mode 100644
index 0000000..aab2102
--- /dev/null
+++ b/test/messages/func_nameerror_on_string_substitution.txt
@@ -0,0 +1,2 @@
+E: 5: Using variable 'MSG' before assignment
+E: 8: Using variable 'MSG2' before assignment
diff --git a/test/messages/func_names_imported_from_module.txt b/test/messages/func_names_imported_from_module.txt
new file mode 100644
index 0000000..62b0344
--- /dev/null
+++ b/test/messages/func_names_imported_from_module.txt
@@ -0,0 +1,8 @@
+E: 6: No name 'tutu' in module 'logilab.common'
+E: 7: No name 'toto' in module 'logilab.common'
+E: 11: Module 'logilab.common.modutils' has no 'nonexistant_function' member
+E: 12: Module 'logilab.common.modutils' has no 'another' member
+E: 13: Module 'logilab.common.modutils' has no 'yo' member
+E: 17: Module 'sys' has no 'stdoout' member
+E: 24: No name 'compiile' in module 're'
+E: 24: No name 'findiiter' in module 're'
diff --git a/test/messages/func_newstyle___slots__.txt b/test/messages/func_newstyle___slots__.txt
new file mode 100644
index 0000000..be6b8d1
--- /dev/null
+++ b/test/messages/func_newstyle___slots__.txt
@@ -0,0 +1 @@
+E: 10:HaNonNonNon: Use __slots__ on an old style class
diff --git a/test/messages/func_newstyle_exceptions.txt b/test/messages/func_newstyle_exceptions.txt
new file mode 100644
index 0000000..d92e3bf
--- /dev/null
+++ b/test/messages/func_newstyle_exceptions.txt
@@ -0,0 +1,4 @@
+E: 25:fonctionNew: Raising a new style class
+E: 33:fonctionNew2: Raising a new style class
+W: 21:fonctionBof: Exception doesn't inherit from standard "Exception" class
+W: 29:fonctionBof2: Exception doesn't inherit from standard "Exception" class
diff --git a/test/messages/func_newstyle_property.txt b/test/messages/func_newstyle_property.txt
new file mode 100644
index 0000000..f0ef261
--- /dev/null
+++ b/test/messages/func_newstyle_property.txt
@@ -0,0 +1 @@
+W: 16:HaNonNonNon: Use of "property" on an old style class
diff --git a/test/messages/func_newstyle_super.txt b/test/messages/func_newstyle_super.txt
new file mode 100644
index 0000000..d0cdf78
--- /dev/null
+++ b/test/messages/func_newstyle_super.txt
@@ -0,0 +1,4 @@
+E: 7:Aaaa.hop: Use super on an old style class
+E: 11:Aaaa.__init__: Use super on an old style class
+E: 20:NewAaaa.__init__: Bad first argument 'object' given to super class
+
diff --git a/test/messages/func_nonascii_noencoding.txt b/test/messages/func_nonascii_noencoding.txt
new file mode 100644
index 0000000..dd68a3c
--- /dev/null
+++ b/test/messages/func_nonascii_noencoding.txt
@@ -0,0 +1 @@
+E: 1: Non ascii characters found but no encoding specified (PEP 263)
diff --git a/test/messages/func_r0901.txt b/test/messages/func_r0901.txt
new file mode 100644
index 0000000..d20460e
--- /dev/null
+++ b/test/messages/func_r0901.txt
@@ -0,0 +1,2 @@
+R: 22:Iiii: Too many ancestors (8/7)
+R: 25:Jjjj: Too many ancestors (9/7)
diff --git a/test/messages/func_r0902.txt b/test/messages/func_r0902.txt
new file mode 100644
index 0000000..5dcb669
--- /dev/null
+++ b/test/messages/func_r0902.txt
@@ -0,0 +1 @@
+R: 5:Aaaa: Too many instance attributes (21/7)
diff --git a/test/messages/func_r0903.txt b/test/messages/func_r0903.txt
new file mode 100644
index 0000000..6ab8888
--- /dev/null
+++ b/test/messages/func_r0903.txt
@@ -0,0 +1 @@
+R: 4:Aaaa: Not enough public methods (1/2)
diff --git a/test/messages/func_r0904.txt b/test/messages/func_r0904.txt
new file mode 100644
index 0000000..76baf72
--- /dev/null
+++ b/test/messages/func_r0904.txt
@@ -0,0 +1 @@
+R: 4:Aaaa: Too many public methods (21/20)
diff --git a/test/messages/func_r0921.txt b/test/messages/func_r0921.txt
new file mode 100644
index 0000000..7e9a442
--- /dev/null
+++ b/test/messages/func_r0921.txt
@@ -0,0 +1 @@
+R: 4:Aaaa: Abstract class not referenced
diff --git a/test/messages/func_r0922.txt b/test/messages/func_r0922.txt
new file mode 100644
index 0000000..70319ee
--- /dev/null
+++ b/test/messages/func_r0922.txt
@@ -0,0 +1 @@
+R: 4:Aaaa: Abstract class is only referenced 1 times
diff --git a/test/messages/func_r0923.txt b/test/messages/func_r0923.txt
new file mode 100644
index 0000000..11ee61d
--- /dev/null
+++ b/test/messages/func_r0923.txt
@@ -0,0 +1 @@
+R: 6:IAaaa: Interface not implemented
diff --git a/test/messages/func_reqattrs.txt b/test/messages/func_reqattrs.txt
new file mode 100644
index 0000000..7e99095
--- /dev/null
+++ b/test/messages/func_reqattrs.txt
@@ -0,0 +1 @@
+C: 0: Missing required attribute "__revision__"
diff --git a/test/messages/func_scope_regrtest.txt b/test/messages/func_scope_regrtest.txt
new file mode 100644
index 0000000..27ae207
--- /dev/null
+++ b/test/messages/func_scope_regrtest.txt
@@ -0,0 +1,2 @@
+E: 12:Well.Sub: Undefined variable 'Data'
+E: 15:Well.func: Undefined variable 'Sub'
diff --git a/test/messages/func_syntax_error.txt b/test/messages/func_syntax_error.txt
new file mode 100644
index 0000000..deee535
--- /dev/null
+++ b/test/messages/func_syntax_error.txt
@@ -0,0 +1,2 @@
+E: 1: invalid syntax
+
diff --git a/test/messages/func_toolonglines.txt b/test/messages/func_toolonglines.txt
new file mode 100644
index 0000000..29b16c6
--- /dev/null
+++ b/test/messages/func_toolonglines.txt
@@ -0,0 +1,2 @@
+C: 1: Line too long (90/80)
+C: 2: Line too long (94/80)
diff --git a/test/messages/func_typecheck_callfunc_assigment.txt b/test/messages/func_typecheck_callfunc_assigment.txt
new file mode 100644
index 0000000..96ad43e
--- /dev/null
+++ b/test/messages/func_typecheck_callfunc_assigment.txt
@@ -0,0 +1,2 @@
+E: 20: Assigning to function call which doesn't return
+W: 28: Assigning to function call which only returns None
diff --git a/test/messages/func_typecheck_getattr.txt b/test/messages/func_typecheck_getattr.txt
new file mode 100644
index 0000000..6aa34d8
--- /dev/null
+++ b/test/messages/func_typecheck_getattr.txt
@@ -0,0 +1,9 @@
+E: 25:Client.__init__: Class 'Provider' has no 'cattribute' member
+E: 30:Client.use_method: Instance of 'Provider' has no 'hophophop' member
+E: 35:Client.use_attr: Instance of 'Provider' has no 'attribute' member
+E: 47:Client.test_bt_types: Instance of 'list' has no 'apppend' member
+E: 49:Client.test_bt_types: Instance of 'dict' has no 'set' member
+E: 51:Client.test_bt_types: Instance of 'tuple' has no 'append' member
+E: 53:Client.test_bt_types: Instance of 'str' has no 'loower' member
+E: 55:Client.test_bt_types: Instance of 'unicode' has no 'loower' member
+E: 57:Client.test_bt_types: Instance of 'int' has no 'whatever' member \ No newline at end of file
diff --git a/test/messages/func_typecheck_non_callable_call.txt b/test/messages/func_typecheck_non_callable_call.txt
new file mode 100644
index 0000000..0218074
--- /dev/null
+++ b/test/messages/func_typecheck_non_callable_call.txt
@@ -0,0 +1,6 @@
+E: 10: __revision__ is not callable
+E: 29: INSTANCE is not callable
+E: 31: LIST is not callable
+E: 33: DICT is not callable
+E: 35: TUPLE is not callable
+E: 37: INT is not callable
diff --git a/test/messages/func_undefined_var.txt b/test/messages/func_undefined_var.txt
new file mode 100644
index 0000000..07666f7
--- /dev/null
+++ b/test/messages/func_undefined_var.txt
@@ -0,0 +1,5 @@
+E: 8: Undefined variable 'unknown'
+E: 14:in_method: Undefined variable 'nomoreknown'
+E: 22:bad_default: Undefined variable 'unknown2'
+E: 25:bad_default: Undefined variable 'xxxx'
+E: 26:bad_default: Undefined variable 'xxxx'
diff --git a/test/messages/func_unknown_encoding.txt b/test/messages/func_unknown_encoding.txt
new file mode 100644
index 0000000..648af39
--- /dev/null
+++ b/test/messages/func_unknown_encoding.txt
@@ -0,0 +1 @@
+E: 1: Unknown encoding specified (IBO-8859-1)
diff --git a/test/messages/func_unreachable.txt b/test/messages/func_unreachable.txt
new file mode 100644
index 0000000..bb25be0
--- /dev/null
+++ b/test/messages/func_unreachable.txt
@@ -0,0 +1,3 @@
+W: 8:func1: Unreachable code
+W: 14:func2: Unreachable code
+W: 21:func3: Unreachable code
diff --git a/test/messages/func_use_for_or_listcomp_var.txt b/test/messages/func_use_for_or_listcomp_var.txt
new file mode 100644
index 0000000..14d61ad
--- /dev/null
+++ b/test/messages/func_use_for_or_listcomp_var.txt
@@ -0,0 +1,3 @@
+W: 6: Using possibly undefined loop variable 'C'
+W: 15: Using possibly undefined loop variable 'var1'
+
diff --git a/test/messages/func_w0101.txt b/test/messages/func_w0101.txt
new file mode 100644
index 0000000..c42ec2c
--- /dev/null
+++ b/test/messages/func_w0101.txt
@@ -0,0 +1 @@
+R: 6:stupid_function: Too many return statements (11/6)
diff --git a/test/messages/func_w0102.txt b/test/messages/func_w0102.txt
new file mode 100644
index 0000000..40b6190
--- /dev/null
+++ b/test/messages/func_w0102.txt
@@ -0,0 +1,5 @@
+E: 15:AAAA.method2: method already defined line 12
+E: 18:AAAA: class already defined line 5
+E: 32:func2: function already defined line 29
+E: 51:exclusive_func2: function already defined line 45
+W: 34:func2: Redefining name '__revision__' from outer scope (line 3)
diff --git a/test/messages/func_w0103.txt b/test/messages/func_w0103.txt
new file mode 100644
index 0000000..0d6da42
--- /dev/null
+++ b/test/messages/func_w0103.txt
@@ -0,0 +1 @@
+R: 6:stupid_function: Too many arguments (9/5)
diff --git a/test/messages/func_w0104.txt b/test/messages/func_w0104.txt
new file mode 100644
index 0000000..71f6f62
--- /dev/null
+++ b/test/messages/func_w0104.txt
@@ -0,0 +1 @@
+R: 6:stupid_function: Too many local variables (16/15)
diff --git a/test/messages/func_w0105.txt b/test/messages/func_w0105.txt
new file mode 100644
index 0000000..d664dd4
--- /dev/null
+++ b/test/messages/func_w0105.txt
@@ -0,0 +1 @@
+R: 6:stupid_function: Too many statements (55/50)
diff --git a/test/messages/func_w0109.txt b/test/messages/func_w0109.txt
new file mode 100644
index 0000000..4685d38
--- /dev/null
+++ b/test/messages/func_w0109.txt
@@ -0,0 +1 @@
+C: 6:function: Empty docstring
diff --git a/test/messages/func_w0110.txt b/test/messages/func_w0110.txt
new file mode 100644
index 0000000..28f48aa
--- /dev/null
+++ b/test/messages/func_w0110.txt
@@ -0,0 +1 @@
+C: 8:a: Invalid name "a" (should match [a-z_][a-z0-9_]{2,30}$)
diff --git a/test/messages/func_w0111.txt b/test/messages/func_w0111.txt
new file mode 100644
index 0000000..b2d794b
--- /dev/null
+++ b/test/messages/func_w0111.txt
@@ -0,0 +1 @@
+C: 8:baz: Black listed name "baz"
diff --git a/test/messages/func_w0112.txt b/test/messages/func_w0112.txt
new file mode 100644
index 0000000..19b2da5
--- /dev/null
+++ b/test/messages/func_w0112.txt
@@ -0,0 +1 @@
+R: 6:stupid_function: Too many branches (15/12)
diff --git a/test/messages/func_w0122.txt b/test/messages/func_w0122.txt
new file mode 100644
index 0000000..1522cac
--- /dev/null
+++ b/test/messages/func_w0122.txt
@@ -0,0 +1,5 @@
+W: 5: Use of the exec statement
+W: 6: Use of the exec statement
+W: 8: Use of the exec statement
+W: 12:func: Use of the exec statement
+
diff --git a/test/messages/func_w0133.txt b/test/messages/func_w0133.txt
new file mode 100644
index 0000000..f2929ae
--- /dev/null
+++ b/test/messages/func_w0133.txt
@@ -0,0 +1,9 @@
+C: 8:Run.B: Invalid name "B" (should match [A-Z_][a-zA-Z0-9]+$)
+C: 12:Run: Invalid name "bBb" (should match [a-z_][a-z0-9_]{2,30}$)
+C: 26:HOHOHOHO: Invalid name "HOHOHOHO" (should match [a-z_][a-z0-9_]{2,30}$)
+C: 28:HOHOHOHO: Invalid name "HIHIHI" (should match [a-z_][a-z0-9_]{2,30}$)
+C: 31:xyz: Invalid name "xyz" (should match [A-Z_][a-zA-Z0-9]+$)
+C: 36:xyz.Youplapoum: Invalid name "Youplapoum" (should match [a-z_][a-z0-9_]{2,30}$)
+C: 46: Invalid name "benpasceluila" (should match (([A-Z_][A-Z1-9_]*)|(__.*__))$)
+C: 52:Correct.__init__: Invalid name "_Ca_va_Pas" (should match [a-z_][a-z0-9_]{2,30}$)
+W: 8:Run.B: Unused variable 'B'
diff --git a/test/messages/func_w0151.txt b/test/messages/func_w0151.txt
new file mode 100644
index 0000000..dae33d9
--- /dev/null
+++ b/test/messages/func_w0151.txt
@@ -0,0 +1,2 @@
+W: 4: Used builtin function 'apply'
+W: 6: Used builtin function 'map'
diff --git a/test/messages/func_w0152.txt b/test/messages/func_w0152.txt
new file mode 100644
index 0000000..ddf2d0b
--- /dev/null
+++ b/test/messages/func_w0152.txt
@@ -0,0 +1,3 @@
+W: 5: Used * or ** magic
+W: 14: Used * or ** magic
+
diff --git a/test/messages/func_w0202.txt b/test/messages/func_w0202.txt
new file mode 100644
index 0000000..d10e5bc
--- /dev/null
+++ b/test/messages/func_w0202.txt
@@ -0,0 +1,3 @@
+W: 8:Abcd.method1: Static method with 'self' as first argument
+W: 12:Abcd.method2: Static method with 'cls' as first argument
+
diff --git a/test/messages/func_w0205.txt b/test/messages/func_w0205.txt
new file mode 100644
index 0000000..5edbd0a
--- /dev/null
+++ b/test/messages/func_w0205.txt
@@ -0,0 +1,2 @@
+W: 22:Cdef.abcd: Signature differs from overriden method
+
diff --git a/test/messages/func_w0223.txt b/test/messages/func_w0223.txt
new file mode 100644
index 0000000..ece889b
--- /dev/null
+++ b/test/messages/func_w0223.txt
@@ -0,0 +1,2 @@
+W: 22:Concret: Method 'bbbb' is abstract in class 'Abstract' but is not overriden
+
diff --git a/test/messages/func_w0231.txt b/test/messages/func_w0231.txt
new file mode 100644
index 0000000..84e176d
--- /dev/null
+++ b/test/messages/func_w0231.txt
@@ -0,0 +1,2 @@
+W: 19:CCCC: Class has no __init__ method
+W: 26:ZZZZ.__init__: __init__ method from base class 'BBBB' is not called
diff --git a/test/messages/func_w0233.txt b/test/messages/func_w0233.txt
new file mode 100644
index 0000000..9857aa6
--- /dev/null
+++ b/test/messages/func_w0233.txt
@@ -0,0 +1 @@
+W: 12:AAAA.__init__: __init__ method from a non direct base class 'BBBB' is called
diff --git a/test/messages/func_w0302.txt b/test/messages/func_w0302.txt
new file mode 100644
index 0000000..ae8a99f
--- /dev/null
+++ b/test/messages/func_w0302.txt
@@ -0,0 +1,2 @@
+W: 0: Too many lines in module (1017)
+
diff --git a/test/messages/func_w0312.txt b/test/messages/func_w0312.txt
new file mode 100644
index 0000000..917e8d0
--- /dev/null
+++ b/test/messages/func_w0312.txt
@@ -0,0 +1,2 @@
+W: 10: Found indentation with tabs instead of spaces
+W: 11: Found indentation with tabs instead of spaces
diff --git a/test/messages/func_w0331.txt b/test/messages/func_w0331.txt
new file mode 100644
index 0000000..8134a32
--- /dev/null
+++ b/test/messages/func_w0331.txt
@@ -0,0 +1 @@
+W: 6: Use of the <> operator
diff --git a/test/messages/func_w0332.txt b/test/messages/func_w0332.txt
new file mode 100644
index 0000000..b8984ad
--- /dev/null
+++ b/test/messages/func_w0332.txt
@@ -0,0 +1 @@
+W: 4: Use l as long integer identifier
diff --git a/test/messages/func_w0401.txt b/test/messages/func_w0401.txt
new file mode 100644
index 0000000..9463727
--- /dev/null
+++ b/test/messages/func_w0401.txt
@@ -0,0 +1,2 @@
+R: 0: Cyclic import (input.func_w0401 -> input.w0401_cycle)
+W: 6: Redefining built-in 'input'
diff --git a/test/messages/func_w0402.txt b/test/messages/func_w0402.txt
new file mode 100644
index 0000000..cf06fc4
--- /dev/null
+++ b/test/messages/func_w0402.txt
@@ -0,0 +1,2 @@
+W: 5: Wildcard import input.func_fixme
+
diff --git a/test/messages/func_w0403.txt b/test/messages/func_w0403.txt
new file mode 100644
index 0000000..ef511f7
--- /dev/null
+++ b/test/messages/func_w0403.txt
@@ -0,0 +1 @@
+W: 8: Uses of a deprecated module 'Bastion'
diff --git a/test/messages/func_w0404.txt b/test/messages/func_w0404.txt
new file mode 100644
index 0000000..311056d
--- /dev/null
+++ b/test/messages/func_w0404.txt
@@ -0,0 +1 @@
+W: 6: Relative import 'func_w0302'
diff --git a/test/messages/func_w0405.txt b/test/messages/func_w0405.txt
new file mode 100644
index 0000000..9555dfd
--- /dev/null
+++ b/test/messages/func_w0405.txt
@@ -0,0 +1,4 @@
+W: 9: Reimport 'os' (imported line 6)
+W: 16: Reimport 'exists' (imported line 7)
+W: 21:func: Reimport 'os' (imported line 6)
+W: 23:func: Reimport 're' (imported line 10)
diff --git a/test/messages/func_w0406.txt b/test/messages/func_w0406.txt
new file mode 100644
index 0000000..a1440b9
--- /dev/null
+++ b/test/messages/func_w0406.txt
@@ -0,0 +1,2 @@
+W: 5: Module import itself
+W: 5: Relative import 'func_w0406'
diff --git a/test/messages/func_w0611.txt b/test/messages/func_w0611.txt
new file mode 100644
index 0000000..10952da
--- /dev/null
+++ b/test/messages/func_w0611.txt
@@ -0,0 +1 @@
+W: 4: Unused import os
diff --git a/test/messages/func_w0612.txt b/test/messages/func_w0612.txt
new file mode 100644
index 0000000..b2d9cbb
--- /dev/null
+++ b/test/messages/func_w0612.txt
@@ -0,0 +1 @@
+W: 8:function: Unused variable 'aaaa'
diff --git a/test/messages/func_w0613.txt b/test/messages/func_w0613.txt
new file mode 100644
index 0000000..b658b54
--- /dev/null
+++ b/test/messages/func_w0613.txt
@@ -0,0 +1,2 @@
+W: 7:function: Unused argument 'arg'
+W: 14:AAAA.method: Unused argument 'arg'
diff --git a/test/messages/func_w0622.txt b/test/messages/func_w0622.txt
new file mode 100644
index 0000000..7191347
--- /dev/null
+++ b/test/messages/func_w0622.txt
@@ -0,0 +1,2 @@
+W: 8:function: Redefining built-in 'type'
+W: 11: Redefining built-in 'map'
diff --git a/test/messages/func_w0701.txt b/test/messages/func_w0701.txt
new file mode 100644
index 0000000..677443b
--- /dev/null
+++ b/test/messages/func_w0701.txt
@@ -0,0 +1,3 @@
+W: 8:function1: Raising a string exception
+W: 12:function2: Raising a string exception
+
diff --git a/test/messages/func_w0702.txt b/test/messages/func_w0702.txt
new file mode 100644
index 0000000..ab6d20a
--- /dev/null
+++ b/test/messages/func_w0702.txt
@@ -0,0 +1 @@
+W: 10: No exception's type specified
diff --git a/test/messages/func_w0703.txt b/test/messages/func_w0703.txt
new file mode 100644
index 0000000..e37197a
--- /dev/null
+++ b/test/messages/func_w0703.txt
@@ -0,0 +1 @@
+W: 8: Catch "Exception"
diff --git a/test/messages/func_w0704.txt b/test/messages/func_w0704.txt
new file mode 100644
index 0000000..1eca794
--- /dev/null
+++ b/test/messages/func_w0704.txt
@@ -0,0 +1 @@
+W: 8: Except doesn't do anything
diff --git a/test/messages/func_w0705.txt b/test/messages/func_w0705.txt
new file mode 100644
index 0000000..303e739
--- /dev/null
+++ b/test/messages/func_w0705.txt
@@ -0,0 +1,5 @@
+E: 10: Bad except clauses order (Exception is an ancestor class of TypeError)
+E: 17: Bad except clauses order (LookupError is an ancestor class of IndexError)
+E: 24: Bad except clauses order (LookupError is an ancestor class of IndexError)
+E: 24: Bad except clauses order (NameError is an ancestor class of UnboundLocalError)
+E: 27: Bad except clauses order (empty except clause should always appears last) \ No newline at end of file
diff --git a/test/messages/func_w0801.txt b/test/messages/func_w0801.txt
new file mode 100644
index 0000000..c6ba231
--- /dev/null
+++ b/test/messages/func_w0801.txt
@@ -0,0 +1,11 @@
+R: 0: Similar lines in 2 files
+==input.func_w0801:3
+==input.w0801_same:3
+__revision__ = 'id'
+A = 2
+B = 3
+C = A + B
+# need more than X lines to trigger the message
+C *= 2
+A -= B
+# all this should be detected
diff --git a/test/messages/func_wrong_encoding.txt b/test/messages/func_wrong_encoding.txt
new file mode 100644
index 0000000..10123a1
--- /dev/null
+++ b/test/messages/func_wrong_encoding.txt
@@ -0,0 +1 @@
+E: 1: Wrong encoding specified (UTF-8)
diff --git a/test/messages/nonexistant.txt b/test/messages/nonexistant.txt
new file mode 100644
index 0000000..0ccfb57
--- /dev/null
+++ b/test/messages/nonexistant.txt
@@ -0,0 +1 @@
+F: 0: No module named nonexistant
diff --git a/test/messages/nonexistant.txt2 b/test/messages/nonexistant.txt2
new file mode 100644
index 0000000..ffe19c5
--- /dev/null
+++ b/test/messages/nonexistant.txt2
@@ -0,0 +1 @@
+F: 0: No module named input/nonexistant