Skip to content

[PWGHF] Cleanup, optimisation, bug fixes using clang-tidy #18286

[PWGHF] Cleanup, optimisation, bug fixes using clang-tidy

[PWGHF] Cleanup, optimisation, bug fixes using clang-tidy #18286

Triggered via pull request October 6, 2025 18:14
@vkuceravkucera
synchronize #13206
Status Failure
Total duration 21s
Artifacts

o2-linter.yml

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

Annotations

10 errors and 2 notices
[const-ref-in-for-loop]: PWGHF/D2H/TableProducer/dataCreatorCharmHadPiReduced.cxx#L986
Use constant references for non-modified iterators in range-based for loops.
[magic-number]: PWGHF/D2H/TableProducer/candidateCreatorBsReduced.cxx#L277
Avoid magic numbers in expressions. Assign the value to a clearly named variable or constant.
[magic-number]: PWGHF/D2H/TableProducer/candidateCreatorBsReduced.cxx#L243
Avoid magic numbers in expressions. Assign the value to a clearly named variable or constant.
[magic-number]: PWGHF/D2H/TableProducer/candidateCreatorBplusReduced.cxx#L277
Avoid magic numbers in expressions. Assign the value to a clearly named variable or constant.
[magic-number]: PWGHF/D2H/TableProducer/candidateCreatorBplusReduced.cxx#L243
Avoid magic numbers in expressions. Assign the value to a clearly named variable or constant.
[magic-number]: PWGHF/D2H/TableProducer/candidateCreatorB0Reduced.cxx#L472
Avoid magic numbers in expressions. Assign the value to a clearly named variable or constant.
[magic-number]: PWGHF/D2H/TableProducer/candidateCreatorB0Reduced.cxx#L437
Avoid magic numbers in expressions. Assign the value to a clearly named variable or constant.
[magic-number]: PWGHF/D2H/TableProducer/candidateCreatorB0Reduced.cxx#L402
Avoid magic numbers in expressions. Assign the value to a clearly named variable or constant.
[magic-number]: PWGHF/D2H/TableProducer/candidateCreatorB0Reduced.cxx#L368
Avoid magic numbers in expressions. Assign the value to a clearly named variable or constant.
[name/workflow-file]: PWGHF/D2H/Macros/HFInvMassFitter.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.)
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.