Skip to content

Commit 10632fb

Browse files
authored
Merge branch 'AliceO2Group:master' into PID-Hadrons-in-Jets
2 parents 0280dcf + 09cc87f commit 10632fb

1,260 files changed

Lines changed: 181110 additions & 63017 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.clang-format‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,11 @@ IncludeCategories:
4747
Priority: 2
4848
CaseSensitive: true
4949
# O2Physics, non-PWG
50-
- Regex: ^(<|")(Common|ALICE3|DPG|EventFiltering|Tools|Tutorials)/.*\.h
50+
- Regex: ^(<|")(Common|ALICE3|DPG|EventFiltering|PID|Tools|Tutorials)/.*\.h
5151
Priority: 3
5252
CaseSensitive: true
5353
# O2
54-
- Regex: ^(<|")(Algorithm|CCDB|Common[A-Z]|DataFormats|DCAFitter|Detectors|EMCAL|FDD|Field|Framework|FT0|FV0|GlobalTracking|GPU|ITS|MathUtils|MCH|MFT|MID|PHOS|PID|ReconstructionDataFormats|SimulationDataFormat|TOF|TPC|ZDC).*/.*\.h
54+
- Regex: ^(<|")(Algorithm|CCDB|Common[A-Z]|DataFormats|DCAFitter|Detectors|EMCAL|FDD|Field|Framework|FT0|FV0|GlobalTracking|GPU|ITS|MathUtils|MCH|MFT|MID|PHOS|ReconstructionDataFormats|SimulationDataFormat|TOF|TPC|ZDC).*/.*\.h
5555
Priority: 4
5656
CaseSensitive: true
5757
# ROOT
@@ -93,6 +93,7 @@ IncludeCategories:
9393
# rest
9494
- Regex: .*
9595
Priority: 100
96+
CaseSensitive: true
9697
SpaceBeforeAssignmentOperators: true
9798
SpaceBeforeParens: ControlStatements
9899
SpaceInEmptyParentheses: false

‎.clang-tidy‎

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,58 @@ WarningsAsErrors: >-
111111
*,
112112
-readability-braces-around-statements,
113113
-readability-suspicious-call-argument,
114+
-modernize-*,
115+
-readability-*,
116+
-bugprone-assignment-in-if-condition,
117+
-bugprone-branch-clone,
118+
-bugprone-copy-constructor-init,
119+
-bugprone-empty-catch,
120+
-bugprone-exception-escape,
121+
-bugprone-fold-init-type,
122+
-bugprone-incorrect-roundings,
123+
-bugprone-integer-division,
124+
-bugprone-macro-parentheses,
125+
-bugprone-narrowing-conversions,
126+
-bugprone-non-zero-enum-to-bool-conversion,
127+
-bugprone-redundant-branch-condition,
128+
-bugprone-reserved-identifier,
129+
-bugprone-suspicious-include,
130+
-bugprone-suspicious-missing-comma,
131+
-bugprone-switch-missing-default-case,
132+
-bugprone-too-small-loop-variable,
133+
-bugprone-unchecked-optional-access,
134+
-bugprone-unsafe-functions,
135+
-bugprone-unused-local-non-trivial-variable,
136+
-cppcoreguidelines-avoid-const-or-ref-data-members,
137+
-cppcoreguidelines-avoid-non-const-global-variables,
138+
-cppcoreguidelines-init-variables,
139+
-cppcoreguidelines-macro-usage,
140+
-cppcoreguidelines-missing-std-forward,
141+
-cppcoreguidelines-prefer-member-initializer,
142+
-cppcoreguidelines-pro-bounds-array-to-pointer-decay,
143+
-cppcoreguidelines-pro-type-const-cast,
144+
-cppcoreguidelines-pro-type-cstyle-cast,
145+
-cppcoreguidelines-pro-type-member-init,
146+
-cppcoreguidelines-pro-type-reinterpret-cast,
147+
-cppcoreguidelines-pro-type-static-cast-downcast,
148+
-cppcoreguidelines-pro-type-union-access,
149+
-cppcoreguidelines-slicing,
150+
-cppcoreguidelines-virtual-class-destructor,
151+
# Positives for the following checks are currently being fixed and should be reported as errors.
152+
# clang-analyzer-*
153+
# clang-diagnostic-*
154+
# google-default-arguments
155+
# misc-include-cleaner
156+
# misc-redundant-expression
157+
# misc-unused-parameters
158+
# performance-for-range-copy
159+
# performance-inefficient-string-concatenation
160+
# performance-inefficient-vector-operation
161+
# performance-move-const-arg
162+
# performance-no-automatic-move
163+
# performance-type-promotion-in-math-fn
164+
# performance-unnecessary-copy-initialization
165+
# performance-unnecessary-value-param
114166
CheckOptions:
115167
modernize-avoid-c-arrays.AllowStringArrays: true
116168
# Common tolerated conversions

‎.claude/commands/migrate-ccdb.md‎

Lines changed: 201 additions & 18 deletions
Large diffs are not rendered by default.

‎.github/workflows/clean-test.yml‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,6 @@ name: Clean PR checks
2424
type: boolean
2525
default: true
2626

27-
'check_build/O2Physics/o2/macOS':
28-
description: build/O2Physics/o2/macOS
29-
type: boolean
30-
default: true
31-
3227
'check_build/O2Physics/o2':
3328
description: build/O2Physics/o2
3429
type: boolean
@@ -39,6 +34,11 @@ name: Clean PR checks
3934
type: boolean
4035
default: true
4136

37+
'check_build/O2Physics/code-check':
38+
description: build/O2Physics/code-check
39+
type: boolean
40+
default: true
41+
4242
permissions: {}
4343

4444
jobs:

‎.github/workflows/labeler.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
steps:
1717
- name: Label the PR
1818
id: labeler
19-
uses: actions/labeler@v6
19+
uses: actions/labeler@v7
2020
with:
2121
repo-token: ${{ secrets.GITHUB_TOKEN }}
2222
sync-labels: true

‎.github/workflows/mega-linter.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939
id: ml
4040
# You can override MegaLinter flavor used to have faster performances
4141
# More info at https://megalinter.io/flavors/
42-
uses: oxsecurity/megalinter@v9.6.0
42+
uses: oxsecurity/megalinter@v10.1.0
4343
env:
4444
# All available variables are described in documentation:
4545
# https://megalinter.io/configuration/

‎.github/workflows/stale.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
stale:
1414
runs-on: ubuntu-latest
1515
steps:
16-
- uses: actions/stale@v10
16+
- uses: actions/stale@v11
1717
with:
1818
repo-token: ${{ secrets.GITHUB_TOKEN }}
1919
stale-pr-message: 'This PR has not been updated in the last 30 days. Is it still needed? Unless further action is taken, it will be closed in 5 days.'

‎.mega-linter.yml‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,6 @@ DISABLE_LINTERS:
1919
- PYTHON_FLAKE8
2020
- PYTHON_ISORT
2121
- REPOSITORY_DEVSKIM
22-
- REPOSITORY_GITLEAKS
23-
- REPOSITORY_KICS
2422
- REPOSITORY_OSV_SCANNER
2523
- REPOSITORY_SECRETLINT
2624
- REPOSITORY_TRIVY
@@ -43,5 +41,4 @@ CPP_CPPLINT_FILE_EXTENSIONS: [".C", ".c", ".c++", ".cc", ".cl", ".cpp", ".cu", "
4341
CPP_CLANG_FORMAT_FILE_EXTENSIONS: [".C", ".c", ".c++", ".cc", ".cl", ".cpp", ".cu", ".cuh", ".cxx", ".cxx.in", ".h", ".h++", ".hh", ".h.in", ".hpp", ".hxx", ".inc", ".inl", ".macro"]
4442
CPP_CPPCHECK_FILE_EXTENSIONS: [".C", ".c", ".c++", ".cc", ".cl", ".cpp", ".cu", ".cuh", ".cxx", ".cxx.in", ".h", ".h++", ".hh", ".h.in", ".hpp", ".hxx", ".inc", ".inl", ".macro"]
4543
CPP_CPPCHECK_ARGUMENTS: --language=c++ --std=c++20 --enable=style --check-level=exhaustive --suppressions-list=cppcheck_suppressions --inline-suppr --force
46-
REPOSITORY_GITLEAKS_PR_COMMITS_SCAN: true
4744
ACTION_ZIZMOR_UNSECURED_ENV_VARIABLES: [GITHUB_TOKEN]

‎.pre-commit-config.yaml‎

Lines changed: 36 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,47 @@
22
# See https://pre-commit.com/hooks.html for more hooks
33
repos:
44
- repo: https://github.com/pre-commit/pre-commit-hooks
5-
rev: v6.0.0
5+
rev: 3e8a8703264a2f4a69428a0aa4dcb512790b2c8c # frozen: v6.0.0
66
hooks:
7-
- id: trailing-whitespace
7+
- id: check-added-large-files
8+
- id: check-ast
9+
- id: check-case-conflict
10+
- id: check-executables-have-shebangs
11+
- id: check-merge-conflict
12+
- id: check-symlinks
13+
- id: check-yaml
814
- id: end-of-file-fixer
15+
- id: trailing-whitespace
16+
- repo: https://github.com/shellcheck-py/shellcheck-py
17+
rev: a6564f5d57444e123433a5c9af733e3975c77229 # frozen: v0.11.0.1-1
18+
hooks:
19+
- id: shellcheck
20+
- repo: https://github.com/astral-sh/ruff-pre-commit
21+
rev: f12be1ebaa5351c1fc76472de98db2c3446c8253 # frozen: v0.16.10
22+
hooks:
23+
- id: ruff-check # linter
24+
args: ["--fix"]
25+
- id: ruff-format # formatter
26+
- repo: local
27+
hooks:
28+
- id: format-includes
29+
name: format includes
30+
language: python
31+
entry: Scripts/format_includes.py
32+
types: [c++]
933
- repo: https://github.com/pre-commit/mirrors-clang-format
10-
rev: v20.1.3 # clang-format version (keep synced with https://github.com/alisw/ali-bot/blob/master/.github/workflows/c++-code-formatting.yml)
34+
# clang-format version (keep synced with https://github.com/alisw/ali-bot/blob/master/.github/workflows/c++-code-formatting.yml)
35+
rev: 7ec07eeb4135dc6ecf410d24ac4ead986a5d413d # frozen: v20.1.3
1136
hooks:
1237
- id: clang-format
1338
- repo: https://github.com/cpplint/cpplint
14-
rev: 2.0.2
39+
rev: 350702a4d39395571bd118c9a3cff0a573488d61 # frozen: 2.0.2
1540
hooks:
1641
- id: cpplint
42+
- repo: local
43+
hooks:
44+
- id: O2 linter
45+
name: O2 linter
46+
language: python
47+
entry: Scripts/o2_linter.py
48+
types_or: [c++, cmake, python]

‎ALICE3/Core/ALICE3CoreLinkDef.h‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99
// granted to it by virtue of its status as an Intergovernmental Organization
1010
// or submit itself to any jurisdiction.
1111

12+
// NOLINT(build/header_guard)
13+
1214
#pragma link off all globals;
1315
#pragma link off all classes;
1416
#pragma link off all functions;

0 commit comments

Comments
 (0)