[Common] Fix problems found by Cppcheck #22217
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.
|