nasa / fprime

F´ - A flight software and embedded systems framework
https://fprime.jpl.nasa.gov
Apache License 2.0
9.95k stars 1.28k forks source link

Update of clang tidy checks #2710

Closed JohanBertrand closed 2 months ago

JohanBertrand commented 2 months ago
Related Issue(s)
Has Unit Tests (y/n)
Documentation Included (y/n)

Change Description

Rationale

Enforce consistent coding standard

Joshua-Anderson commented 2 months ago

The logic for separating out .clang-tidy and release.clang-tidy was because we had some clang tidy checks we wanted to enforce for flight code, but not project unit tests.

See this github workflow where release.clang-tidy is used

At this moment, we could remove release.clang-tidy if we were okay with disallowing recursion on unit tests, but there may be future checks we only want to enforce on flight code.

JohanBertrand commented 2 months ago

@Joshua-Anderson Thank you for the explanation, I am happy keeping two different files. I did not realize that the first call of clang-tidy on the CI was also running on the unit tests.

LeStarch commented 2 months ago

@JohanBertrand I think we will need to go with @Joshua-Anderson's suggestion. The failure we see is recursion used in a UT.

JohanBertrand commented 2 months ago

I reverted the clang-tidy configuration file changes and added some comments. It should be good to go!