Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions addons/misra.py
Original file line number Diff line number Diff line change
Expand Up @@ -484,7 +484,7 @@ def isHexEscapeSequence(symbols):


def isOctalEscapeSequence(symbols):
"""Checks that given symbols are valid octal escape sequence:
r"""Checks that given symbols are valid octal escape sequence:

octal-escape-sequence:
\ octal-digit
Expand Down Expand Up @@ -2699,7 +2699,7 @@ def main():
rules_violated[misra_id] = rules_violated.get(misra_id, 0) + 1
print("MISRA rules violated:")
convert = lambda text: int(text) if text.isdigit() else text
misra_sort = lambda key: [ convert(c) for c in re.split('[\.-]([0-9]*)', key) ]
misra_sort = lambda key: [ convert(c) for c in re.split('[.-]([0-9]*)', key) ]
for misra_id in sorted(rules_violated.keys(), key=misra_sort):
res = re.match(r'misra-c2012-([0-9]+)\\.([0-9]+)', misra_id)
if res is None:
Expand Down
7 changes: 7 additions & 0 deletions pylintrc_travis
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,13 @@ enable=mixed-indentation,
print-statement,
literal-comparison,
unnecessary-semicolon,
mixed-line-endings,
bad-open-mode,
redundant-unittest-assert,
boolean-datetime,
deprecated-method,
anomalous-unicode-escape-in-string,
anomalous-backslash-in-string,
#bad-indentation
[REPORTS]
reports=no
Expand Down
2 changes: 1 addition & 1 deletion tools/extracttests.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ def parseFile(self, filename):
continue

# check
res = re.match('\s+check.*\(' + string, line)
res = re.match('\\s+check.*\\(' + string, line)
if res is not None:
code = res.group(1)

Expand Down