summaryrefslogtreecommitdiff
path: root/example-plugin/src/flake8_example_plugin/off_by_default.py
blob: 93dfb38ac91ad9dcd25101184e10c83e12a2f0a0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
"""Our first example plugin."""


class ExampleTwo:
    """Second Example Plugin."""

    name = "off-by-default-example-plugin"
    version = "1.0.0"

    off_by_default = True

    def __init__(self, tree):
        self.tree = tree

    def run(self):
        """Do nothing."""
        yield (
            1,
            0,
            "X200 The off-by-default plugin was enabled",
            "OffByDefaultPlugin",
        )