Skip to content

Fix the open CodeQL notes on master - #1706

Merged
carlocamilloni merged 1 commit into
masterfrom
codeql-alerts-fixes
Nov 27, 2026
Merged

carlocamilloni merged 1 commit into
masterfrom
codeql-alerts-fixes

Conversation

@carlocamilloni

Copy link
Copy Markdown
Member
  • cltools: generate the completion function as completion.h instead of completion.xxd, as already done for completion-scripts.h (Improved bash completion #1657), so that Completion.cpp only includes header files (cpp/include-non-header). Make, CMake and the generator test are updated, and the generated file is ignored and removed by make clean.
  • ANGLES: join the expanded GROUPA/GROUPB lists of the SWITCH branch with one helper instead of two copies of the same loop, and document the two branches (cpp/poorly-documented-function). The generated input is unchanged.
  • PlumedHandle.h: end a doc comment with a period, so that it is not taken for commented-out code (cpp/commented-out-code, already dismissed as PyCV - calling python within plumed #996).
  • conda/tests/module_options.py: use unittest.mock instead of importing unittest twice (py/import-and-import-from).

Checked with a serial Linux build (make, -Werror in cltools), the multicolvar rt-angles, rt-coord-angles and rt-shortcut-atom-groups and the basic rt-cltools-misc regtests, extensions/tests/cmake_selection.py, conda/tests/module_options.py and ruff.

Claude-Session: https://claude.ai/code/session_016vwxtVbzKmCQKsoAxUx3gS

Description
Target release

I would like my code to appear in release XXXXX

Type of contribution
  • changes to code or doc authored by PLUMED developers, or additions of code in the core or within the default modules
  • changes to a module not authored by you
  • new module contribution or edit of a module authored by you
Copyright
  • I agree to transfer the copyright of the code I have written to the PLUMED developers or to the author of the code I am modifying.
  • the module I added or modified contains a COPYRIGHT file with the correct license information. Code should be released under an open source license. I also used the command cd src && ./header.sh mymodulename in order to make sure the headers of the module are correct.
Tests
  • I added a new regtest or modified an existing regtest to validate my changes.
  • I verified that all regtests are passed successfully on GitHub Actions.

- cltools: generate the completion function as completion.h instead of
  completion.xxd, as already done for completion-scripts.h (#1657), so that
  Completion.cpp only includes header files (cpp/include-non-header).
  Make, CMake and the generator test are updated, and the generated file is
  ignored and removed by make clean.
- ANGLES: join the expanded GROUPA/GROUPB lists of the SWITCH branch with one
  helper instead of two copies of the same loop, and document the two
  branches (cpp/poorly-documented-function). The generated input is unchanged.
- PlumedHandle.h: end a doc comment with a period, so that it is not taken
  for commented-out code (cpp/commented-out-code, already dismissed as #996).
- conda/tests/module_options.py: use unittest.mock instead of importing
  unittest twice (py/import-and-import-from).

Checked with a serial Linux build (make, -Werror in cltools), the
multicolvar rt-angles, rt-coord-angles and rt-shortcut-atom-groups and the
basic rt-cltools-misc regtests, extensions/tests/cmake_selection.py,
conda/tests/module_options.py and ruff.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016vwxtVbzKmCQKsoAxUx3gS
@codecov

codecov Bot commented Nov 27, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 89.30%. Comparing base (52f2da9) to head (4588e8c).

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #1706   +/-   ##
=======================================
  Coverage   89.30%   89.30%           
=======================================
  Files         661      661           
  Lines       84219    84219           
=======================================
+ Hits        75208    75209    +1     
+ Misses       9011     9010    -1     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@carlocamilloni
carlocamilloni merged commit f26e711 into master Nov 27, 2026
70 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant