this post was submitted on 13 Jul 2023
4 points (100.0% liked)
C++
1732 readers
13 users here now
The center for all discussion and news regarding C++.
Rules
- Respect instance rules.
- Don't be a jerk.
- Please keep all posts related to C++.
founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
I would recommend clang-tidy. You can have it running if you use the clangd Language Server.
+1 for clang-tidy because clang is good. There is also scan-build in clang but it's a PITA to use.
And for OP, you can also install sonarlint on some editors/IDE but I don't know if the scanned code is sent remotely or not.
@glad_cat @jormaig
Here's also a good resource for linters and formatters, sorted by languages:
https://github.com/caramelomartins/awesome-linters