Skip to content

Commit

Permalink
Minor fixes to make golint happy (#412)
Browse files Browse the repository at this point in the history
  • Loading branch information
TristonianJones authored Feb 1, 2021
1 parent ec83087 commit c1e3967
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 5 deletions.
5 changes: 3 additions & 2 deletions common/types/map_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,16 @@ import (
"github.com/google/cel-go/common/types/pb"
"github.com/google/cel-go/common/types/ref"
"github.com/google/cel-go/common/types/traits"
"github.com/google/cel-go/test/proto3pb"

"google.golang.org/protobuf/encoding/protojson"
"google.golang.org/protobuf/proto"

proto3pb "github.com/google/cel-go/test/proto3pb"

anypb "google.golang.org/protobuf/types/known/anypb"
structpb "google.golang.org/protobuf/types/known/structpb"
tpb "google.golang.org/protobuf/types/known/timestamppb"
"google.golang.org/protobuf/types/known/wrapperspb"
wrapperspb "google.golang.org/protobuf/types/known/wrapperspb"
)

type testStruct struct {
Expand Down
3 changes: 2 additions & 1 deletion common/types/provider_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,11 @@ import (

"github.com/google/cel-go/common/types/ref"
"github.com/google/cel-go/common/types/traits"
"github.com/google/cel-go/test/proto3pb"

"google.golang.org/protobuf/proto"

proto3pb "github.com/google/cel-go/test/proto3pb"

exprpb "google.golang.org/genproto/googleapis/api/expr/v1alpha1"
anypb "google.golang.org/protobuf/types/known/anypb"
structpb "google.golang.org/protobuf/types/known/structpb"
Expand Down
3 changes: 1 addition & 2 deletions interpreter/prune.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ import (

structpb "google.golang.org/protobuf/types/known/structpb"

expr "google.golang.org/genproto/googleapis/api/expr/v1alpha1"
exprpb "google.golang.org/genproto/googleapis/api/expr/v1alpha1"
)

Expand Down Expand Up @@ -122,7 +121,7 @@ func (p *astPruner) maybeCreateLiteral(id int64, val ref.Val) (*exprpb.Expr, boo
return &exprpb.Expr{
Id: id,
ExprKind: &exprpb.Expr_ListExpr{
ListExpr: &expr.Expr_CreateList{
ListExpr: &exprpb.Expr_CreateList{
Elements: elemExprs,
},
},
Expand Down
16 changes: 16 additions & 0 deletions parser/gen/doc.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
// Copyright 2021 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

// Package gen contains all of the ANTLR-generated sources used by the cel-go parser.
package gen

0 comments on commit c1e3967

Please sign in to comment.