Super-linter: C++ support

Created on 18 Jun 2020  路  14Comments  路  Source: github/super-linter

Is your feature request related to a problem? Please describe.

super-linter does not support C++

Describe the solution you'd like

Use super-linter to lint C++ code

Describe alternatives you've considered

Running clang-tidy and clazy yourself through custom run steps

backlog 馃 enhancement help wanted

Most helpful comment

Please add support for Cppcheck as well

All 14 comments

Few notes about using clang-tidy (that I fully support):

  • One requirement of the clang-tidy is that it needs compilation database (to work out all the includes). Therefore C++ super-linter might require a bit more setting up than for other languages.
  • The code must be actually compilable with Clang. That is often not the case if the given source code targets for example only Windows and use MSVC only.
  • Coming up with sensible defualt .clang-tidy will be a challenge but it might also be a requirement for setting C++ super-linter up to have it. The default however would be useful and make it more easy and accessible.

An alternative to clang-tidy might be cppcheck, but that comes with its own parser (not very good one, lack of tempalte support etc.) and much smaller scope of checks than clang-tidy.

Please add support for Cppcheck as well

And cpplint please

This issue has been automatically marked as stale because it has not had recent activity.
It will be closed in 14 days if no further activity occurs.
Thank you for your contributions.

If you think this issue should stay open, please remove the O: stale 馃 label or comment on the issue.

Not stale

This would help a great deal for MS projects like Windows Terminal. You'd think this would get some kind of feedback from a maintainer.

This issue has been automatically marked as stale because it has not had recent activity.
It will be closed in 14 days if no further activity occurs.
Thank you for your contributions.

If you think this issue should stay open, please remove the O: stale 馃 label or comment on the issue.

Not stale

This issue has been automatically marked as stale because it has not had recent activity.
It will be closed in 14 days if no further activity occurs.
Thank you for your contributions.

If you think this issue should stay open, please remove the O: stale 馃 label or comment on the issue.

This issue has been automatically marked as stale because it has not had recent activity.
It will be closed in 14 days if no further activity occurs.
Thank you for your contributions.

If you think this issue should stay open, please remove the O: stale 馃 label or comment on the issue.

Not stale

This issue has been automatically marked as stale because it has not had recent activity.
It will be closed in 14 days if no further activity occurs.
Thank you for your contributions.

If you think this issue should stay open, please remove the O: stale 馃 label or comment on the issue.

Not stale

Hey all, popular issue here anyone able to support development on this?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

kilasuit picture kilasuit  路  5Comments

IlanCosman picture IlanCosman  路  4Comments

jimsmith picture jimsmith  路  5Comments

brunomartinspro picture brunomartinspro  路  4Comments

DawidJanczak picture DawidJanczak  路  5Comments