blob: 7fd9ba797a3e45fb3774decee5274227fe926c49 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
import re
from repoman.modules.linechecks.base import LineCheck
class EbuildQuotedA(LineCheck):
"""Ensure ebuilds have no quoting around ${A}"""
repoman_check_name = 'ebuild.minorsyn'
a_quoted = re.compile(r'.*\"\$(\{A\}|A)\"')
def check(self, num, line):
match = self.a_quoted.match(line)
if match:
return "Quoted \"${A}\" on line: %d"
|