Go Linter

Open-source Go projects categorized as Linter

Top 23 Go Linter Projects

  • golangci-lint

    Fast linters runner for Go

    Project mention: Building a RESTful API with Go Fiber: An Express-Inspired Boilerplate | dev.to | 2024-10-05

    Linting is done using golangci-lint

  • SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
  • reviewdog

    šŸ¶ Automated code review tool integrated with any code analysis tools regardless of programming language

  • tfsec

    Tfsec is now part of Trivy

    Project mention: Deploying to Azure with Terraform and GitHub Actions | dev.to | 2024-09-19

    The next step in our pipeline is to do some static code analysis of our Terraform code to spot any potential misconfigurations. I'm using tfsec for this, but tfsec is migrating over to Trivy - I'll cover that in a future blog post, but for now we can add this using the following:

  • go-tools

    Staticcheck - The advanced Go linter

  • revive

    šŸ”„ ~6x faster, stricter, configurable, extensible, and beautiful drop-in replacement for golint

  • vale

    :pencil: A markup-aware linter for prose built with speed and extensibility in mind.

    Project mention: Scramble: Open-Source Alternative to Grammarly | news.ycombinator.com | 2024-09-17

    In the same space, I recommend checking out the Vale linter. Fairly powerful and open source, too. And doesn't rely on a backend.

    https://vale.sh

  • actionlint

    :octocat: Static checker for GitHub Actions workflow files

  • kube-score

    Kubernetes object analysis with recommendations for improved reliability and security. kube-score actively prevents downtime and bugs in your Kubernetes YAML and Charts. Static code analysis for Kubernetes.

    Project mention: šŸ¤– End to end LLMOps Pipeline - Part 7- Validating Kubernetes Manifests with kube-scorešŸ¤– | dev.to | 2024-08-18

    curl -L -o kube-score https://github.com/zegl/kube-score/releases/download/v1.11.0/kube-score_1.11.0_linux_amd64 chmod +x kube-score sudo mv kube-score /usr/local/bin/

  • dockle

    Container Image Linter for Security, Helping build the Best-Practice Docker Image, Easy to start

  • errcheck

    errcheck checks that you checked errors.

  • go-critic

    The most opinionated Go source code linter for code audit.

  • ls-lint

    An extremely fast directory and filename linter - Bring some structure to your project filesystem

  • joker

    Small Clojure interpreter, linter and formatter.

    Project mention: Glojure: Clojure interpreter hosted on Go, with extensible interop support | news.ycombinator.com | 2024-11-29
  • dep-tree

    Tool for helping developers keep their code bases clean and decoupled. It allows visualising a code base complexity using a 3d force-directed graph of files and the dependencies between them.

    Project mention: Show HN: Visualize the complexity of a Golang codebase with a 3D force graph | news.ycombinator.com | 2024-06-10

    Hi HN!

    I want to share a project for which Golang support was just added:

    https://github.com/gabotechs/dep-tree

    This is a tool that allows users to visualize the complexity of a code base using a 3D force-directed graph:

    It will take a Golang codebase entrypoint, typically `main.go`, it will parse the file and gather other files in which this file depends on (by resolving function names, types, etc...)

    It will recursively perform this operation with all the dependant files, until the full graph with all the source files is formed.

    It will render the graph using a force-directed layout, and all the source files will be placed in a three-dimensional space simulating some attraction/repulsion forces based on the dependencies between them.

    Clean and loosely coupled codebases will tend to form clusters of nodes in the 3d space separated from each other, while tightly coupled and messy codebases will be rendered with all the nodes grouped together without clear sense of separation.

    Here are some examples of rendering this graph for some well known projects:

    - Docker compose: https://dep-tree-explorer.vercel.app/api?repo=https%3A%2F%2F...

  • checkmake

    experimental linter/analyzer for Makefiles

  • pint

    Prometheus rule linter/validator (by cloudflare)

  • go-ruleguard

    Define and run pattern-based custom linting rules.

    Project mention: Custom Linting Rules in Go | news.ycombinator.com | 2024-08-25
  • graphql-go-tools

    GraphQL Router / API Gateway framework written in Golang, focussing on correctness, extensibility, and high-performance. Supports Federation v1 & v2, Subscriptions & more.

    Project mention: Scaling GraphQL Subscriptions in Go with Epoll and Event Driven Architecture | dev.to | 2024-03-04

    If you're interested in the full implementation of the resolver, you can find it on GitHub.

  • noverify

    Pretty fast linter (code static analysis utility) for PHP

  • vacuum

    vacuum is the worlds fastest OpenAPI 3, OpenAPI 2 / Swagger linter and quality analysis tool. Built in go, it tears through API specs faster than you can think. vacuum is compatible with Spectral rulesets and generates compatible reports.

    Project mention: Kong Gateway - Validando configuraƧƵes especĆ­ficas para exposiĆ§Ć£o de serviƧos | dev.to | 2024-05-31
  • protolint

    A pluggable linter and fixer to enforce Protocol Buffer style and conventions.

  • sqlvet

    Go fearless SQL. Sqlvet performs static analysis on raw SQL queries in your Go code base.

  • woke

    Detect non-inclusive language in your source code.

NOTE: The open source projects on this list are ordered by number of github stars. The number of mentions indicates repo mentiontions in the last 12 Months or since we started tracking (Dec 2020).

Go Linter discussion

Log in or Post with

Go Linter related posts

  • Custom Linting Rules in Go

    1 project | news.ycombinator.com | 25 Aug 2024
  • šŸ¤– End to end LLMOps Pipeline - Part 7- Validating Kubernetes Manifests with kube-scorešŸ¤–

    1 project | dev.to | 18 Aug 2024
  • An In-Depth Look at Kube-score : Day 22 of 50 days DevOps Tools Series

    1 project | dev.to | 3 Aug 2024
  • Rye Language

    2 projects | news.ycombinator.com | 13 Jul 2024
  • Go is a platform

    1 project | dev.to | 15 Jun 2024
  • Open source software maintenance is difficult: examples with Go math/rand/v2 and testify

    1 project | dev.to | 2 May 2024
  • Supabase Auth now supports Anonymous Sign-ins

    2 projects | dev.to | 17 Apr 2024
  • A note from our sponsor - SaaSHub
    www.saashub.com | 7 Dec 2024
    SaaSHub helps you find the best software and product alternatives Learn more ā†’

Index

What are some of the best open-source Linter projects in Go? This list will help you:

Project Stars
1 golangci-lint 15,815
2 reviewdog 7,999
3 tfsec 6,729
4 go-tools 6,236
5 revive 4,837
6 vale 4,528
7 actionlint 2,838
8 kube-score 2,801
9 dockle 2,799
10 errcheck 2,359
11 go-critic 1,864
12 ls-lint 1,742
13 joker 1,646
14 dep-tree 1,533
15 checkmake 1,043
16 pint 880
17 go-ruleguard 798
18 graphql-go-tools 705
19 noverify 677
20 vacuum 643
21 protolint 584
22 sqlvet 493
23 woke 458

Sponsored
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com

Did you konow that Go is
the 4th most popular programming language
based on number of metions?