cpplint vs HLint
cpplint
github.comHLint
github.comSide by side
| Figure | cpplint | HLint |
|---|---|---|
| Price from | Free | Free |
| Free plan | Yes | Yes |
| Free trial | — | — |
| Open source | — | — |
| Windows | Yes | Yes |
| macOS | Yes | Yes |
| Linux | Yes | Yes |
| Plans published | 1 | 1 |
| Spec score · Linters | 7.9 (#12) | 7.7 (#19) |
| Audience | Cpplint is intended for developers checking C and C++ source files for style issues. | The project suggests that beginners may focus on warning hints and that larger projects can add custom hints or rules. |
| Integrations | Cpplint can run as a pre-commit hook and is included in MegaLinter, an open-source linter aggregator for CI. | The project lists editor plugins, Haskell Language Server, ghc-mod, Intero, a GHC source plugin, Code Climate, and GitHub Actions among its integrations. |
| License | The package is distributed under the BSD-3-Clause license. | The repository provides HLint under a BSD-style license that permits redistribution and use in source and binary forms subject to listed conditions. |
| Purpose | Cpplint is a command-line tool that checks C/C++ files for style issues according to Google’s C++ style guide. | HLint suggests possible improvements to Haskell code, including alternative functions, simplifications, and redundancies. |
Plans
In their own words
HLint
HLint is free software for analyzing Haskell source and suggesting possible improvements. It can point out alternative functions, simpler expressions, and redundant code. Every hint identifies the file and line, gives a severity and description, shows the code found, and proposes a replacement. Projects can configure behavior in a .hlint.yaml file, adding custom hints or ignoring selected suggestions. The --refactor flag applies some recommendations and requires the refactor executable from the apply-refact package on PATH. The --report flag creates an interactive HTML findings report. HLint runs on Linux, macOS, and Windows, with listed integrations including editor plugins, Haskell Language Server, ghc-mod, Intero, a GHC source plugin, Code Climate, and GitHub Actions. It analyzes one module at a time without type or scope knowledge. Version 3.10 is listed as released February 2, 2024. It is distributed under a BSD-style license.