summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorDaniël van Noord <13665637+DanielNoord@users.noreply.github.com>2022-04-19 22:24:17 +0200
committerDaniël van Noord <13665637+DanielNoord@users.noreply.github.com>2022-04-19 23:06:09 +0200
commit6b25ff0ad360dd1265a22c396428d2c66960cbcc (patch)
tree98540caced450d0224b1c24cad956f9d35fd6316 /examples
parente8aab74986a99a0616dc6a8ed0bc03dab9a03be8 (diff)
downloadpylint-git-6b25ff0ad360dd1265a22c396428d2c66960cbcc.tar.gz
Subclass ``BaseRawFileChecker`` and ``BaseTokenChecker``
Diffstat (limited to 'examples')
-rw-r--r--examples/custom_raw.py7
1 files changed, 2 insertions, 5 deletions
diff --git a/examples/custom_raw.py b/examples/custom_raw.py
index 365e9b7fa..1cfeae3f9 100644
--- a/examples/custom_raw.py
+++ b/examples/custom_raw.py
@@ -2,20 +2,17 @@ from typing import TYPE_CHECKING
from astroid import nodes
-from pylint.checkers import BaseChecker
-from pylint.interfaces import IRawChecker
+from pylint.checkers import BaseRawFileChecker
if TYPE_CHECKING:
from pylint.lint import PyLinter
-class MyRawChecker(BaseChecker):
+class MyRawChecker(BaseRawFileChecker):
"""Check for line continuations with '\' instead of using triple
quoted string or parenthesis
"""
- __implements__ = IRawChecker
-
name = "custom_raw"
msgs = {
"W9901": (