autowarefoundation / autoware

Autoware - the world's leading open-source software project for autonomous driving
https://www.autoware.org/
Apache License 2.0
8.58k stars 2.87k forks source link

chore(ci): add separate .clang-tidy-ci file #4918

Closed veqcc closed 4 days ago

veqcc commented 5 days ago

Description

This is the first step to achive the proposal: https://github.com/orgs/autowarefoundation/discussions/4876 .

I have made the following changes:

Checks and CheckOptions are exactly the same as original.

After this PR is merged, then each PR in autoware.universe would pass clang-tidy-differential workflow, unless it invokes new warnings.

Tests performed

The clang-tidy warnings are obtained in tier4 universe v0.29.0: https://github.com/tier4/autoware.universe/tree/v0.29.0 .

Effects on system behavior

Not applicable.

Interface changes

Pre-review checklist for the PR author

The PR author must check the checkboxes below when creating the PR.

In-review checklist for the PR reviewers

The PR reviewers must check the checkboxes below before approval.

Post-review checklist for the PR author

The PR author must check the checkboxes below before merging.

After all checkboxes are checked, anyone who has write access can merge the PR.

mojomex commented 5 days ago

@veqcc Hi! I just commented on the discussion page because this PR would break my in-IDE code analysis/style checks. Please review when you have time :pray:

mitsudome-r commented 5 days ago

Is the plan to add the same file in autoware.universe as well once this is merged?

xmfcx commented 5 days ago

@mitsudome-r

https://github.com/autowarefoundation/autoware.universe/blob/23d857d1c072525422a49f6ac6ec9364235bc55f/.github/workflows/clang-tidy-differential.yaml#L51

they are using this file here. No need to change in universe.