Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

fmt: introduce golangci-lint and go vet#802

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Draft
gen2thomas wants to merge1 commit intotinygo-org:dev
base:dev
Choose a base branch
Loading
fromgen2thomas:feature/linter

Conversation

@gen2thomas
Copy link

@gen2thomasgen2thomas commentedOct 19, 2025
edited
Loading

see#789

Some notes:

Install the linter locally by:curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/HEAD/install.sh | sh -s -- -b $(go env GOPATH)/bin v2.5.0 or by a way of your choice:https://golangci-lint.run/docs/welcome/install/#local-installation.

The current linter configuration is quite long, because we drop many linters caused by a single or only a few findings. This will usually decreased by the time, when those findings are fixed.

Because we have to skip some packages and this is not supported by the linters, we have to apply the linter to each allowed package (folder) separately.

This leads to following behavior for local run:

  • all directories needs to be given as space separated list

This leads to following behavior for CI run when using the make file in docker container or plain setup in runner (currently implemented in this PR):

  • providedGitHub Action is not used
  • nice features for CI check can not be used, e.g. show findings inline

Alternatively, there are 2 other PRs usingGitHub Action:

One other alternative way for CI would be to collect all usable packages in another folder and set this as the working directory, but this would introduce other problems:

  • inline annotations will be lost, because we check another file internally
  • dependencies to "own" drivers package are ambiguous

TODO:

  • filter packages without dependency to "machine" imports
  • add new targets to Makefile
  • introduce linter configuration file
  • fix all serious issues in code, normally found by "go vet" ("make check")
  • tweak the configuration file
  • introduce files running for CI
  • fix all important issues in code
  • discuss about fix of small problems, e.g. unused variables etc.

@gen2thomasgen2thomasforce-pushed thefeature/linter branch 30 times, most recently fromcf7063c to10751edCompareOctober 21, 2025 18:17
@gen2thomasgen2thomasforce-pushed thefeature/linter branch 7 times, most recently from8ef1fd4 to534d4c1CompareOctober 22, 2025 11:25
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

1 participant

@gen2thomas

[8]ページ先頭

©2009-2025 Movatter.jp