cogolabs/fleet2kubes

View on GitHub
pkg/fleet-unit/unit.go

Summary

Maintainability
A
0 mins
Test Coverage

exported function NewUnitState should have comment or be unexported
Open

func NewUnitState(loadState, activeState, subState, mID string) *UnitState {
Severity: Minor
Found in pkg/fleet-unit/unit.go by golint

exported function NewUnitFromOptions should have comment or be unexported
Open

func NewUnitFromOptions(opts []*unit.UnitOption) *UnitFile {
Severity: Minor
Found in pkg/fleet-unit/unit.go by golint

exported method Hash.Short should have comment or be unexported
Open

func (h Hash) Short() string {
Severity: Minor
Found in pkg/fleet-unit/unit.go by golint

exported method UnitFile.Bytes should have comment or be unexported
Open

func (u *UnitFile) Bytes() []byte {
Severity: Minor
Found in pkg/fleet-unit/unit.go by golint

type name will be used as unit.UnitState by other packages, and that stutters; consider calling this State
Open

type UnitState struct {
Severity: Minor
Found in pkg/fleet-unit/unit.go by golint

exported method Hash.Empty should have comment or be unexported
Open

func (h *Hash) Empty() bool {
Severity: Minor
Found in pkg/fleet-unit/unit.go by golint

type name will be used as unit.UnitNameInfo by other packages, and that stutters; consider calling this NameInfo
Open

type UnitNameInfo struct {
Severity: Minor
Found in pkg/fleet-unit/unit.go by golint

exported function NewUnitFile should have comment or be unexported
Open

func NewUnitFile(raw string) (*UnitFile, error) {
Severity: Minor
Found in pkg/fleet-unit/unit.go by golint

comment on exported type Hash should be of the form "Hash ..." (with optional leading article)
Open

// SHA1 sum
Severity: Minor
Found in pkg/fleet-unit/unit.go by golint

type name will be used as unit.UnitFile by other packages, and that stutters; consider calling this File
Open

type UnitFile struct {
Severity: Minor
Found in pkg/fleet-unit/unit.go by golint

exported function HashFromHexString should have comment or be unexported
Open

func HashFromHexString(key string) (Hash, error) {
Severity: Minor
Found in pkg/fleet-unit/unit.go by golint

There are no issues that match your filters.

Category
Status