from coalib.bearlib.abstractions.Linter import linter


@linter(executable='sqlint', use_stdin=True, output_format="regex",
        output_regex=r'.+:(?P<line>\d+):(?P<column>\d+):'
                     r'(?P<severity>ERROR|WARNING) (?P<message>(?:\s*.+)*)')
class SQLintBear:
    """
    Checks the given file using ``sqlint``.
    """

    @staticmethod
    def create_arguments(filename, file, config_file):
        return ()

@@ -287,17 +287,16 @@
    Check
-s
  the giv
@@ -302,38 +302,200 @@
 ven 
-file using %60%60sqlint%60%60.%0A    %22%22%22
+SQL files for syntax errors or warnings.%0A%0A    This bear supports ANSI syntax. Check out%0A    %3Chttps://github.com/purcell/sqlint%3E for more detailed information.%0A    %22%22%22%0A%0A    LANGUAGES = (%22SQL%22,)
 %0A%0A  

Improve documentation