pingcap / pingcap/tidb-operator

enable all default enabled linters of golangci-lint

Open
#3,202 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Hacktoberfest status/help-wanted
Dominant language
Go
Stars
1.3k
Forks
540
Avg merge
3d 2h
Merged PRs (30d)
18

Description

enable all default enabled linters of golangci-lint

you can run make lint to run it.
the currently config file of golangci-lint https://github.com/pingcap/tidb-operator/blob/master/.golangci.yml

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with .golangci.yml and run make lint to inspect the current configuration and reported violations. Enable the default-enabled linters in the configuration and address the resulting lint findings. Done means the requested linters are enabled and make lint completes successfully.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
tooling
Issue type
Refactor
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
40/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.