Skip to content

Linting #5706

@faddat

Description

@faddat

Gofumpt lints more tightly than gofmt + goimports, and produces more regular code.

Today I saw @mholt's tweet about a feature freeze, and wanting to improve quality. When faced with such situations and a go codebase, I typically break out golangci-lint. So, here's the PR's:

They build off of one another, beginning with gofumpt. The one that lints the tests will be the most involved.

Goal

So, the goal of this would be to find small bugs/errors or put tests in more places, while creating a strict format for the code that coders don't need to enfoirce.

I can't say for sure that I can accomplish any style desire, but after a few years of doing extensive bughunting with golangci-lint and other tools, I can say that I can probably accomplish almost any style desire.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions