mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
pylint: Disable the opinionated too-many-xyz warnings
This commit is contained in:
parent
0769e4df5d
commit
de364c566c
@ -187,7 +187,7 @@ def parse_cli_output(source_file_name: Path, cli_output: str) -> FileReport:
|
|||||||
return file_report
|
return file_report
|
||||||
|
|
||||||
|
|
||||||
def prepare_compiler_input( # pylint: disable=too-many-arguments
|
def prepare_compiler_input(
|
||||||
compiler_path: Path,
|
compiler_path: Path,
|
||||||
source_file_name: Path,
|
source_file_name: Path,
|
||||||
optimize: bool,
|
optimize: bool,
|
||||||
@ -256,7 +256,7 @@ def detect_metadata_cli_option_support(compiler_path: Path):
|
|||||||
return process.returncode == 0
|
return process.returncode == 0
|
||||||
|
|
||||||
|
|
||||||
def run_compiler( # pylint: disable=too-many-arguments
|
def run_compiler(
|
||||||
compiler_path: Path,
|
compiler_path: Path,
|
||||||
source_file_name: Path,
|
source_file_name: Path,
|
||||||
optimize: bool,
|
optimize: bool,
|
||||||
@ -320,7 +320,7 @@ def run_compiler( # pylint: disable=too-many-arguments
|
|||||||
return parse_cli_output(Path(source_file_name), process.stdout)
|
return parse_cli_output(Path(source_file_name), process.stdout)
|
||||||
|
|
||||||
|
|
||||||
def generate_report( # pylint: disable=too-many-arguments,too-many-locals
|
def generate_report(
|
||||||
source_file_names: List[str],
|
source_file_names: List[str],
|
||||||
compiler_path: Path,
|
compiler_path: Path,
|
||||||
interface: CompilerInterface,
|
interface: CompilerInterface,
|
||||||
|
@ -9,8 +9,6 @@
|
|||||||
#
|
#
|
||||||
# verify-testcases.py will compare both traces. If these traces are identical, the extracted tests were
|
# verify-testcases.py will compare both traces. If these traces are identical, the extracted tests were
|
||||||
# identical with the tests specified in SolidityEndToEndTest.cpp.
|
# identical with the tests specified in SolidityEndToEndTest.cpp.
|
||||||
#
|
|
||||||
# pylint: disable=too-many-instance-attributes
|
|
||||||
|
|
||||||
import re
|
import re
|
||||||
import os
|
import os
|
||||||
|
@ -254,8 +254,6 @@ def examine_id_coverage(top_dir, source_id_to_file_names, new_ids_only=False):
|
|||||||
|
|
||||||
|
|
||||||
def main(argv):
|
def main(argv):
|
||||||
# pylint: disable=too-many-branches, too-many-locals, too-many-statements
|
|
||||||
|
|
||||||
check = False
|
check = False
|
||||||
fix = False
|
fix = False
|
||||||
no_confirm = False
|
no_confirm = False
|
||||||
|
@ -25,7 +25,13 @@ disable=
|
|||||||
pointless-string-statement,
|
pointless-string-statement,
|
||||||
redefined-outer-name,
|
redefined-outer-name,
|
||||||
too-few-public-methods,
|
too-few-public-methods,
|
||||||
too-many-public-methods
|
too-many-arguments,
|
||||||
|
too-many-branches,
|
||||||
|
too-many-instance-attributes,
|
||||||
|
too-many-locals,
|
||||||
|
too-many-public-methods,
|
||||||
|
too-many-statements,
|
||||||
|
ungrouped-imports
|
||||||
|
|
||||||
[BASIC]
|
[BASIC]
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user