Unleash/unleash-client-go

View on GitHub
storage.go

Summary

Maintainability
A
0 mins
Test Coverage
B
86%

exported method DefaultStorage.Init should have comment or be unexported
Open

func (ds *DefaultStorage) Init(backupPath, appName string) {
Severity: Minor
Found in storage.go by golint

exported method DefaultStorage.Get should have comment or be unexported
Open

func (ds DefaultStorage) Get(key string) (interface{}, bool) {
Severity: Minor
Found in storage.go by golint

exported method DefaultStorage.Load should have comment or be unexported
Open

func (ds *DefaultStorage) Load() error {
Severity: Minor
Found in storage.go by golint

exported method DefaultStorage.Reset should have comment or be unexported
Open

func (ds *DefaultStorage) Reset(data map[string]interface{}, persist bool) error {
Severity: Minor
Found in storage.go by golint

exported method DefaultStorage.List should have comment or be unexported
Open

func (ds *DefaultStorage) List() []interface{} {
Severity: Minor
Found in storage.go by golint

if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary)
Open

    } else {
Severity: Minor
Found in storage.go by golint

if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary)
Open

    } else {
Severity: Minor
Found in storage.go by golint

exported method DefaultStorage.Persist should have comment or be unexported
Open

func (ds *DefaultStorage) Persist() error {
Severity: Minor
Found in storage.go by golint

There are no issues that match your filters.

Category
Status