Skip to content

Commit 79dfd37

Browse files
- Fixed linter issues.
1 parent 2fb8219 commit 79dfd37

File tree

4 files changed

+12
-3
lines changed

4 files changed

+12
-3
lines changed

internal/stackql/drm/drm_cfg.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -578,7 +578,7 @@ func (dc *staticDRMConfig) GenerateDDL(
578578
return dc.sqlSystem.GenerateDDL(relationalTable, dropTable)
579579
}
580580

581-
//nolint:gocritic,govet // defer fix
581+
//nolint:gocritic,govet,funlen,nestif // defer fix
582582
func (dc *staticDRMConfig) GenerateInsertDML(
583583
tabAnnotated util.AnnotatedTabulation,
584584
prov anysdk.Provider,
@@ -684,6 +684,7 @@ func (dc *staticDRMConfig) GenerateInsertDML(
684684
nil
685685
}
686686

687+
//nolint:revive // future proofing
687688
func (dc *staticDRMConfig) GenerateSelectDML(
688689
tabAnnotated util.AnnotatedTabulation,
689690
prov anysdk.Provider,

internal/stackql/router/obtain_context/obtain_context.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,10 @@ func ObtainAnnotationCtx(
2222
isPGInternalObject := tbl.GetHeirarchyObjects().IsPGInternalObject()
2323
if isView || isSQLDataSource || isSubquery || isPGInternalObject {
2424
// TODO: upgrade this flow; nil == YUCK!!!
25-
return taxonomy.NewStaticStandardAnnotationCtx(nil, tbl.GetHeirarchyObjects().GetHeirarchyIDs(), tbl, parameters, false), nil
25+
return taxonomy.NewStaticStandardAnnotationCtx(
26+
nil, tbl.GetHeirarchyObjects().GetHeirarchyIDs(),
27+
tbl, parameters, false,
28+
), nil
2629
}
2730
schema, mediaType, err := tbl.GetResponseSchemaAndMediaType()
2831
if err != nil {

internal/stackql/router/table_routing.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,11 @@ type standardTableRouteAstVisitor struct {
3333
isAwait bool
3434
}
3535

36-
func NewTableRouteAstVisitor(handlerCtx handler.HandlerContext, router ParameterRouter, isAwait bool) TableRouteAstVisitor {
36+
func NewTableRouteAstVisitor(
37+
handlerCtx handler.HandlerContext,
38+
router ParameterRouter,
39+
isAwait bool,
40+
) TableRouteAstVisitor {
3741
return &standardTableRouteAstVisitor{
3842
handlerCtx: handlerCtx,
3943
router: router,

internal/stackql/taxonomy/annotation_context.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ func (ac *standardAnnotationCtx) IsAwait() bool {
5959
return ac.isAwait
6060
}
6161

62+
//nolint:gocognit // acceptable
6263
func (ac *standardAnnotationCtx) Equals(other AnnotationCtx) bool {
6364
otherStandard, isStandard := other.(*standardAnnotationCtx)
6465
if !isStandard {

0 commit comments

Comments
 (0)