Skip to content

Commit

Permalink
apply new lint rule to not separate aliased imports
Browse files Browse the repository at this point in the history
  • Loading branch information
wass3r committed Mar 9, 2024
1 parent e87df8d commit dd87263
Show file tree
Hide file tree
Showing 22 changed files with 20 additions and 42 deletions.
1 change: 0 additions & 1 deletion api/repo/repair.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import (
"github.com/sirupsen/logrus"

wh "github.com/go-vela/server/api/webhook"

"github.com/go-vela/server/database"
"github.com/go-vela/server/router/middleware/org"
"github.com/go-vela/server/router/middleware/repo"
Expand Down
3 changes: 1 addition & 2 deletions compiler/native/compile.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,10 @@ import (
"strings"
"time"

yml "github.com/buildkite/yaml"
"github.com/hashicorp/go-cleanhttp"
"github.com/hashicorp/go-retryablehttp"

yml "github.com/buildkite/yaml"

"github.com/go-vela/types/constants"
"github.com/go-vela/types/library"
"github.com/go-vela/types/pipeline"
Expand Down
3 changes: 1 addition & 2 deletions compiler/native/compile_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,12 @@ import (
"testing"
"time"

yml "github.com/buildkite/yaml"
"github.com/gin-gonic/gin"
"github.com/google/go-cmp/cmp"
"github.com/google/go-github/v59/github"
"github.com/urfave/cli/v2"

yml "github.com/buildkite/yaml"

"github.com/go-vela/types"
"github.com/go-vela/types/constants"
"github.com/go-vela/types/library"
Expand Down
3 changes: 1 addition & 2 deletions compiler/native/parse.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,10 @@ import (

"github.com/buildkite/yaml"

types "github.com/go-vela/types/yaml"

"github.com/go-vela/server/compiler/template/native"
"github.com/go-vela/server/compiler/template/starlark"
"github.com/go-vela/types/constants"
types "github.com/go-vela/types/yaml"
)

// ParseRaw converts an object to a string.
Expand Down
3 changes: 1 addition & 2 deletions compiler/template/native/render.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,8 @@ import (
"github.com/Masterminds/sprig/v3"
"github.com/buildkite/yaml"

types "github.com/go-vela/types/yaml"

"github.com/go-vela/types/raw"
types "github.com/go-vela/types/yaml"
)

// Render combines the template with the step in the yaml pipeline.
Expand Down
3 changes: 1 addition & 2 deletions compiler/template/native/render_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,8 @@ import (
"os"
"testing"

"github.com/google/go-cmp/cmp"

goyaml "github.com/buildkite/yaml"
"github.com/google/go-cmp/cmp"

"github.com/go-vela/types/raw"
"github.com/go-vela/types/yaml"
Expand Down
5 changes: 2 additions & 3 deletions compiler/template/starlark/render.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,12 @@ import (
"errors"
"fmt"

yaml "github.com/buildkite/yaml"
"go.starlark.net/starlark"
"go.starlark.net/starlarkstruct"

yaml "github.com/buildkite/yaml"
types "github.com/go-vela/types/yaml"

"github.com/go-vela/types/raw"
types "github.com/go-vela/types/yaml"
)

var (
Expand Down
3 changes: 1 addition & 2 deletions compiler/template/starlark/render_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,8 @@ import (
"os"
"testing"

"github.com/google/go-cmp/cmp"

goyaml "github.com/buildkite/yaml"
"github.com/google/go-cmp/cmp"

"github.com/go-vela/types/raw"
"github.com/go-vela/types/yaml"
Expand Down
1 change: 0 additions & 1 deletion internal/token/compose_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import (
"time"

"github.com/gin-gonic/gin"

jwt "github.com/golang-jwt/jwt/v5"

"github.com/go-vela/types"
Expand Down
1 change: 0 additions & 1 deletion internal/token/parse_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import (
"time"

"github.com/gin-gonic/gin"

jwt "github.com/golang-jwt/jwt/v5"

"github.com/go-vela/types/constants"
Expand Down
3 changes: 1 addition & 2 deletions mock/server/pipeline.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,8 @@ import (
"net/http"
"strings"

"github.com/gin-gonic/gin"

yml "github.com/buildkite/yaml"
"github.com/gin-gonic/gin"

"github.com/go-vela/types"
"github.com/go-vela/types/library"
Expand Down
3 changes: 1 addition & 2 deletions router/build.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,10 @@ package router
import (
"github.com/gin-gonic/gin"

bmiddleware "github.com/go-vela/server/router/middleware/build"

"github.com/go-vela/server/api/build"
"github.com/go-vela/server/api/log"
"github.com/go-vela/server/router/middleware"
bmiddleware "github.com/go-vela/server/router/middleware/build"
"github.com/go-vela/server/router/middleware/executors"
"github.com/go-vela/server/router/middleware/perm"
)
Expand Down
3 changes: 1 addition & 2 deletions router/middleware/claims/claims_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
package claims

import (
_context "context"
"fmt"
"net/http"
"net/http/httptest"
Expand All @@ -14,8 +15,6 @@ import (
"github.com/gin-gonic/gin"
"github.com/golang-jwt/jwt/v5"

_context "context"

"github.com/go-vela/server/database"
"github.com/go-vela/server/internal/token"
"github.com/go-vela/types/constants"
Expand Down
3 changes: 1 addition & 2 deletions router/middleware/perm/perm_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
package perm

import (
_context "context"
"fmt"
"net/http"
"net/http/httptest"
Expand All @@ -12,8 +13,6 @@ import (
"github.com/gin-gonic/gin"
"github.com/golang-jwt/jwt/v5"

_context "context"

"github.com/go-vela/server/database"
"github.com/go-vela/server/internal/token"
"github.com/go-vela/server/router/middleware/build"
Expand Down
3 changes: 1 addition & 2 deletions router/middleware/user/user_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
package user

import (
_context "context"
"fmt"
"net/http"
"net/http/httptest"
Expand All @@ -13,8 +14,6 @@ import (
"github.com/gin-gonic/gin"
"github.com/golang-jwt/jwt/v5"

_context "context"

"github.com/go-vela/server/database"
"github.com/go-vela/server/internal/token"
"github.com/go-vela/server/router/middleware/claims"
Expand Down
3 changes: 1 addition & 2 deletions router/pipeline.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,10 @@ package router
import (
"github.com/gin-gonic/gin"

pmiddleware "github.com/go-vela/server/router/middleware/pipeline"

"github.com/go-vela/server/api/pipeline"
"github.com/go-vela/server/router/middleware/org"
"github.com/go-vela/server/router/middleware/perm"
pmiddleware "github.com/go-vela/server/router/middleware/pipeline"
"github.com/go-vela/server/router/middleware/repo"
)

Expand Down
3 changes: 1 addition & 2 deletions router/repo.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,12 @@ package router
import (
"github.com/gin-gonic/gin"

rmiddleware "github.com/go-vela/server/router/middleware/repo"

"github.com/go-vela/server/api/build"
"github.com/go-vela/server/api/repo"
"github.com/go-vela/server/router/middleware"
"github.com/go-vela/server/router/middleware/org"
"github.com/go-vela/server/router/middleware/perm"
rmiddleware "github.com/go-vela/server/router/middleware/repo"
)

// RepoHandlers is a function that extends the provided base router group
Expand Down
3 changes: 1 addition & 2 deletions router/schedule.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,12 @@ package router
import (
"github.com/gin-gonic/gin"

sMiddleware "github.com/go-vela/server/router/middleware/schedule"

"github.com/go-vela/server/api/schedule"
"github.com/go-vela/server/router/middleware"
"github.com/go-vela/server/router/middleware/org"
"github.com/go-vela/server/router/middleware/perm"
"github.com/go-vela/server/router/middleware/repo"
sMiddleware "github.com/go-vela/server/router/middleware/schedule"
)

// ScheduleHandler is a function that extends the provided base router group
Expand Down
3 changes: 1 addition & 2 deletions router/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,10 @@ package router
import (
"github.com/gin-gonic/gin"

smiddleware "github.com/go-vela/server/router/middleware/service"

"github.com/go-vela/server/api/service"
"github.com/go-vela/server/router/middleware"
"github.com/go-vela/server/router/middleware/perm"
smiddleware "github.com/go-vela/server/router/middleware/service"
)

// ServiceHandlers is a function that extends the provided base router group
Expand Down
3 changes: 1 addition & 2 deletions router/step.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,10 @@ package router
import (
"github.com/gin-gonic/gin"

smiddleware "github.com/go-vela/server/router/middleware/step"

"github.com/go-vela/server/api/step"
"github.com/go-vela/server/router/middleware"
"github.com/go-vela/server/router/middleware/perm"
smiddleware "github.com/go-vela/server/router/middleware/step"
)

// StepHandlers is a function that extends the provided base router group
Expand Down
3 changes: 1 addition & 2 deletions router/worker.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,10 @@ package router
import (
"github.com/gin-gonic/gin"

wmiddleware "github.com/go-vela/server/router/middleware/worker"

"github.com/go-vela/server/api/worker"
"github.com/go-vela/server/router/middleware"
"github.com/go-vela/server/router/middleware/perm"
wmiddleware "github.com/go-vela/server/router/middleware/worker"
)

// WorkerHandlers is a function that extends the provided base router group
Expand Down
3 changes: 1 addition & 2 deletions scm/github/authentication_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,14 @@
package github

import (
_context "context"
"net/http"
"net/http/httptest"
"reflect"
"testing"

"github.com/gin-gonic/gin"

_context "context"

"github.com/go-vela/types/library"
)

Expand Down

0 comments on commit dd87263

Please sign in to comment.