batazor/go-auth

View on GitHub
models/user/user.go

Summary

Maintainability
A
0 mins
Test Coverage

exported function Add should have comment or be unexported
Open

func Add(user User) (error, User) {
Severity: Minor
Found in models/user/user.go by golint

exported function Update should have comment or be unexported
Open

func Update(user *User) (*User, error) {
Severity: Minor
Found in models/user/user.go by golint

func parameter userId should be userID
Open

func Delete(userId string) (int64, error) {
Severity: Minor
Found in models/user/user.go by golint

exported function Delete should have comment or be unexported
Open

func Delete(userId string) (int64, error) {
Severity: Minor
Found in models/user/user.go by golint

exported function List should have comment or be unexported
Open

func List() (error, []User) {
Severity: Minor
Found in models/user/user.go by golint

exported function FindCount should have comment or be unexported
Open

func FindCount(user User) (int64, error) {
Severity: Minor
Found in models/user/user.go by golint

exported function Find should have comment or be unexported
Open

func Find(user User) (*[]User, error) {
Severity: Minor
Found in models/user/user.go by golint

error should be the last type when returning multiple items
Open

func Add(user User) (error, User) {
Severity: Minor
Found in models/user/user.go by golint

don't use MixedCaps in package name; userModel should be usermodel
Open

package userModel
Severity: Minor
Found in models/user/user.go by golint

exported function FindOne should have comment or be unexported
Open

func FindOne(user User) (*User, error) {
Severity: Minor
Found in models/user/user.go by golint

error should be the last type when returning multiple items
Open

func List() (error, []User) {
Severity: Minor
Found in models/user/user.go by golint

There are no issues that match your filters.

Category
Status