Skip to content

[Lint] run clang-tidy in scripts/format.h, update clang-tidy rules - #19055

Merged
simon-mo merged 5 commits into
ray-project:masterfrom
mwtian:clang-tidy
Oct 5, 2021
Merged

simon-mo merged 5 commits into
ray-project:masterfrom
mwtian:clang-tidy

Conversation

@mwtian

@mwtian mwtian commented Oct 2, 2021 •

Copy link
Copy Markdown
Member

Why are these changes needed?

  • Make it more convenient to run clang-tidy by including it in scripts/format.h.
  • Use the same script to run clang-format in scripts/format.h as in CI. Currently they use different logic to run clang-format on changes, which can lead to different results.
  • Include additional clang-tidy rules to catch more readability issues.
  • Improve messages emitted during lint, to clarify installation instructions for missing tools, and make lint errors stand out more.

Related issue number

Checks

@mwtian mwtian mentioned this pull request Oct 4, 2021
6 tasks
@mwtian mwtian added @tests-ok and removed @tests-ok labels Oct 4, 2021

@scv119 scv119 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mwtian thanks a lot for keep improving this!

@simon-mo
simon-mo merged commit 5d9e3a0 into ray-project:master Oct 5, 2021
@mwtian
mwtian deleted the clang-tidy branch October 5, 2021 22:08
ericl added a commit to ericl/ray that referenced this pull request Oct 5, 2021
ericl added a commit that referenced this pull request Oct 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants