mirror of
https://github.com/yuzu-emu/mbedtls
synced 2024-11-24 11:08:09 +00:00
parent
79cfef02d9
commit
47d7c2d7cb
1 changed files with 1 additions and 15 deletions
|
@ -6,7 +6,7 @@
|
||||||
"""
|
"""
|
||||||
This script checks the current state of the source code for minor issues,
|
This script checks the current state of the source code for minor issues,
|
||||||
including incorrect file permissions, presence of tabs, non-Unix line endings,
|
including incorrect file permissions, presence of tabs, non-Unix line endings,
|
||||||
trailing whitespace, presence of UTF-8 BOM, and TODO comments.
|
trailing whitespace, and presence of UTF-8 BOM.
|
||||||
Note: requires python 3, must be run from Mbed TLS root.
|
Note: requires python 3, must be run from Mbed TLS root.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
@ -168,19 +168,6 @@ class MergeArtifactIssueTracker(LineIssueTracker):
|
||||||
return True
|
return True
|
||||||
return False
|
return False
|
||||||
|
|
||||||
class TodoIssueTracker(LineIssueTracker):
|
|
||||||
"""Track lines containing ``TODO``."""
|
|
||||||
|
|
||||||
heading = "TODO present:"
|
|
||||||
files_exemptions = frozenset([
|
|
||||||
os.path.basename(__file__),
|
|
||||||
"benchmark.c",
|
|
||||||
"pull_request_template.md",
|
|
||||||
])
|
|
||||||
|
|
||||||
def issue_with_line(self, line, _filepath):
|
|
||||||
return b"todo" in line.lower()
|
|
||||||
|
|
||||||
|
|
||||||
class IntegrityChecker(object):
|
class IntegrityChecker(object):
|
||||||
"""Sanity-check files under the current directory."""
|
"""Sanity-check files under the current directory."""
|
||||||
|
@ -209,7 +196,6 @@ class IntegrityChecker(object):
|
||||||
TrailingWhitespaceIssueTracker(),
|
TrailingWhitespaceIssueTracker(),
|
||||||
TabIssueTracker(),
|
TabIssueTracker(),
|
||||||
MergeArtifactIssueTracker(),
|
MergeArtifactIssueTracker(),
|
||||||
TodoIssueTracker(),
|
|
||||||
]
|
]
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
|
|
Loading…
Reference in a new issue