Skip to content

Latest commit

 

History

History
77 lines (52 loc) · 2.43 KB

pylint.md

File metadata and controls

77 lines (52 loc) · 2.43 KB

Configuration for pylint

Supported environments/languages

  • python

Configuration for image

var purpose type default
SCA_BLOCKLIST_pylint Blacklist filter for this tool space-separated-list "linux-*"
SCA_PYLINT_EXTRA_FATAL Extra error-IDs leading to build termination when found space-separated-list ""
SCA_PYLINT_EXTRA_SUPPRESS Extra error-IDs to be suppressed space-separated-list ""
SCA_PYLINT_HOMEPATH Directory of python installation path ${IMAGE_ROOTFS}/python${PYTHON_BASEVERSION}
SCA_PYLINT_LIBATH List of library paths for python ':' separated list ${IMAGE_ROOTFS}/python${PYTHON_BASEVERSION}/:${IMAGE_ROOTFS}/python.${PYTHON_BASEVERSION}/site-packages/
SCA_PYLINT_ROOTPATH Root path from where checks should be performed path ${IMAGE_ROOTFS}

Configuration for recipe

var purpose type default
SCA_BLOCKLIST_pylint Blacklist filter for this tool space-separated-list "linux-*"
SCA_PYLINT_EXTRA_FATAL Extra error-IDs leading to build termination when found space-separated-list ""
SCA_PYLINT_EXTRA_SUPPRESS Extra error-IDs to be suppressed space-separated-list ""
SCA_PYLINT_HOMEPATH Directory of python installation path ${STAGING_LIBDIR}/python${PYTHON_BASEVERSION}
SCA_PYLINT_LIBATH List of library paths for python ':' separated list ${STAGING_LIBDIR}/python${PYTHON_BASEVERSION}/:${STAGING_LIBDIR}/python${PYTHON_BASEVERSION}/site-packages/
SCA_PYLINT_ROOTPATH Root path from where checks should be performed path ${B}

Supports

  • suppression of IDs
  • terminate build on fatal
  • run on recipe
  • run on image
  • available in SDK
  • run with SCA-layer default settings (see SCA_AVAILABLE_MODULES)

Requires

  • requires online access

Known error-IDs

tbd

Checking scope

  • security
  • functional defects
  • compliance
  • style issues

Statistics

  • ⬛⬛⬜⬜⬜⬜⬜⬜⬜⬜ 02/10 Build Speed
  • ⬛⬛⬛⬛⬛⬛⬛⬛⬛⬜ 09/10 Execution Speed
  • ⬛⬛⬛⬛⬛⬛⬛⬛⬛⬜ 09/10 Quality

Score mapping

Error considered as security relevant

  • n.a.

Error considered as functional defect

  • pylint.pylint.E*
  • pylint.pylint.F*
  • pylint.pylint.W*

Error consired as compliance issue

  • n.a.

Error considered as style issue

  • pylint.pylint.*