You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
618 B
29 lines
618 B
# See utils/checkpackagelib/readme.txt before editing this file.
|
|
import re
|
|
|
|
|
|
class _CheckFunction(object):
|
|
def __init__(self, filename, url_to_manual):
|
|
self.filename = filename
|
|
self.url_to_manual = url_to_manual
|
|
self.disable = re.compile(r"^\s*# check-package .*\b{}\b".format(self.__class__.__name__))
|
|
|
|
def before(self):
|
|
pass
|
|
|
|
def check_line(self, lineno, text):
|
|
pass
|
|
|
|
def after(self):
|
|
pass
|
|
|
|
|
|
class _Tool(object):
|
|
def __init__(self, filename):
|
|
self.filename = filename
|
|
|
|
def run(self):
|
|
pass
|
|
|
|
def hint(self):
|
|
return ""
|
|
|