Coccinelle vs Roslynator
Coccinelle
coccinelle.gitlabpages.inria.frRoslynator
github.comSide by side
| Figure | Coccinelle | Roslynator |
|---|---|---|
| Price from | Free | Free |
| Free plan | Yes | Yes |
| Free trial | — | — |
| Open source | — | — |
| Windows | — | Yes |
| macOS | Yes | Yes |
| Linux | Yes | Yes |
| Plans published | 1 | 1 |
| Spec score · Code Refactoring Tools | 7.9 (#9) | 7.5 (#15) |
| Purpose | Coccinelle is a program matching and transformation engine that uses SmPL to specify desired matches and transformations in C code. | Roslynator is a set of code analysis tools for C#, powered by Roslyn. |
Plans
In their own words
Coccinelle
Coccinelle is a free program matching and transformation engine for working with C code. It uses SmPL to describe code patterns and the transformations to apply when matches are found. A single semantic patch can change code at many sites across hundreds of files while allowing for differences in spacing, variable names, irrelevant code, and coding style. The project describes uses including automating collateral changes after library API evolution and finding and fixing bugs in systems code. Coccinelle semantic patches and bug fixes have been integrated into the official Linux tree, and semantic patches are available in the Linux scripts directory for use with coccicheck. It supports C and C++, with C++ mode invoked using --c++; the project says its C++ support is still being extended, including for high performance computing. The download page lists version 1.3.3, dated September 2, 2026, with source code and precompiled spatch builds. It is available for Linux and macOS as desktop software. Source builds require OCaml, with Python and Menhir needed in specified cases.
Roslynator
Roslynator is a set of code analysis tools for C# development environments built on Roslyn. Its IDE extensions offer refactorings and fixes for compiler diagnostics, while analyzers are distributed separately through NuGet packages. Listed editor extensions cover Visual Studio 2026 and 2022, VS Code, and Open VSX. The VS Code extension requires legacy OmniSharp with `dotnet.server.useOmnisharp` set to true and does not work with C# Dev Kit. A command-line tool can be installed with `dotnet tool install -g roslynator.dotnet.cli`; the CLI is also integrated into MegaLinter for CI. EditorConfig settings can configure analyzers, refactorings, and compiler diagnostic fixes, and a testing framework supports unit tests for those tools. The .NET client libraries extend the Roslyn API but do not include analyzers or refactorings. The repository is licensed under Apache License 2.0. Its security policy supports version 5.x, CLI 0.x, and the Visual Studio 2026 and VS Code extensions; versions below 5.0 and Visual Studio 2022 extensions are out of support.