Skip to content

Conversation

@vkucera
Copy link
Collaborator

@vkucera vkucera commented Oct 23, 2025

The exception existed only to allow names suggested by the [runtime/arrays] error message in cpplint:

Do not use variable-length arrays. Use an appropriately named ('k' followed by CamelCase) compile-time constant for the size.

However, cpplint accepts CamelCase without the k prefix as well, making the exception unnecessary and allowing to be fully consistent with the O2 naming conventions.

O2 linter mentions the exception in the error message but doesn't specify what a "special constant" is which has confused many people. Removing the exception prevents this confusion.

@github-actions
Copy link

github-actions bot commented Oct 23, 2025

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

@github-actions github-actions bot changed the title Remove prefix exception for constexpr constants [Infrastructure] Remove prefix exception for constexpr constants Oct 23, 2025
@vkucera vkucera changed the title [Infrastructure] Remove prefix exception for constexpr constants [Infrastructure] O2 linter: Remove prefix exception for constexpr constants Oct 23, 2025
@vkucera vkucera marked this pull request as ready for review October 23, 2025 18:01
@ktf ktf merged commit db9c11c into AliceO2Group:master Oct 27, 2025
12 checks passed
@vkucera vkucera deleted the o2linter branch October 27, 2025 15:53
ThePhDane pushed a commit to ThePhDane/O2Physics that referenced this pull request Nov 3, 2025
lmattei01 pushed a commit to lmattei01/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

Development

Successfully merging this pull request may close these issues.

2 participants