Switch to gometalinter

Only small amount of required checks is enabled,
plan is to enable more linters as issues are fixed in the code.
This commit is contained in:
Andrey Smirnov
2017-03-23 00:50:49 +03:00
parent 53e59d3765
commit 516dd7b044
80 changed files with 201 additions and 123 deletions
+2 -1
View File
@@ -2,11 +2,12 @@ package api
import (
"fmt"
"github.com/gin-gonic/gin"
"io"
"os"
"path/filepath"
"strings"
"github.com/gin-gonic/gin"
)
func verifyPath(path string) bool {
+3 -2
View File
@@ -3,12 +3,13 @@ package api
import (
"bytes"
"fmt"
"github.com/gin-gonic/gin"
"github.com/smira/aptly/deb"
"io"
"mime"
"os"
"os/exec"
"github.com/gin-gonic/gin"
"github.com/smira/aptly/deb"
)
// GET /api/graph.:ext?layout=[vertical|horizontal(default)]
+2 -1
View File
@@ -2,10 +2,11 @@ package api
import (
"fmt"
"strings"
"github.com/gin-gonic/gin"
"github.com/smira/aptly/deb"
"github.com/smira/aptly/utils"
"strings"
)
// SigningOptions is a shared between publish API GPG options structure
+3 -2
View File
@@ -2,13 +2,14 @@ package api
import (
"fmt"
"os"
"path/filepath"
"github.com/gin-gonic/gin"
"github.com/smira/aptly/aptly"
"github.com/smira/aptly/database"
"github.com/smira/aptly/deb"
"github.com/smira/aptly/utils"
"os"
"path/filepath"
)
// GET /api/repos
+1
View File
@@ -2,6 +2,7 @@ package api
import (
"fmt"
"github.com/gin-gonic/gin"
"github.com/smira/aptly/database"
"github.com/smira/aptly/deb"