[PWGLF] Fix cppcheck warning in identified RAA task #21488
Annotations
10 errors and 2 notices
|
[magic-number]:
PWGLF/Tasks/Nuspex/identifiedraa.cxx#L96
Avoid magic numbers in expressions. Assign the value to a clearly named variable or constant.
|
|
[const-ref-in-for-loop]:
PWGLF/Tasks/Nuspex/identifiedraa.cxx#L226
Use constant references for non-modified iterators in range-based for loops.
|
|
[const-ref-in-for-loop]:
PWGLF/Tasks/Nuspex/identifiedraa.cxx#L187
Use constant references for non-modified iterators in range-based for loops.
|
|
[const-ref-in-for-loop]:
PWGLF/Tasks/Nuspex/identifiedraa.cxx#L118
Use constant references for non-modified iterators in range-based for loops.
|
|
[pdg/explicit-mass]:
PWGLF/Tasks/Nuspex/identifiedraa.cxx#L243
Avoid hard-coded particle masses. Use o2::constants::physics::Mass... instead.
|
|
[pdg/explicit-mass]:
PWGLF/Tasks/Nuspex/identifiedraa.cxx#L241
Avoid hard-coded particle masses. Use o2::constants::physics::Mass... instead.
|
|
[pdg/explicit-mass]:
PWGLF/Tasks/Nuspex/identifiedraa.cxx#L239
Avoid hard-coded particle masses. Use o2::constants::physics::Mass... instead.
|
|
[pdg/explicit-mass]:
PWGLF/Tasks/Nuspex/identifiedraa.cxx#L139
Avoid hard-coded particle masses. Use o2::constants::physics::Mass... instead.
|
|
[pdg/explicit-mass]:
PWGLF/Tasks/Nuspex/identifiedraa.cxx#L136
Avoid hard-coded particle masses. Use o2::constants::physics::Mass... instead.
|
|
[pdg/explicit-mass]:
PWGLF/Tasks/Nuspex/identifiedraa.cxx#L133
Avoid hard-coded particle masses. Use o2::constants::physics::Mass... instead.
|
|
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.
|