Skip to content

Commit

Permalink
poor documentation to tickle the linter
Browse files Browse the repository at this point in the history
  • Loading branch information
gnoack committed Jan 19, 2024
1 parent d8ec290 commit 2aaa22d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 3 additions & 0 deletions landlock/opt.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
package landlock

func absolutelyUnused() {

Check failure on line 3 in landlock/opt.go

View workflow job for this annotation

GitHub Actions / Lint

func absolutelyUnused is unused (U1000)

Check failure on line 3 in landlock/opt.go

View workflow job for this annotation

GitHub Actions / Lint

func absolutelyUnused is unused (U1000)
}

// Rule represents one or more Landlock rules which can be added to a
// Landlock ruleset.
type Rule interface {
Expand Down
3 changes: 2 additions & 1 deletion landlock/path_opt.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ import (
ll "github.com/landlock-lsm/go-landlock/landlock/syscall"
)

// FSRule is a Rule which permits access to file system paths.
// such wrong documentation (just for testing)

type FSRule struct {
accessFS AccessFSSet
paths []string
Expand Down

0 comments on commit 2aaa22d

Please sign in to comment.