Move pylint suppressions inline.
This commit is contained in:
parent
17c74326c1
commit
3f34adad3b
4 changed files with 4 additions and 5 deletions
3
Makefile
3
Makefile
|
@ -140,6 +140,5 @@ CSUPPRESSIONS = --suppress=missingIncludeSystem --suppress=invalidscanf
|
|||
cppcheck:
|
||||
cppcheck -I. --template gcc --enable=all $(CSUPPRESSIONS) *.[ch]
|
||||
|
||||
PYSUPPRESSIONS = line-too-long,invalid-name,missing-function-docstring,too-many-lines,too-many-branches,global-statement,multiple-imports,too-many-locals,too-many-statements,too-many-nested-blocks,no-else-return,raise-missing-from,redefined-outer-name,consider-using-in,dict-iter-missing-items
|
||||
pylint:
|
||||
@pylint --score=n --disable=$(PYSUPPRESSIONS) *.py */*.py
|
||||
@pylint --score=n *.py */*.py
|
||||
|
|
|
@ -11,7 +11,7 @@ Copyright (c) 2017 by Eric S. Raymond
|
|||
SPDX-License-Identifier: BSD-2-clause
|
||||
"""
|
||||
|
||||
# pylint: disable=consider-using-f-string
|
||||
# pylint: disable=consider-using-f-string,line-too-long,invalid-name,missing-function-docstring,too-many-branches,global-statement,multiple-imports,too-many-locals,too-many-statements,too-many-nested-blocks,no-else-return,raise-missing-from,redefined-outer-name
|
||||
|
||||
import sys, yaml
|
||||
|
||||
|
|
|
@ -14,7 +14,7 @@ Make a DOT graph of Colossal Cave.
|
|||
# Copyright (c) 2017 by Eric S. Raymond
|
||||
# SPDX-License-Identifier: BSD-2-clause
|
||||
|
||||
# pylint: disable=consider-using-f-string
|
||||
# pylint: disable=consider-using-f-string,line-too-long,invalid-name,missing-function-docstring,multiple-imports,redefined-outer-name
|
||||
|
||||
import sys, getopt, yaml
|
||||
|
||||
|
|
|
@ -12,7 +12,7 @@ even if the checkfile search doesn't find them. Typically this will because
|
|||
they emit a templated message that can't be regression-tested by equality.
|
||||
"""
|
||||
|
||||
# pylint: disable=consider-using-f-string
|
||||
# pylint: disable=consider-using-f-string,line-too-long,invalid-name,missing-function-docstring,redefined-outer-name
|
||||
|
||||
import os
|
||||
import sys
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue