Go Code Analysis

Open-source Go projects categorized as Code Analysis

Top 23 Go Code Analysis Projects

  • golangci-lint

    Fast linters Runner for Go

  • Project mention: makefile para projetos em Go | dev.to | 2024-02-19
  • goimports

    [mirror] Go Tools (by golang)

  • Project mention: Secure Randomness in Go 1.22 | news.ycombinator.com | 2024-05-07

    goimports has special-cased math/rand.Read vs crypto/rand.Read from basically the beginning. But https://github.com/golang/tools/commit/0835c735343e0d8e375f0... in 2016 references a time window where it could resolve "rand.Read" as "math/rand". Maybe you were in that time window?

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
  • revive

    🔥 ~6x faster, stricter, configurable, extensible, and beautiful drop-in replacement for golint

  • Project mention: revive v1.3.4 is now available | /r/golang | 2023-09-18

    The v1.3.4 of revive, the fast, configurable, extensible, flexible, and beautiful linter for Go, is available.

  • errcheck

    errcheck checks that you checked errors.

  • Project mention: Linter to check for errors ignored with _ | /r/golang | 2023-11-05

    In our codebase I noticed a few cases where people ignored errors returned from functions by assigning them to _, ie result, _ := foo(). The errcheck linter doesn't seem to catch this, does anyone know of a linter that does?

  • GoPlantUML

    PlantUML Class Diagram Generator for golang projects

  • PHP-Parser

    PHP parser written in Go (by z7zmey)

  • golines

    A golang formatter that fixes long lines

  • SaaSHub

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

    SaaSHub logo
  • go-cleanarch

    Clean architecture validator for go, like a The Dependency Rule and interaction between packages in your Go projects.

  • go-mod-outdated

    Find outdated dependencies of your Go projects. go-mod-outdated provides a table view of the go list -u -m -json all command which lists all dependencies of a Go project and their available minor and patch updates. It also provides a way to filter indirect dependencies and dependencies without updates.

  • goreturns

    A gofmt/goimports-like tool for Go programmers that fills in Go return statements with zero values to match the func return types

  • Chronos

    Chronos - A static race detector for the go language (by amit-davidson)

  • todocheck

    A static code analyser for annotated TODO comments

  • unconvert

    Remove unnecessary type conversions from Go source

  • dupl

    a tool for code clone detection

  • tickgit

    Manage your repository's TODOs, tickets and checklists as config in your codebase.

  • bodyclose

    Analyzer: checks whether HTTP response body is closed and a re-use of TCP connection is not blocked.

  • Project mention: TIL: Go Response Body MUST be closed, even if you don’t read it - Manish R Jain | /r/golang | 2023-05-12
  • gostatus

    A command line tool that shows the status of Go repositories.

  • GoCover.io

    GoCover.io offers the code coverage of any golang package as a service.

  • apicompat

    apicompat checks recent changes to a Go project for backwards incompatible changes

  • go-checkstyle

    checkstyle for go (by qiniu)

  • asty

    Converts golang AST to JSON and JSON to AST

  • testifylint

    The Golang linter that checks usage of github.com/stretchr/testify.

  • Project mention: Open source software maintenance is difficult: examples with Go math/rand/v2 and testify | dev.to | 2024-05-02

    PS: @Antonboom is doing an amazing work with testifylint. That is a major tool that helps Testify users to avoid v1's traps. More than a v2.

  • lint

    Run linters from Go code - (by surullabs)

  • SaaSHub

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

    SaaSHub logo
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 Code Analysis related posts

  • Secure Randomness in Go 1.22

    3 projects | news.ycombinator.com | 7 May 2024
  • Open source software maintenance is difficult: examples with Go math/rand/v2 and testify

    1 project | dev.to | 2 May 2024
  • Gopls/v0.15.0

    1 project | news.ycombinator.com | 26 Feb 2024
  • Experience Continuous Integration with Jenkins | Ansible | Artifactory | SonarQube | PHP

    8 projects | dev.to | 24 Feb 2024
  • makefile para projetos em Go

    1 project | dev.to | 19 Feb 2024
  • Finding unreachable functions with deadcode – The Go Programming Language

    1 project | news.ycombinator.com | 23 Jan 2024
  • Using Private Go Modules with golangci-lint in GitHub Actions

    4 projects | dev.to | 5 Jan 2024
  • A note from our sponsor - InfluxDB
    www.influxdata.com | 10 May 2024
    Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality. Learn more →

Index

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

Project Stars
1 golangci-lint 14,512
2 goimports 7,238
3 revive 4,626
4 errcheck 2,286
5 GoPlantUML 1,697
6 PHP-Parser 934
7 golines 833
8 go-cleanarch 825
9 go-mod-outdated 645
10 goreturns 524
11 Chronos 419
12 todocheck 414
13 unconvert 375
14 dupl 326
15 tickgit 320
16 bodyclose 299
17 gostatus 242
18 GoCover.io 228
19 apicompat 178
20 go-checkstyle 128
21 asty 74
22 testifylint 74
23 lint 66

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