revive – linter for Go

revive is a fast, configurable static analysis framework for Go that’s designed as a drop-in replacement for golint.

It helps developers enforce code quality with a broad collection of linting rules, supports stricter review workflows through configurable presets, and can be extended with custom rules and formatters to fit different projects and team standards.

This is free and open source software.

Key Features

  • Uses a TOML configuration file to enable, disable, and tune linting rules.
  • Supports optional type checking for rules that need deeper semantic analysis.
  • Lets you disable a specific rule or the entire linter for a file or a selected range of lines.
  • Includes multiple output formatters such as plain, JSON, checkstyle, SARIF, and stylish.
  • Allows custom return codes based on overall lint results or selected rule failures.
  • Can be extended with custom rules and custom formatters.

Website: github.com/mgechev/revive
Support:
Developer: Minko Gechev
License: MIT License

revive is written in Go. Learn Go with our recommended free books and free tutorials.


Best Free and Open Source Software Explore our comprehensive directory of recommended free and open source software. Our carefully curated collection spans every major software category.

This directory is part of our ongoing series of informative articles for Linux enthusiasts. It features hundreds of detailed reviews, along with open source alternatives to proprietary solutions from major corporations such as Google, Microsoft, Apple, Adobe, IBM, Cisco, Oracle, and Autodesk.

You’ll also find interesting projects to try, hardware coverage, free programming books and tutorials, and much more.

Discovered a useful open source Linux program that we haven’t covered yet? Let us know by completing this form.
Subscribe
Notify of
guest
0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments