Add govet/golint into Travis CI build

Fix current issues
This commit is contained in:
Andrey Smirnov
2017-03-22 00:39:27 +03:00
parent 07472bec50
commit 11d828b3b1
22 changed files with 121 additions and 111 deletions

View File

@@ -2,9 +2,10 @@ package deb
import (
"fmt"
"sort"
"github.com/smira/aptly/aptly"
"github.com/smira/aptly/utils"
"sort"
)
// Dependency options
@@ -66,6 +67,7 @@ func NewPackageList() *PackageList {
return NewPackageListWithDuplicates(false, 1000)
}
// NewPackageListWithDuplicates creates empty package list which might allow or block duplicate packages
func NewPackageListWithDuplicates(duplicates bool, capacity int) *PackageList {
if capacity == 0 {
capacity = 1000
@@ -247,7 +249,7 @@ func (l *PackageList) Strings() []string {
for _, p := range l.packages {
result[i] = string(p.Key(""))
i += 1
i++
}
return result