• Home
  • Raw
  • Download

Lines Matching +full:pylint +full:- +full:exit

4 # SPDX-License-Identifier: Apache-2.0
10 # http://www.apache.org/licenses/LICENSE-2.0
20 are consistent with the house style and are also self-consistent. It only runs
24 a comprehensive "run-all" function (comprehensive_parse() and perform_checks())
35 - All exported and available symbols in the library object files, are explicitly
37 - All macros, constants, and identifiers (function names, struct names, etc)
39 - Typo checking: All words that begin with MBED exist as macros or constants.
61 MACRO_PATTERN = r"^(MBEDTLS|PSA)_[0-9A-Z_]*[0-9A-Z]$"
63 IDENTIFIER_PATTERN = r"^(mbedtls|psa)_[0-9a-z_]*[0-9a-z]$"
65 class Match(): # pylint: disable=too-few-public-methods
77 # pylint: disable=too-many-arguments
89 underline = self.pos[0] * " " + (self.pos[1] - self.pos[0]) * "^"
97 class Problem(abc.ABC): # pylint: disable=too-few-public-methods
122 The output when --quiet is enabled.
133 class SymbolNotInHeader(Problem): # pylint: disable=too-few-public-methods
155 class PatternMismatch(Problem): # pylint: disable=too-few-public-methods
187 class Typo(Problem): # pylint: disable=too-few-public-methods
209 "//no-check-names after it."
228 self.excluded_files = ["*/bn_mul", "*/compat-2.x.h"]
295 self.log.debug(" {:4} Non-identifier Macros".format(len(actual_macros)))
318 Get all files that match any of the UNIX-style wildcards. While the
324 * include_wildcards: a List of shell-style wildcards to match filepaths.
325 * exclude_wildcards: a List of shell-style wildcards to exclude.
357 with open(header_file, "r", encoding="utf-8") as header:
384 mbed_regex = re.compile(r"\bMBED.+?_[A-Z0-9_]*")
385 exclusions = re.compile(r"// *no-check-names|#error")
392 with open(filename, "r", encoding="utf-8") as fp:
428 with open(header_file, "r", encoding="utf-8") as header:
431 # beginning of the line -- if they are indented, they might
432 # be sub-structures within structs, etc.
510 # - function definition from return type to one of its arguments is
512 # - function definition line only contains alphanumeric, asterisk,
541 with open(header_file, "r", encoding="utf-8") as header:
556 # If the line contains only space-separated alphanumeric
642 my_environment["CFLAGS"] = "-fno-asynchronous-unwind-tables"
696 nm_valid_regex = re.compile(r"^\S+( [0-9A-Fa-f]+)* . _*(?P<symbol>\w+)")
705 ["nm", "-og", lib],
757 self.log.info("Remove --quiet to see explanations.")
759 self.log.info("Use --quiet for minimal output.")
876 "self-consistent.\n\n"
880 "-v", "--verbose",
885 "-q", "--quiet",
900 except Exception: # pylint: disable=broad-except
902 sys.exit(2)
907 sys.exit(return_code)