Skip to content

[PWGLF] Fix cppcheck for strangeness derived data #21595

[PWGLF] Fix cppcheck for strangeness derived data

[PWGLF] Fix cppcheck for strangeness derived data #21595

Triggered via pull request December 7, 2025 17:14
@mpucciompuccio
opened #14109
Status Failure
Total duration 20s
Artifacts

o2-linter.yml

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

Annotations

8 errors and 2 notices
O2 linter
Process completed with exit code 1.
O2 linter result
Issues have been found.
[name/workflow-file]: PWGLF/TableProducer/Strangeness/Converters/stradautrackstofpidconverter.cxx#L1
Name of a workflow file must match the name of the main struct in it (without the PWG prefix). (Class implementation files should be in "Core" directories.)
[const-ref-in-for-loop]: PWGLF/TableProducer/Strangeness/Converters/stradautrackstofpidconverter.cxx#L36
Use constant references for non-modified iterators in range-based for loops.
[const-ref-in-for-loop]: PWGLF/TableProducer/Strangeness/Converters/stradautrackstofpidconverter.cxx#L28
Use constant references for non-modified iterators in range-based for loops.
[name/workflow-file]: PWGLF/TableProducer/Strangeness/Converters/stradautracksconverter.cxx#L1
Name of a workflow file must match the name of the main struct in it (without the PWG prefix). (Class implementation files should be in "Core" directories.)
[const-ref-in-for-loop]: PWGLF/TableProducer/Strangeness/Converters/stradautracksconverter.cxx#L36
Use constant references for non-modified iterators in range-based for loops.
[const-ref-in-for-loop]: PWGLF/TableProducer/Strangeness/Converters/stradautracksconverter.cxx#L28
Use constant references for non-modified iterators in range-based for loops.
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.