Skip to content

Commit

Permalink
adjust imports
Browse files Browse the repository at this point in the history
  • Loading branch information
turbolent committed Oct 22, 2024
1 parent 26a5dad commit b250d8b
Show file tree
Hide file tree
Showing 15 changed files with 29 additions and 30 deletions.
4 changes: 2 additions & 2 deletions lint/analyzers_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ import (

"github.com/stretchr/testify/require"

"github.com/onflow/cadence/runtime/common"
"github.com/onflow/cadence/runtime/sema"
"github.com/onflow/cadence/common"
"github.com/onflow/cadence/sema"
"github.com/onflow/cadence/tools/analysis"

"github.com/onflow/cadence-tools/lint"
Expand Down
6 changes: 3 additions & 3 deletions lint/cadence_v1_analyzer.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@
package lint

import (
"github.com/onflow/cadence/runtime/ast"
"github.com/onflow/cadence/runtime/common"
"github.com/onflow/cadence/runtime/sema"
"github.com/onflow/cadence/ast"
"github.com/onflow/cadence/common"
"github.com/onflow/cadence/sema"
"github.com/onflow/cadence/tools/analysis"
)

Expand Down
8 changes: 4 additions & 4 deletions lint/cadence_v1_analyzer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ import (

"github.com/stretchr/testify/require"

"github.com/onflow/cadence/runtime/ast"
"github.com/onflow/cadence/runtime/errors"
"github.com/onflow/cadence/runtime/parser"
"github.com/onflow/cadence/runtime/sema"
"github.com/onflow/cadence/ast"
"github.com/onflow/cadence/errors"
"github.com/onflow/cadence/parser"
"github.com/onflow/cadence/sema"
"github.com/onflow/cadence/tools/analysis"

"github.com/onflow/cadence-tools/lint"
Expand Down
2 changes: 1 addition & 1 deletion lint/deprecated_member_analyzer.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import (
"fmt"
"regexp"

"github.com/onflow/cadence/runtime/ast"
"github.com/onflow/cadence/ast"
"github.com/onflow/cadence/tools/analysis"
)

Expand Down
2 changes: 1 addition & 1 deletion lint/deprecated_member_analyzer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ package lint_test
import (
"testing"

"github.com/onflow/cadence/runtime/ast"
"github.com/onflow/cadence/ast"
"github.com/onflow/cadence/tools/analysis"
"github.com/stretchr/testify/require"

Expand Down
4 changes: 2 additions & 2 deletions lint/diagnostic.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
package lint

import (
"github.com/onflow/cadence/runtime/ast"
"github.com/onflow/cadence/runtime/common"
"github.com/onflow/cadence/ast"
"github.com/onflow/cadence/common"
"github.com/onflow/cadence/tools/analysis"
)

Expand Down
5 changes: 2 additions & 3 deletions lint/lint.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,9 @@ import (
"google.golang.org/grpc"
"google.golang.org/grpc/credentials/insecure"

"github.com/onflow/cadence/runtime/common"
"github.com/onflow/cadence/runtime/pretty"
"github.com/onflow/cadence/common"
"github.com/onflow/cadence/pretty"
"github.com/onflow/cadence/tools/analysis"
"github.com/onflow/flow-go-sdk"
grpcAccess "github.com/onflow/flow-go-sdk/access/grpc"
)

Expand Down
6 changes: 3 additions & 3 deletions lint/number_function_argument_analyzer.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@
package lint

import (
"github.com/onflow/cadence/runtime/ast"
"github.com/onflow/cadence/runtime/common"
"github.com/onflow/cadence/runtime/sema"
"github.com/onflow/cadence/ast"
"github.com/onflow/cadence/common"
"github.com/onflow/cadence/sema"
"github.com/onflow/cadence/tools/analysis"
)

Expand Down
2 changes: 1 addition & 1 deletion lint/number_function_argument_analyzer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ package lint_test
import (
"testing"

"github.com/onflow/cadence/runtime/ast"
"github.com/onflow/cadence/ast"
"github.com/onflow/cadence/tools/analysis"
"github.com/stretchr/testify/require"

Expand Down
6 changes: 3 additions & 3 deletions lint/redundant_cast_analyzer.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ package lint
import (
"fmt"

"github.com/onflow/cadence/runtime/ast"
"github.com/onflow/cadence/runtime/errors"
"github.com/onflow/cadence/runtime/sema"
"github.com/onflow/cadence/ast"
"github.com/onflow/cadence/errors"
"github.com/onflow/cadence/sema"
"github.com/onflow/cadence/tools/analysis"
)

Expand Down
2 changes: 1 addition & 1 deletion lint/redundant_cast_analyzer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ package lint_test
import (
"testing"

"github.com/onflow/cadence/runtime/ast"
"github.com/onflow/cadence/ast"
"github.com/onflow/cadence/tools/analysis"
"github.com/stretchr/testify/require"

Expand Down
4 changes: 2 additions & 2 deletions lint/unnecessary_force_analyzer.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
package lint

import (
"github.com/onflow/cadence/runtime/ast"
"github.com/onflow/cadence/runtime/sema"
"github.com/onflow/cadence/ast"
"github.com/onflow/cadence/sema"
"github.com/onflow/cadence/tools/analysis"
)

Expand Down
2 changes: 1 addition & 1 deletion lint/unnecessary_force_analyzer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import (

"github.com/stretchr/testify/require"

"github.com/onflow/cadence/runtime/ast"
"github.com/onflow/cadence/ast"
"github.com/onflow/cadence/tools/analysis"

"github.com/onflow/cadence-tools/lint"
Expand Down
4 changes: 2 additions & 2 deletions lint/unused_result_analyzer.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
package lint

import (
"github.com/onflow/cadence/runtime/ast"
"github.com/onflow/cadence/runtime/sema"
"github.com/onflow/cadence/ast"
"github.com/onflow/cadence/sema"
"github.com/onflow/cadence/tools/analysis"
)

Expand Down
2 changes: 1 addition & 1 deletion lint/unused_result_analyzer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import (

"github.com/stretchr/testify/require"

"github.com/onflow/cadence/runtime/ast"
"github.com/onflow/cadence/ast"
"github.com/onflow/cadence/tools/analysis"

"github.com/onflow/cadence-tools/lint"
Expand Down

0 comments on commit b250d8b

Please sign in to comment.