Skip to content

tidy-checks=-* triggers false-positive #29

@2bndy5

Description

@2bndy5

I added this action to a project I'm helping. The project's owner is still learning C++, so I thought this action would help lament best practices...

I tried to disable clang-tidy by specifying

          tidy-checks: '-*'

but clang-tidy threw some errors which triggered an empty comment.

The workflow log reveals that clang-tidy didn't like being told to do nothing. The output from clang-tidy (which in this case was the --help output) was interpreted as though the user should be notified.

Error: no checks enabled.

I'd like to add a check in the run.py (run_clang_tidy()) that allows skipping clang-tidy when all checks are disabled (when tidy-checks=-*).

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions