VirtualBox

Changeset 46544 in vbox for trunk


Ignore:
Timestamp:
Jun 13, 2013 6:23:06 PM (12 years ago)
Author:
vboxsync
Message:

Moving parts of the pylint fun to the top Config.kmk

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Config.kmk

    r46522 r46544  
    16541654ifndef VBOX_BLD_PYTHON
    16551655 if1of ($(KBUILD_HOST), win)
    1656   VBOX_BLD_PYTHON := $(firstword $(rsort $(wildcard $(PATH_DEVTOOLS)/win.x86/python/v*/python$(HOSTSUFF_EXE))) python-not-found.exe)
     1656  VBOX_BLD_PYTHON := $(firstword $(rsort $(wildcard $(PATH_DEVTOOLS)/win.x86/python/v*/python$(HOSTSUFF_EXE))) \
     1657                                   python-not-found.exe)
    16571658 else
    1658   VBOX_BLD_PYTHON := python$(HOSTSUFF_EXE)
    1659  endif
    1660 endif
     1659  VBOX_BLD_PYTHON := $(firstword $(which python$(HOSTSUFF_EXE)) $(which python2.7$(HOSTSUFF_EXE)) \
     1660                                 $(which python2.6$(HOSTSUFF_EXE)) python$(HOSTSUFF_EXE))
     1661 endif
     1662endif
     1663
     1664#
     1665# pylint setup, see http://www.logilab.org/857.
     1666# Supported are 0.21.0 - 0.25.2, but no 0.26.0.
     1667#
     1668# Disabled:
     1669#   W0301 - Unnecessary semicolon.
     1670#   W0511 - TODO/XXX/FIXME/+++.
     1671#   W0603 - Using the global statement.
     1672#   W0702 - No exception type(s) specified.
     1673#   W0703 - Catch "Exception".
     1674#   I0011 - Locally disabling XXXXX.
     1675#   C0321 - More than one statement on a single line.
     1676#   R0201 - Method could be a function.
     1677#
     1678# Note! Yes, --max-branchs is a typo, but not by me.
     1679#
     1680ifndef VBOX_PYLINT
     1681 VBOX_PYLINT        := $(firstword $(which pylint-2.7) $(which pylint-2.6) $(which pylint))
     1682 ifdef VBOX_PYLINT
     1683  VBOX_PYLINT       := $(VBOX_BLD_PYTHON) $(VBOX_PYLINT)
     1684 endif
     1685endif
     1686if !defined(VBOX_WITH_PYLINT) && defined(VBOX_PYLINT)
     1687 VBOX_WITH_PYLINT := 1
     1688endif
     1689VBOX_PYLINT_FLAGS    = --report=n --output-format=parseable --include-ids=y --persistent=n \
     1690        --rcfile=$(if-expr "$(KBUILD_HOST)" == "win",nul,/dev/null) \
     1691        --max-line-length=130 \
     1692        --max-attributes=20 \
     1693        --max-branchs=50 \
     1694        --max-statements=100 \
     1695        --max-returns=100 \
     1696        --max-public-methods=139 \
     1697        --max-args=9 \
     1698        --max-module-lines=4096 \
     1699        --function-rgx='[a-z_][a-zA-Z0-9_]{2,30}$(DOLLAR)' \
     1700        --method-rgx='[a-z_][a-zA-Z0-9_]{2,30}$(DOLLAR)' \
     1701        --argument-rgx='([a-z_][a-zA-Z0-9_]{2,30}|rc|hr|s|c|cx|cy|cb|fn)$(DOLLAR)' \
     1702        --variable-rgx='([a-z_][a-zA-Z0-9_]{2,30}|rc|hr|s|c|cx|cy|cb|fn)$(DOLLAR)' \
     1703        --attr-rgx='([a-z_][a-zA-Z0-9_]{2,30}|rc|hr|o)$(DOLLAR)' \
     1704        --module-rgx='(([a-z_][a-z0-9_]*)|([A-Z][a-zA-Z0-9]+)|(td[A-Z][a-zA-Z0-9]+)|(t(e|)st(-|)[a-zA-Z0-9]+))$(DOLLAR)' \
     1705        --class-rgx='(td|)[A-Z_][a-zA-Z0-9_]+$(DOLLAR)' \
     1706        --const-rgx='(g_(k|)[abcdefhmnpilorstu]+[A-Z][a-zA-Z0-9]+|[A-Z_][A-Z0-9_]+|__copyright__|__version__|__file__|__all__)$(DOLLAR)' \
     1707        --good-names='i,j,k,t,o,c,e,_' \
     1708        --disable=W0301,W0511,W0603,W0702,W0703,C0321,R0201,I0011 \
     1709        --ignored-classes=testdriver.vboxcon \
     1710
    16611711
    16621712# Define the macro for win path conversion.
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette