Skip to content

Conversation

@vkucera
Copy link
Collaborator

@vkucera vkucera commented Jun 19, 2025

  • Fix bugs:
    • Shifting signed 32-bit value by 31 bits is implementation-defined behaviour. (cppcheck)
      • Common/TableProducer/eventSelection.cxx (1)
      • Common/Tasks/trackqa.cxx (1)
      • Common/Tools/EventSelectionTools.h (1)
    • abs(float) (O2 linter)
      • Common/TableProducer/PID/pidBayes.cxx (1)
      • Common/TableProducer/PID/pidTOFBase.cxx (2)
    • Condition ... is always false. (cppcheck)
      • Common/Tools/EventSelectionTools.h: Missing bcs size check.
    • Member variable ... is not initialized (in the constructor). (cppcheck)
      • Common/TableProducer/PID/pidTOFMerge.cxx (5)
      • Common/TableProducer/caloClusterProducer.cxx (3)
      • Common/Tools/Multiplicity/multGlauberNBDFitter.cxx (2)
      • Common/Tools/TrackPropagationModule.h (1)
      • Common/Tools/trackSelectionRequest.h (1)
  • Fix bad practice:
    • Local variable ... shadows outer variable/function. (cppcheck)
    • Variable/Parameter ... can be declared as (reference to) const ... (cppcheck)
    • Class ... has a constructor with 1 argument that is not explicit. (cppcheck)
      • OrbitRange
      • multCalibrator
      • multGlauberNBDFitter
      • multMCCalibrator
    • Variable ... is reassigned a value before the old one has been used. (cppcheck)
      • Common/TableProducer/multiplicityTable.cxx (6)
    • The if condition is the same as the previous if condition. (cppcheck)
    • C-style casting (cppcheck, cpplint)
    • Use constant references for table subscriptions in process functions. (O2 linter)
      • Common/TableProducer/PID/pidTOFBase.cxx (2)
    • Use constant references for non-modified iterators in range-based for loops. (O2 linter)
    • string -> std::string (Confuses IWYU in clang-tidy because of using std::string directive in TJAlienCredentials.h.)
  • Improve performance:
    • Function parameter ... should be passed by const reference. (cppcheck)
      • Maaaany...
  • Fix header including.
    • Fix header guards. (cpplint)
    • Add missing C++ system header includes. (cpplint)
    • Fix include order. (clang-format, manual)
    • Fix include format. (Scripts/format_includes.awk)
    • Replace fairlogger/Logger.h with Framework/Logger.h.
    • Fix incomplete paths.
  • Delete unused file.
    • Common/Tasks/evtPlanesResolution.cxx

@github-actions
Copy link

github-actions bot commented Jun 19, 2025

O2 linter results: ❌ 914 errors, ⚠️ 0 warnings, 🔕 96 disabled

@github-actions github-actions bot changed the title Fix implementation-defined behaviour, argument references, includes [Common] Fix implementation-defined behaviour, argument references, includes Jun 19, 2025
@vkucera vkucera mentioned this pull request Jun 19, 2025
@vkucera vkucera marked this pull request as ready for review June 19, 2025 14:05
@vkucera vkucera requested review from a team, alibuild, ddobrigk, iarsene, jgrosseo and ktf as code owners June 19, 2025 14:05
@vkucera
Copy link
Collaborator Author

vkucera commented Jun 19, 2025

FYI @ekryshen @altsybee

@ddobrigk ddobrigk marked this pull request as draft June 19, 2025 17:17
@ddobrigk
Copy link
Collaborator

Thanks @vkucera - marked as draft, should be handled after #11613

@vkucera
Copy link
Collaborator Author

vkucera commented Jun 20, 2025

Thanks @vkucera - marked as draft, should be handled after #11613

No problem. Can you fix those bugs there too?

@vkucera
Copy link
Collaborator Author

vkucera commented Jun 23, 2025

#11613

@ddobrigk PR #11613 was merged without applying fixes from this PR. How do you plan to proceed?

@vkucera vkucera changed the title [Common] Fix implementation-defined behaviour, argument references, includes [Common] Fix bugs, bad practice, includes Jul 10, 2025
@vkucera vkucera changed the title [Common] Fix bugs, bad practice, includes [Common] Fix bugs, bad practice, performance, includes Jul 10, 2025
@vkucera vkucera marked this pull request as ready for review July 10, 2025 19:59
@vkucera vkucera marked this pull request as draft August 1, 2025 13:03
@vkucera vkucera marked this pull request as ready for review August 1, 2025 14:25
@ddobrigk ddobrigk merged commit 37fceb9 into AliceO2Group:master Aug 15, 2025
10 of 13 checks passed
@vkucera vkucera deleted the cppcheck-common branch August 17, 2025 19:29
ThePhDane pushed a commit to ThePhDane/O2Physics that referenced this pull request Nov 3, 2025
jloemker pushed a commit to jloemker/O2Physics that referenced this pull request Nov 11, 2025
alibuild pushed a commit to alibuild/O2Physics that referenced this pull request Dec 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Development

Successfully merging this pull request may close these issues.

2 participants