/sonar-cxx

This repository contains a SonarQube plugin implementing C++ support.

Primary LanguageJavaGNU Lesser General Public License v3.0LGPL-3.0

SonarCloud / SonarSource SA
(Technical Debt analysis)
Quality Gate Coverage
JProfiler / ej-technologies GmbH
(when it comes to profiling: Java profiler tool)
JProfiler
GitHub Actions
(Windows & Linux CI/CD)
Build Status You can download latest snapshot from here.

SonarQube C++ Community plugin (cxx plugin)

SonarQube is an open platform to manage code quality. This plugin adds C++ support to SonarQube with the focus on integration of existing C++ tools.

The sensors for reading reports can be used with this cxx plugin or SonarCFamily plugin.

License

This plugin is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version.

Features

  • parser supporting
    • C++03, C++11, C++14,C++17, C++20
    • C89, C99, C11, C17
  • compiler specific extensions
    • Microsoft extensions: C++/CLI, Attributed ATL
    • GNU extensions
    • CUDA extensions
  • Microsoft Windows and Linux for runtime environment

Sensors for static and dynamic code analysis:

Test framework sensors for:

Coverage sensors for:

Simple to customize

Quickstart

  1. Setup a SonarQube instance
  2. Install the Plugin
  3. Run an analysis

Resources

Contributing

You are welcome to contribute. Help is needed.

Alternatives

That's not the only choice when you are looking for C++ support in SonarQube there is also

Choose whatever fits your needs.