mirror of
https://github.com/pikvm/ustreamer.git
synced 2026-04-19 13:06:12 +00:00
improved linting
This commit is contained in:
3
linters/cppcheck.h
Normal file
3
linters/cppcheck.h
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
#define CHAR_BIT 8
|
||||||
|
#define WITH_OMX
|
||||||
|
#define WITH_GPIO
|
||||||
@@ -1,12 +1,12 @@
|
|||||||
[tox]
|
[tox]
|
||||||
envlist = cppcheck-src, cppcheck-python, flake8, pylint, mypy, vulture, htmlhint
|
envlist = cppcheck, flake8, pylint, mypy, vulture, htmlhint
|
||||||
skipsdist = true
|
skipsdist = true
|
||||||
|
|
||||||
[testenv]
|
[testenv]
|
||||||
basepython = python3.9
|
basepython = python3.9
|
||||||
changedir = /src
|
changedir = /src
|
||||||
|
|
||||||
[testenv:cppcheck-src]
|
[testenv:cppcheck]
|
||||||
whitelist_externals = cppcheck
|
whitelist_externals = cppcheck
|
||||||
commands = cppcheck \
|
commands = cppcheck \
|
||||||
--force \
|
--force \
|
||||||
@@ -18,25 +18,8 @@ commands = cppcheck \
|
|||||||
--suppress=variableScope \
|
--suppress=variableScope \
|
||||||
--inline-suppr \
|
--inline-suppr \
|
||||||
--library=python \
|
--library=python \
|
||||||
-DCHAR_BIT=8 \
|
--include=linters/cppcheck.h \
|
||||||
-DWITH_OMX \
|
src python/ustreamer.c janus/rtp.h janus/rtp.c janus/plugin.c
|
||||||
-DWITH_GPIO \
|
|
||||||
src python
|
|
||||||
|
|
||||||
[testenv:cppcheck-python]
|
|
||||||
whitelist_externals = cppcheck
|
|
||||||
commands = cppcheck \
|
|
||||||
--force \
|
|
||||||
--std=c11 \
|
|
||||||
--error-exitcode=1 \
|
|
||||||
--quiet \
|
|
||||||
--enable=warning,unusedFunction,portability,performance,style \
|
|
||||||
--suppress=assignmentInAssert \
|
|
||||||
--suppress=variableScope \
|
|
||||||
--inline-suppr \
|
|
||||||
--library=python \
|
|
||||||
-DCHAR_BIT=8 \
|
|
||||||
python/ustreamer.c
|
|
||||||
|
|
||||||
[testenv:flake8]
|
[testenv:flake8]
|
||||||
whitelist_externals = bash
|
whitelist_externals = bash
|
||||||
|
|||||||
Reference in New Issue
Block a user