summaryrefslogtreecommitdiffstats
path: root/test/rules/UnsetVariableMatcherRule.py
blob: b4c1756e50916e07b6ea34217e539b276f7c7782 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
from ansiblelint.rules import AnsibleLintRule


class UnsetVariableMatcherRule(AnsibleLintRule):
    id = 'TEST0002'
    shortdesc = 'Line contains untemplated variable'
    description = 'This is a test rule that looks for lines ' + \
                  'post templating that still contain {{'
    tags = ['fake', 'dummy', 'test2']

    def match(self, filename, line):
        return "{{" in line