@@ -989,7 +989,7 @@ func (p *partitionMovements) getTheActualPartitionToBeMoved(partition topicParti
989
989
return reversePairPartition
990
990
}
991
991
992
- //nolint:unused // this is used but only in unittests as a helper (which are excluded by the integration build tag)
992
+ //lint:ignore U1000 // this is used but only in unittests as a helper (which are excluded by the integration build tag)
993
993
func (p * partitionMovements ) isLinked (src , dst string , pairs []consumerPair , currentPath []string ) ([]string , bool ) {
994
994
if src == dst {
995
995
return currentPath , false
@@ -1024,7 +1024,7 @@ func (p *partitionMovements) isLinked(src, dst string, pairs []consumerPair, cur
1024
1024
return currentPath , false
1025
1025
}
1026
1026
1027
- //nolint:unused // this is used but only in unittests as a helper (which are excluded by the integration build tag)
1027
+ //lint:ignore U1000 // this is used but only in unittests as a helper (which are excluded by the integration build tag)
1028
1028
func (p * partitionMovements ) in (cycle []string , cycles [][]string ) bool {
1029
1029
superCycle := make ([]string , len (cycle )- 1 )
1030
1030
for i := 0 ; i < len (cycle )- 1 ; i ++ {
@@ -1039,7 +1039,7 @@ func (p *partitionMovements) in(cycle []string, cycles [][]string) bool {
1039
1039
return false
1040
1040
}
1041
1041
1042
- //nolint:unused // this is used but only in unittests as a helper (which are excluded by the integration build tag)
1042
+ //lint:ignore U1000 // this is used but only in unittests as a helper (which are excluded by the integration build tag)
1043
1043
func (p * partitionMovements ) hasCycles (pairs []consumerPair ) bool {
1044
1044
cycles := make ([][]string , 0 )
1045
1045
for _ , pair := range pairs {
@@ -1071,7 +1071,7 @@ func (p *partitionMovements) hasCycles(pairs []consumerPair) bool {
1071
1071
return false
1072
1072
}
1073
1073
1074
- //nolint:unused // this is used but only in unittests as a helper (which are excluded by the integration build tag)
1074
+ //lint:ignore U1000 // this is used but only in unittests as a helper (which are excluded by the integration build tag)
1075
1075
func (p * partitionMovements ) isSticky () bool {
1076
1076
for topic , movements := range p .PartitionMovementsByTopic {
1077
1077
movementPairs := make ([]consumerPair , len (movements ))
@@ -1089,7 +1089,7 @@ func (p *partitionMovements) isSticky() bool {
1089
1089
return true
1090
1090
}
1091
1091
1092
- //nolint:unused // this is used but only in unittests as a helper (which are excluded by the integration build tag)
1092
+ //lint:ignore U1000 // this is used but only in unittests as a helper (which are excluded by the integration build tag)
1093
1093
func indexOfSubList (source []string , target []string ) int {
1094
1094
targetSize := len (target )
1095
1095
maxCandidate := len (source ) - targetSize
0 commit comments