1
0

Added new checks (#2)

* added gocyclo-check
* Added new tests to drone
* Added new checks to makefile
This commit is contained in:
konrad
2018-09-23 19:15:14 +00:00
committed by Gitea
parent b912ff4176
commit e724aeb206
9 changed files with 34 additions and 8 deletions

View File

@ -348,7 +348,7 @@ func IsErrNamespaceNameCannotBeEmpty(err error) bool {
}
func (err ErrNamespaceNameCannotBeEmpty) Error() string {
return fmt.Sprintf("Namespace name cannot be emtpy [NamespaceID: %d, UserID: %d]", err.NamespaceID, err.UserID)
return fmt.Sprintf("Namespace name cannot be empty [NamespaceID: %d, UserID: %d]", err.NamespaceID, err.UserID)
}
// ErrNamespaceOwnerCannotBeEmpty represents an error, where a namespace owner is empty.
@ -364,7 +364,7 @@ func IsErrNamespaceOwnerCannotBeEmpty(err error) bool {
}
func (err ErrNamespaceOwnerCannotBeEmpty) Error() string {
return fmt.Sprintf("Namespace owner cannot be emtpy [NamespaceID: %d, UserID: %d]", err.NamespaceID, err.UserID)
return fmt.Sprintf("Namespace owner cannot be empty [NamespaceID: %d, UserID: %d]", err.NamespaceID, err.UserID)
}
// ErrNeedToBeNamespaceAdmin represents an error, where the user is not the admin of that namespace (used i.e. when deleting a namespace)

View File

@ -39,7 +39,7 @@ func createTestEngine(fixturesDir string) error {
return fmt.Errorf("sync database struct error: %v", err)
}
// Show SQL-Queries if nessecary
// Show SQL-Queries if necessary
if os.Getenv("UNIT_TESTS_VERBOSE") == "1" {
x.ShowSQL(true)
}