Replies: 2 comments 5 replies
-
This is a good idea. We should be telling contributors what version was used to generate the concerns. It also wouldn't be a bad idea to include the commit SHA for the event that triggered the analysis. Clang-format doesn't output very muchUnlike clang-tidy, clang-format does not tell you what rule was violated. The only thing we can get from clang-format (using it's XML output) is
File annotations cannot include code snippetsI feel like I'm repeating this too often, so maybe it should go into the docs somewhere. This is a GitHub limitation. Given that each clang-format file annotation would look the same (and GitHub limits each job to only 50 maximum annotations), I decided to group all the line numbers that clang-format would change into a single annotation at the beginning of the file.
The closest solution I can think of is our There is currently no way to get more info about clang-format's output on push events. If you want detailed diagnostics, then I would suggest configuring clang-tidy to your liking by either
Note, clang-tidy works a lot better when it has a compilation database (typically generated by your build system generator -- like CMAKE, Meson, Bazel, etc) to detail what compiler flags are used for each file. |
Beta Was this translation helpful? Give feedback.
-
@rturrado Thanks to your feedback, we just released a patch that will now show the version number of the clang tool(s) used. |
Beta Was this translation helpful? Give feedback.
-
I'm adding cpp-linter to my project. And I'm getting this kind of reports from the C++ linter:
They seem not to go further than:
Is it possible to get a more detailed explanation of the formatting errors? This screenshot from cpp-linter's GitHub README seems to suggest so:
This is the recipe I'm using:
How do you get that line by line error explanation?
Many thanks!
Beta Was this translation helpful? Give feedback.
All reactions