Skip to content

[Common] Fix problems found by Cppcheck #22217

[Common] Fix problems found by Cppcheck

[Common] Fix problems found by Cppcheck #22217

Triggered via pull request December 19, 2025 14:03
@vkuceravkucera
synchronize #14178
Status Failure
Total duration 13s
Artifacts

o2-linter.yml

on: pull_request_target
O2 linter
11s
O2 linter
Fit to window
Zoom out
Zoom in

Annotations

10 errors and 2 notices
[pdg/explicit-code]: Common/TableProducer/selectionStudyTable.cxx#L76
Avoid hard-coded PDG codes. Use named values from PDG_t or o2::constants::physics::Pdg instead.
[magic-number]: Common/TableProducer/eventSelection.cxx#L1384
Avoid magic numbers in expressions. Assign the value to a clearly named variable or constant.
[magic-number]: Common/TableProducer/eventSelection.cxx#L1383
Avoid magic numbers in expressions. Assign the value to a clearly named variable or constant.
[magic-number]: Common/TableProducer/eventSelection.cxx#L1382
Avoid magic numbers in expressions. Assign the value to a clearly named variable or constant.
[magic-number]: Common/TableProducer/eventSelection.cxx#L1381
Avoid magic numbers in expressions. Assign the value to a clearly named variable or constant.
[magic-number]: Common/TableProducer/eventSelection.cxx#L1379
Avoid magic numbers in expressions. Assign the value to a clearly named variable or constant.
[magic-number]: Common/TableProducer/eventSelection.cxx#L1378
Avoid magic numbers in expressions. Assign the value to a clearly named variable or constant.
[magic-number]: Common/TableProducer/eventSelection.cxx#L1377
Avoid magic numbers in expressions. Assign the value to a clearly named variable or constant.
[magic-number]: Common/TableProducer/eventSelection.cxx#L1376
Avoid magic numbers in expressions. Assign the value to a clearly named variable or constant.
[std-prefix]: Common/TableProducer/PID/pidTPCBase.h#L51
Use std:: prefix for names from the std namespace.
O2 linter
To tolerate certain issues in a directory, add a line with the test name in "o2linter_config".
O2 linter
Exceptionally, you can disable a test for a line by adding a comment with "o2-linter: disable=" followed by the name of the test and parentheses with a reason for the exception.