Move linters into seperate module.

Give linters an abstract type to inherit, since they share an interface.
Add empty README
This commit is contained in:
Joey de l'Arago 2022-11-22 19:26:50 +01:00
parent 91daf89c2d
commit a470f02373
9 changed files with 49 additions and 25 deletions

View file

@ -0,0 +1,14 @@
from abc import ABC, abstractmethod
from typing import Iterator
from ..diagnostic import Diagnostic
class DiagnosticGenerator(ABC):
def __init__(self, file, settings) -> None:
self._settings = settings
self._file = file
@abstractmethod
def check(self) -> Iterator[Diagnostic]:
pass