Makefile: make "lint" target also lint cmd/continuity module and fix linting issues#255
Merged
Merged
Conversation
This was referenced Oct 28, 2024
691014b to
975858d
Compare
Member
Author
|
Ah! Two / Three remaining; I thought I had patches for that, but probably stashed them; |
Add nolint-comments, and a small utility to show either the user/group
name (if present), otherwise fall back to use Uid/Gid.
Before this patch:
cd cmd/continuity
go install
continuity build ./continuityfs/ > manifest.pb
continuity ls ./manifest.pb
-rw-r--r-- 7.5 kB /fuse.go
-rw-r--r-- 1.7 kB /provider.go
With this patch:
cd cmd/continuity
go install
continuity build ./continuityfs/ > manifest.pb
continuity ls ./manifest.pb
-rw-r--r-- 501 20 7.5 kB /fuse.go
-rw-r--r-- 501 20 1.7 kB /provider.go
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Error: continuityfs/fuse.go:200:15: SA1019: fuse.ENOENT is deprecated: Return a syscall.Errno directly. See ToErrno for exact rules. (staticcheck)
return nil, fuse.ENOENT
^
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
cmd/continuity is a separate module, and therefore was not linted. Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
AkihiroSuda
approved these changes
Oct 30, 2024
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
cmd/continuity: fix SA1019: entry.User/entry.Group is deprecated
Add nolint-comments, and a small utility to show either the user/group
name (if present), otherwise fall back to use Uid/Gid.
Before this patch:
With this patch:
cmd/continuity/continuityfs: SA1019: fuse.ENOENT is deprecated
Makefile: make "lint" target also lint cmd/continuity module
cmd/continuity is a separate module, and therefore was not linted.