ezeql/wiw-scheduler-api

View on GitHub
wiw/mysqlrepo.go

Summary

Maintainability
A
0 mins
Test Coverage

Your code does not pass gofmt in 2 places. Go fmt your code!
Open

package wiw
Severity: Minor
Found in wiw/mysqlrepo.go by gofmt

exported method MySQLRepository.ShiftsForUser should have comment or be unexported
Open

func (r *MySQLRepository) ShiftsForUser(ID int) ([]Shift, error) {
Severity: Minor
Found in wiw/mysqlrepo.go by golint

exported method MySQLRepository.UserDetails should have comment or be unexported
Open

func (r *MySQLRepository) UserDetails(ID int) (User, error) {
Severity: Minor
Found in wiw/mysqlrepo.go by golint

exported method MySQLRepository.UpdateOrCreateShift should have comment or be unexported
Open

func (r *MySQLRepository) UpdateOrCreateShift(shift *Shift) error {
Severity: Minor
Found in wiw/mysqlrepo.go by golint

exported method MySQLRepository.CreateShift should have comment or be unexported
Open

func (r *MySQLRepository) CreateShift(shift *Shift) error {
Severity: Minor
Found in wiw/mysqlrepo.go by golint

exported method MySQLRepository.ManagersForUser should have comment or be unexported
Open

func (r *MySQLRepository) ManagersForUser(ID int) ([]User, error) {
Severity: Minor
Found in wiw/mysqlrepo.go by golint

exported method MySQLRepository.ColleaguesForUser should have comment or be unexported
Open

func (r *MySQLRepository) ColleaguesForUser(ID int) ([]ColleaguesResult, error) {
Severity: Minor
Found in wiw/mysqlrepo.go by golint

exported type MySQLRepository should have comment or be unexported
Open

type MySQLRepository struct {
Severity: Minor
Found in wiw/mysqlrepo.go by golint

exported method MySQLRepository.ShiftsInRange should have comment or be unexported
Open

func (r *MySQLRepository) ShiftsInRange(from string, to string) ([]Shift, error) {
Severity: Minor
Found in wiw/mysqlrepo.go by golint

There are no issues that match your filters.

Category
Status