Gofmt formats Go programs. We run gofmt -s
on your code, where -s
is for the "simplify" command
No problems detected. Good job!
go vet
examines Go source code and reports suspicious constructs, such as Printf calls whose arguments do not align with the format string.
No problems detected. Good job!
Gocyclo calculates cyclomatic complexities of functions in Go source code.
The cyclomatic complexity of a function is calculated according to the following rules:
1 is the base complexity of a function
+1 for each 'if', 'for', 'case', '&&' or '||'
Go Report Card warns on functions with cyclomatic complexity > 15.
No problems detected. Good job!
Golint is a linter for Go source code.
-
access-watcher/internal/relation-tuple.go
- Line 12: warning: exported var ErrInvalidSubjectSetString should have comment or be unexported (golint)
- Line 13: warning: exported var ErrInvalidRelationTupleString should have comment or be unexported (golint)
- Line 15: warning: exported type Subject should have comment or be unexported (golint)
- Line 24: warning: exported type SubjectID should have comment or be unexported (golint)
- Line 28: warning: exported method SubjectID.MarshalJSON should have comment or be unexported (golint)
- Line 32: warning: exported method SubjectID.Equals should have comment or be unexported (golint)
- Line 40: warning: exported method SubjectID.FromString should have comment or be unexported (golint)
- Line 49: warning: exported method SubjectID.ToProto should have comment or be unexported (golint)
- Line 57: warning: exported type SubjectSet should have comment or be unexported (golint)
- Line 63: warning: exported method SubjectSet.Equals should have comment or be unexported (golint)
- Line 75: warning: exported method SubjectSet.MarshalJSON should have comment or be unexported (golint)
- Line 79: warning: exported method SubjectSet.ToProto should have comment or be unexported (golint)
- Line 91: warning: exported method SubjectSet.FromString should have comment or be unexported (golint)
- Line 118: warning: exported type InternalRelationTuple should have comment or be unexported (golint)
- Line 140: warning: exported function RelationTupleFromString should have comment or be unexported (golint)
-
access-watcher/internal/watcher.go
- Line 13: warning: exported type AccessWatcherOption should have comment or be unexported (golint)
- Line 15: warning: exported function WithChangelogDatastore should have comment or be unexported (golint)
- Line 21: warning: exported type AccessWatcher should have comment or be unexported (golint)
- Line 27: warning: exported function NewAccessWatcher should have comment or be unexported (golint)
- Line 38: warning: exported method AccessWatcher.Watch should have comment or be unexported (golint)
- Line 74: warning: exported method AccessWatcher.Close should have comment or be unexported (golint)
Checks whether your project has a LICENSE file.
IneffAssign detects ineffectual assignments in Go code.
-
access-watcher/cmd/access-watcher/main.go
- Line 15: warning: no required module provides package github.com/authorizer-tech/access-watcher/gen/go/authorizer-tech/accesswatcher/v1alpha1; to add it: (ineffassign)
- Line 15: warning: could not import github.com/authorizer-tech/access-watcher/gen/go/authorizer-tech/accesswatcher/v1alpha1 (invalid package name: "") (ineffassign)
-
access-watcher/internal/relation-tuple.go
- Line 8: warning: no required module provides package github.com/authorizer-tech/access-watcher/gen/go/authorizer-tech/accesswatcher/v1alpha1; to add it: (ineffassign)
- Line 8: warning: could not import github.com/authorizer-tech/access-watcher/gen/go/authorizer-tech/accesswatcher/v1alpha1 (invalid package name: "") (ineffassign)
Misspell Finds commonly misspelled English words
No problems detected. Good job!