Skip to content

Commit 6521776

Browse files
committed
Merge
2 parents 8a1792f + 457e8cf commit 6521776

89 files changed

Lines changed: 8432 additions & 1838 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.codacy.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
exclude_paths:
22
- addons/test/**
33
- addons/y2038/test/*.c
4-
- htmlreport/example.cc
4+
- reports/htmlreport/example.cc
55
- samples/**/bad.c
66
- samples/**/bad.cpp
77
- test/cfg/*.c

‎.github/workflows/buildman.yml‎

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -26,17 +26,17 @@ jobs:
2626
- run: |
2727
mkdir output
2828
29-
- uses: docker://pandoc/latex:3.6.3
30-
with:
31-
args: --output=output/manual.html man/manual.md
32-
33-
- uses: docker://pandoc/latex:3.6.3
34-
with:
35-
args: --output=output/manual.pdf man/manual.md
36-
37-
- uses: docker://pandoc/latex:3.6.3
38-
with:
39-
args: --output=output/manual-premium.pdf man/manual-premium.md
29+
# buildman.sh runs in the pandoc container. The LaTeX packages used by manual-style.tex
30+
# and the DejaVu fonts are not included in the image.
31+
- name: Build manuals
32+
run: |
33+
docker run --rm -v "$GITHUB_WORKSPACE:/data" -w /data/man --entrypoint sh pandoc/latex:3.6.3 -c '
34+
set -e
35+
tlmgr --repository https://ftp.math.utah.edu/pub/tex/historic/systems/texlive/2024/tlnet-final install titlesec newverbs
36+
apk add --no-cache font-dejavu
37+
./buildman.sh
38+
chown -R '"$(id -u):$(id -g)"' .'
39+
cp man/*.pdf man/*.html man/manual.css output/
4040
4141
- uses: actions/upload-artifact@v7
4242
with:

‎.github/workflows/claude-review.yml‎

Lines changed: 0 additions & 53 deletions
This file was deleted.

‎.github/workflows/release-windows.yml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ jobs:
127127
# TODO: include in installer?
128128
- name: Compile cppcheck-htmlreport executable
129129
run: |
130-
cd htmlreport || exit /b !errorlevel!
130+
cd reports\htmlreport || exit /b !errorlevel!
131131
pyinstaller cppcheck-htmlreport || exit /b !errorlevel!
132132
del *.spec || exit /b !errorlevel!
133133
@@ -153,7 +153,7 @@ jobs:
153153
del win_installer\files\platforms\*.rng || exit /b !errorlevel!
154154
del win_installer\files\translations\*.qm || exit /b !errorlevel!
155155
move build\gui\*.qm win_installer\files\translations || exit /b !errorlevel!
156-
copy htmlreport\dist\cppcheck-htmlreport\*.* win_installer\files || exit /b !errorlevel!
156+
copy reports\htmlreport\dist\cppcheck-htmlreport\*.* win_installer\files || exit /b !errorlevel!
157157
:: copy libcrypto-3-x64.dll and libssl-3-x64.dll
158158
copy %RUNNER_WORKSPACE%\Qt\Tools\OpenSSLv3\Win_x64\bin\lib*.dll win_installer\files || exit /b !errorlevel!
159159

‎.github/workflows/scriptcheck.yml‎

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,8 @@ jobs:
9797
python -m pip install requests
9898
python -m pip install psutil
9999
python -m pip install setuptools
100+
python -m pip install -r tools/donate-cpu-server-requirements.txt
101+
python -m pip install httpx
100102
101103
- name: run Shellcheck
102104
if: matrix.python-latest
@@ -107,7 +109,7 @@ jobs:
107109
if: matrix.python-latest
108110
run: |
109111
shopt -s globstar
110-
pylint --jobs $(nproc) --py-version 3.7 addons/**/*.py htmlreport/cppcheck-htmlreport htmlreport/**/*.py test/**/*.py tools/**/*.py
112+
pylint --jobs $(nproc) --py-version 3.7 addons/**/*.py reports/htmlreport/cppcheck-htmlreport reports/**/*.py test/**/*.py tools/**/*.py
111113
112114
- name: check .json files
113115
if: matrix.python-latest
@@ -123,8 +125,8 @@ jobs:
123125
run: |
124126
shopt -s globstar
125127
python -m py_compile addons/**/*.py
126-
python -m py_compile htmlreport/cppcheck-htmlreport
127-
python -m py_compile htmlreport/**/*.py
128+
python -m py_compile reports/htmlreport/cppcheck-htmlreport
129+
python -m py_compile reports/**/*.py
128130
python -m py_compile test/**/*.py
129131
python -m py_compile tools/**/*.py
130132
@@ -165,7 +167,7 @@ jobs:
165167
python -m venv venv
166168
source venv/bin/activate
167169
python -m pip install -U pip
168-
pip install ./htmlreport/
170+
pip install ./reports/htmlreport/
169171
which cppcheck-htmlreport
170172
PIP_PACKAGE_TEST=1 test/tools/htmlreport/test_htmlreport.py
171173
# TODO: does not test the pip binary
@@ -191,6 +193,18 @@ jobs:
191193
env:
192194
PYTHONPATH: ./tools
193195

196+
- name: test donate_cpu_server_rest
197+
run: |
198+
python -m pytest -Werror --strict-markers -vv test/tools/donate_cpu_server_rest_test.py
199+
env:
200+
PYTHONPATH: ./tools
201+
202+
# the javascript tests use the node that is installed on the runner
203+
- name: test explorer report
204+
run: |
205+
node --version
206+
python -m pytest -Werror --strict-markers -vv test/tools/explorer/
207+
194208
- name: Show all ignored files
195209
if: false # TODO: currently lists all the contents of ignored folders - we only need what actually matched
196210
run: |

‎.gitignore‎

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ stage
8383

8484
# Manual folder
8585
/man/manual.log
86+
/man/appendix-*.md
8687
/man/manual.tex
8788
/man/*.pdf
8889
/man/*.html
@@ -112,16 +113,16 @@ stage
112113
**/*.egg-info/
113114

114115
# cppcheck-htmlreport auto files
115-
/htmlreport/cppcheck_htmlreport/run.py
116+
/reports/htmlreport/cppcheck_htmlreport/run.py
116117

117118
# GDB configuration
118119
.gdbinit
119120

120121
# pyinstaller output
121122
/addons/dist
122123
/addons/misra.spec
123-
/htmlreport/cppcheck-htmlreport.spec
124-
/htmlreport/dist
124+
/reports/htmlreport/cppcheck-htmlreport.spec
125+
/reports/htmlreport/dist
125126

126127
# ccache folder in CI
127128
/.ccache

‎AUTHORS‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -422,6 +422,7 @@ Tam Do Thanh
422422
Teddy Didé
423423
Temuri Doghonadze
424424
Thomas Arnhold
425+
Tom Sobczynski
425426
Tomasz Edward Posluszny
426427
Thomas Jarosch
427428
Thomas Niederberger

‎Makefile‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -414,7 +414,7 @@ tags:
414414
install: cppcheck
415415
install -d ${BIN}
416416
install cppcheck ${BIN}
417-
install htmlreport/cppcheck-htmlreport ${BIN}
417+
install reports/htmlreport/cppcheck-htmlreport ${BIN}
418418
ifdef FILESDIR
419419
install -d ${DESTDIR}${FILESDIR}
420420
install -d ${DESTDIR}${FILESDIR}/addons

0 commit comments

Comments
 (0)