Skip to content
SPECIFICTION
Get listed

clang-tidy vs HLint

clang-tidy

clang.llvm.org

HLint

github.com

Side by side

Figureclang-tidyHLint
Price fromFreeFree
Free planYesYes
Free trial——
Open source——
Windows—Yes
macOS—Yes
LinuxYesYes
Plans published11
Spec score · Linters8.5 (#4)7.7 (#19)
ConfigurationChecks can be selected with comma-separated positive and negative globs, and configuration can be read from a .clang-tidy file.Projects can configure HLint with a .hlint.yaml file, including custom hints and ignored suggestions.
LicenseThe LLVM project states that its code is licensed under the Apache 2.0 License with LLVM exceptions.The repository provides HLint under a BSD-style license that permits redistribution and use in source and binary forms subject to listed conditions.
Purposeclang-tidy is a Clang-based C++ linter for diagnosing and fixing typical programming errors, including style violations, interface misuse, and bugs detectable by static analysis.HLint suggests possible improvements to Haskell code, including alternative functions, simplifications, and redundancies.

Plans

clang-tidy

  • clang-tidyFree

clang-tidy pricing →

HLint

  • FreeFree

HLint pricing →

In their own words

clang-tidy

clang-tidy has no write-up on Specifiction yet; its figures are above.

Visit clang.llvm.org

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.

Visit github.com