connect icon indicating copy to clipboard operation
connect copied to clipboard

apply all suggestions from gopls modernize

Open peczenyj opened this issue 8 months ago • 0 comments

I just run the following code

go run golang.org/x/tools/gopls/internal/analysis/modernize/cmd/modernize@latest -test -fix ./...

this should quickfix all of the following issues find:

$ go run golang.org/x/tools/gopls/internal/analysis/modernize/cmd/modernize@latest -test ./...
/path/to/connect/internal/impl/aws/output_dynamodb.go:351:9: Replace m[k]=v loop with maps.Copy
/path/to/connect/internal/impl/aws/metrics_cloudwatch.go:239:5: if statement can be modernized using min
/path/to/connect/internal/impl/aws/input_kinesis.go:895:6: for loop can be modernized using range over int
/path/to/connect/internal/impl/aws/output_sqs.go:287:6: for loop can be modernized using range over int
/path/to/connect/internal/impl/aws/processor_lambda.go:198:7: for loop can be modernized using range over int
/path/to/connect/internal/impl/aws/input_kinesis.go:322:32: Ranging over SplitSeq is more efficient
/path/to/connect/internal/impl/amqp09/input.go:464:9: interface{} can be replaced by any
/path/to/connect/internal/impl/amqp09/input.go:243:28: Ranging over SplitSeq is more efficient
/path/to/connect/internal/impl/amqp09/output.go:207:28: Ranging over SplitSeq is more efficient
/path/to/connect/internal/impl/amqp1/output.go:295:52: interface{} can be replaced by any
/path/to/connect/internal/impl/amqp1/input.go:120:28: Ranging over SplitSeq is more efficient
/path/to/connect/internal/impl/amqp1/output.go:137:28: Ranging over SplitSeq is more efficient
/path/to/connect/internal/impl/kafka/input_kafka_franz.go:76:18: Replace append with slices.Clone
/path/to/connect/internal/impl/kafka/input_redpanda.go:106:18: Replace append with slices.Clone
/path/to/connect/internal/impl/kafka/input_redpanda_migrator.go:121:18: Replace append with slices.Clone
/path/to/connect/internal/impl/kafka/input_sarama_kafka.go:414:5: if statement can be modernized using max
/path/to/connect/internal/impl/kafka/franz_reader_ordered.go:265:6: for loop can be modernized using range over int
/path/to/connect/internal/impl/kafka/output_sarama_kafka.go:541:6: for loop can be modernized using range over int
/path/to/connect/internal/impl/kafka/input_sarama_kafka.go:239:29: Ranging over SplitSeq is more efficient
/path/to/connect/internal/impl/kafka/output_sarama_kafka.go:243:29: Ranging over SplitSeq is more efficient
/path/to/connect/internal/impl/kafka/topic_parser.go:62:30: Ranging over SplitSeq is more efficient
/path/to/connect/internal/impl/opensearch/output.go:277:6: for loop can be modernized using range over int
/path/to/connect/internal/impl/opensearch/output.go:95:28: Ranging over SplitSeq is more efficient
/path/to/connect/internal/impl/cassandra/input.go:119:24: interface{} can be replaced by any
/path/to/connect/internal/impl/confluent/processor_schema_registry_encode.go:147:5: if statement can be modernized using max
/path/to/connect/internal/impl/confluent/serde_protobuf.go:198:6: for loop can be modernized using range over int
/path/to/connect/internal/impl/confluent/serde_protobuf.go:294:6: for loop can be modernized using range over int
/path/to/connect/internal/impl/crypto/argon2.go:138:53: interface{} can be replaced by any
/path/to/connect/internal/impl/crypto/bcrypt.go:45:53: interface{} can be replaced by any
/path/to/connect/internal/impl/crypto/jwt_parse.go:60:74: interface{} can be replaced by any
/path/to/connect/internal/impl/elasticsearch/v8/output.go:77:26: Ranging over SplitSeq is more efficient
/path/to/connect/internal/impl/gcp/input_cloud_storage.go:197:6: for loop can be modernized using range over int
/path/to/connect/internal/impl/gcp/input_cloud_storage.go:220:7: for loop can be modernized using range over int
/path/to/connect/internal/impl/influxdb/metrics_influxdb.go:289:4: Replace m[k]=v loop with maps.Copy
/path/to/connect/internal/impl/influxdb/metrics_influxdb.go:293:4: Replace m[k]=v loop with maps.Copy
/path/to/connect/internal/impl/javascript/casts.go:23:50: interface{} can be replaced by any
/path/to/connect/internal/impl/javascript/casts.go:25:30: interface{} can be replaced by any
/path/to/connect/internal/impl/javascript/casts.go:32:43: interface{} can be replaced by any
/path/to/connect/internal/impl/javascript/casts.go:34:21: interface{} can be replaced by any
/path/to/connect/internal/impl/javascript/casts.go:41:57: interface{} can be replaced by any
/path/to/connect/internal/impl/javascript/casts.go:43:35: interface{} can be replaced by any
/path/to/connect/internal/impl/javascript/casts.go:46:26: interface{} can be replaced by any
/path/to/connect/internal/impl/javascript/casts.go:50:25: interface{} can be replaced by any
/path/to/connect/internal/impl/javascript/casts.go:52:28: interface{} can be replaced by any
/path/to/connect/internal/impl/javascript/functions.go:29:84: interface{} can be replaced by any
/path/to/connect/internal/impl/javascript/functions.go:115:76: interface{} can be replaced by any
/path/to/connect/internal/impl/javascript/functions.go:165:76: interface{} can be replaced by any
/path/to/connect/internal/impl/javascript/functions.go:179:67: interface{} can be replaced by any
/path/to/connect/internal/impl/javascript/functions.go:198:76: interface{} can be replaced by any
/path/to/connect/internal/impl/javascript/functions.go:212:67: interface{} can be replaced by any
/path/to/connect/internal/impl/javascript/functions.go:221:76: interface{} can be replaced by any
/path/to/connect/internal/impl/javascript/functions.go:239:76: interface{} can be replaced by any
/path/to/connect/internal/impl/javascript/functions.go:258:76: interface{} can be replaced by any
/path/to/connect/internal/impl/javascript/vm.go:91:6: for loop can be modernized using range over int
/path/to/connect/internal/impl/memcached/cache.go:104:29: Ranging over SplitSeq is more efficient
/path/to/connect/internal/impl/nsq/input.go:120:29: Ranging over SplitSeq is more efficient
/path/to/connect/internal/impl/nsq/input.go:131:29: Ranging over SplitSeq is more efficient
/path/to/connect/internal/impl/ockam/node.go:41:30: interface{} can be replaced by any
/path/to/connect/internal/impl/ockam/node.go:148:37: interface{} can be replaced by any
/path/to/connect/internal/impl/ockam/node.go:154:30: interface{} can be replaced by any
/path/to/connect/internal/impl/pinecone/output.go:277:6: for loop can be modernized using range over int
/path/to/connect/internal/impl/pinecone/output.go:351:6: for loop can be modernized using range over int
/path/to/connect/internal/impl/awk/processor.go:423:3: Replace m[k]=v loop with maps.Copy
/path/to/connect/internal/impl/awk/processor.go:618:5: Replace m[k]=v loop with maps.Copy
/path/to/connect/internal/impl/awk/processor.go:624:5: Replace m[k]=v loop with maps.Copy
/path/to/connect/internal/impl/awk/processor.go:643:3: Replace m[k]=v loop with maps.Copy
/path/to/connect/internal/impl/lang/bloblang.go:403:2: Loop can be simplified using slices.Contains
/path/to/connect/internal/impl/parquet/bloblang.go:63:10: for loop can be modernized using range over int
/path/to/connect/internal/impl/parquet/input_parquet.go:229:6: for loop can be modernized using range over int
/path/to/connect/internal/impl/parquet/processor.go:217:7: for loop can be modernized using range over int
/path/to/connect/internal/impl/qdrant/output.go:180:6: for loop can be modernized using range over int
/path/to/connect/internal/impl/redis/output_list.go:83:93: interface{} can be replaced by any
/path/to/connect/internal/impl/redis/output_list.go:84:85: interface{} can be replaced by any
/path/to/connect/internal/impl/redis/output_list.go:110:96: interface{} can be replaced by any
/path/to/connect/internal/impl/redis/output_list.go:113:90: interface{} can be replaced by any
/path/to/connect/internal/impl/redis/output_list.go:118:96: interface{} can be replaced by any
/path/to/connect/internal/impl/redis/output_list.go:121:90: interface{} can be replaced by any
/path/to/connect/internal/impl/redis/output_hash.go:167:3: Replace m[k]=v loop with maps.Copy
/path/to/connect/internal/impl/redis/output_list.go:178:6: for loop can be modernized using range over int
/path/to/connect/internal/impl/redis/output_pubsub.go:140:6: for loop can be modernized using range over int
/path/to/connect/internal/impl/redis/output_streams.go:180:6: for loop can be modernized using range over int
/path/to/connect/internal/impl/redis/client.go:88:20: Ranging over SplitSeq is more efficient
/path/to/connect/internal/impl/sql/buffer_sqlite.go:407:61: interface{} can be replaced by any
/path/to/connect/internal/impl/timeplus/http/sse_lib.go:144:11: Replace append with slices.Clone
/path/to/connect/internal/impl/timeplus/http/sse_lib.go:152:14: Replace append with slices.Clone
/path/to/connect/internal/impl/timeplus/http/sse_lib.go:154:14: Replace append with slices.Clone
/path/to/connect/internal/impl/wasm/functions.go:29:66: interface{} can be replaced by any
/path/to/connect/internal/impl/wasm/functions.go:31:75: interface{} can be replaced by any
/path/to/connect/internal/impl/wasm/functions.go:36:80: interface{} can be replaced by any
/path/to/connect/internal/impl/wasm/functions.go:52:79: interface{} can be replaced by any
/path/to/connect/internal/impl/wasm/functions.go:74:79: interface{} can be replaced by any
/path/to/connect/internal/impl/wasm/functions.go:97:79: interface{} can be replaced by any
/path/to/connect/internal/impl/kafka/enterprise/redpanda_common_input.go:108:9: for loop can be modernized using range over int
/path/to/connect/internal/impl/mysql/input_mysql_stream.go:482:26: Ranging over SplitSeq is more efficient
/path/to/connect/internal/impl/postgresql/pglogicalstream/pglogrepl.go:66:26: interface{} can be replaced by any
/path/to/connect/internal/impl/postgresql/pglogicalstream/replication_message.go:307:6: for loop can be modernized using range over int
/path/to/connect/internal/impl/postgresql/pglogicalstream/replication_message.go:413:6: for loop can be modernized using range over int
/path/to/connect/internal/impl/postgresql/pglogicalstream/replication_message.go:424:8: for loop can be modernized using range over int
/path/to/connect/internal/impl/postgresql/pglogicalstream/replication_message.go:632:6: for loop can be modernized using range over int
/path/to/connect/internal/impl/snowflake/output_snowflake_streaming.go:795:6: for loop can be modernized using range over int
/path/to/connect/internal/telemetry/logger.go:23:49: interface{} can be replaced by any
/path/to/connect/internal/telemetry/logger.go:27:37: interface{} can be replaced by any
/path/to/connect/internal/telemetry/logger.go:31:38: interface{} can be replaced by any
/path/to/connect/internal/impl/amqp1/integration_service_bus_test.go:90:19: interface{} can be replaced by any
/path/to/connect/internal/impl/amqp1/integration_service_bus_test.go:104:30: interface{} can be replaced by any
/path/to/connect/internal/impl/aws/output_sqs_test.go:263:44: Replace []byte(fmt.Sprintf...) with fmt.Appendf
/path/to/connect/internal/impl/aws/output_sqs_test.go:332:44: Replace []byte(fmt.Sprintf...) with fmt.Appendf
/path/to/connect/internal/impl/aws/metrics_cloudwatch_test.go:247:3: Replace m[k]=v loop with maps.Copy
/path/to/connect/internal/impl/aws/input_sqs_test.go:62:8: if/else statement can be modernized using max
/path/to/connect/internal/impl/aws/input_sqs_test.go:226:6: for loop can be modernized using range over int
/path/to/connect/internal/impl/aws/metrics_cloudwatch_test.go:226:6: for loop can be modernized using range over int
/path/to/connect/internal/impl/aws/metrics_cloudwatch_test.go:383:6: for loop can be modernized using range over int
/path/to/connect/internal/impl/aws/output_kinesis_firehose_test.go:119:6: for loop can be modernized using range over int
/path/to/connect/internal/impl/aws/output_kinesis_firehose_test.go:156:9: for loop can be modernized using range over int
/path/to/connect/internal/impl/aws/output_kinesis_firehose_test.go:172:6: for loop can be modernized using range over int
/path/to/connect/internal/impl/aws/output_kinesis_firehose_test.go:234:9: for loop can be modernized using range over int
/path/to/connect/internal/impl/aws/output_kinesis_integration_test.go:179:6: for loop can be modernized using range over int
/path/to/connect/internal/impl/aws/output_kinesis_test.go:133:6: for loop can be modernized using range over int
/path/to/connect/internal/impl/aws/output_kinesis_test.go:173:8: for loop can be modernized using range over int
/path/to/connect/internal/impl/aws/output_kinesis_test.go:187:6: for loop can be modernized using range over int
/path/to/connect/internal/impl/aws/output_kinesis_test.go:252:8: for loop can be modernized using range over int
/path/to/connect/internal/impl/aws/output_sqs_test.go:262:6: for loop can be modernized using range over int
/path/to/connect/internal/impl/aws/output_sqs_test.go:331:6: for loop can be modernized using range over int
/path/to/connect/internal/impl/azure/integration_test.go:509:57: Replace []byte(fmt.Sprintf...) with fmt.Appendf
/path/to/connect/internal/impl/azure/integration_test.go:528:53: Replace []byte(fmt.Sprintf...) with fmt.Appendf
/path/to/connect/internal/impl/azure/integration_test.go:563:55: Replace []byte(fmt.Sprintf...) with fmt.Appendf
/path/to/connect/internal/impl/azure/integration_test.go:508:7: for loop can be modernized using range over int
/path/to/connect/internal/impl/azure/integration_test.go:527:7: for loop can be modernized using range over int
/path/to/connect/internal/impl/azure/integration_test.go:562:7: for loop can be modernized using range over int
/path/to/connect/internal/impl/cockroachdb/integration_test.go:80:6: for loop can be modernized using range over int
/path/to/connect/internal/impl/cockroachdb/integration_test.go:124:6: for loop can be modernized using range over int
/path/to/connect/internal/impl/cockroachdb/integration_test.go:165:6: for loop can be modernized using range over int
/path/to/connect/internal/impl/cockroachdb/exploration_test.go:98:6: for loop can be modernized using range over int
/path/to/connect/internal/impl/cockroachdb/exploration_test.go:134:6: for loop can be modernized using range over int
/path/to/connect/internal/impl/confluent/processor_schema_registry_encode_test.go:713:6: for loop can be modernized using range over int
/path/to/connect/internal/impl/couchbase/cache_test.go:105:6: for loop can be modernized using range over int
/path/to/connect/internal/impl/gateway/input_test.go:55:6: for loop can be modernized using range over int
/path/to/connect/internal/impl/gateway/input_test.go:109:6: for loop can be modernized using range over int
/path/to/connect/internal/impl/gcp/enterprise/changestreams/model_pg_test.go:138:28: interface{} can be replaced by any
/path/to/connect/internal/impl/gcp/enterprise/changestreams/model_pg_test.go:147:28: interface{} can be replaced by any
/path/to/connect/internal/impl/gcp/enterprise/changestreams/model_pg_test.go:157:28: interface{} can be replaced by any
/path/to/connect/internal/impl/gcp/enterprise/changestreams/model_pg_test.go:161:28: interface{} can be replaced by any
/path/to/connect/internal/impl/gcp/enterprise/changestreams/model_pg_test.go:165:28: interface{} can be replaced by any
/path/to/connect/internal/impl/gcp/enterprise/changestreams/model_pg_test.go:193:16: interface{} can be replaced by any
/path/to/connect/internal/impl/gcp/enterprise/changestreams/model_pg_test.go:196:70: interface{} can be replaced by any
/path/to/connect/internal/impl/gcp/enterprise/changestreams/subscriber_integration_test.go:623:6: for loop can be modernized using range over int
/path/to/connect/internal/impl/gcp/enterprise/changestreams/metadata/metadata_integration_test.go:348:7: for loop can be modernized using range over int
/path/to/connect/internal/impl/gcp/enterprise/changestreams/metadata/metadata_integration_test.go:371:7: for loop can be modernized using range over int
/path/to/connect/internal/impl/javascript/benchmark_test.go:54:14: b.N can be modernized using b.Loop()
/path/to/connect/internal/impl/kafka/franz_reader_ordered_test.go:39:7: for loop can be modernized using range over int
/path/to/connect/internal/impl/kafka/franz_reader_ordered_test.go:42:8: for loop can be modernized using range over int
/path/to/connect/internal/impl/kafka/franz_reader_ordered_test.go:63:6: for loop can be modernized using range over int
/path/to/connect/internal/impl/kafka/franz_reader_ordered_test.go:79:7: for loop can be modernized using range over int
/path/to/connect/internal/impl/kafka/franz_reader_ordered_test.go:97:6: for loop can be modernized using range over int
/path/to/connect/internal/impl/kafka/integration_sarama_test.go:157:8: for loop can be modernized using range over int
/path/to/connect/internal/impl/kafka/enterprise/integration_test.go:145:6: for loop can be modernized using range over int
/path/to/connect/internal/impl/kafka/enterprise/integration_test.go:212:6: for loop can be modernized using range over int
/path/to/connect/internal/impl/kafka/enterprise/integration_test.go:264:6: for loop can be modernized using range over int
/path/to/connect/internal/impl/kafka/enterprise/integration_test.go:271:6: for loop can be modernized using range over int
/path/to/connect/internal/impl/kafka/enterprise/integration_test.go:302:6: for loop can be modernized using range over int
/path/to/connect/internal/impl/mysql/integration_test.go:164:8: for loop can be modernized using range over int
/path/to/connect/internal/impl/mysql/integration_test.go:226:6: for loop can be modernized using range over int
/path/to/connect/internal/impl/mysql/integration_test.go:308:6: for loop can be modernized using range over int
/path/to/connect/internal/impl/ollama/embeddings_processor_test.go:65:6: for loop can be modernized using range over int
/path/to/connect/internal/impl/opensearch/integration_test.go:306:15: Replace []byte(fmt.Sprintf...) with fmt.Appendf
/path/to/connect/internal/impl/opensearch/integration_test.go:369:31: Replace []byte(fmt.Sprintf...) with fmt.Appendf
/path/to/connect/internal/impl/opensearch/integration_test.go:410:29: Replace []byte(fmt.Sprintf...) with fmt.Appendf
/path/to/connect/internal/impl/opensearch/integration_test.go:452:29: Replace []byte(fmt.Sprintf...) with fmt.Appendf
/path/to/connect/internal/impl/opensearch/integration_test.go:188:6: for loop can be modernized using range over int
/path/to/connect/internal/impl/opensearch/integration_test.go:233:6: for loop can be modernized using range over int
/path/to/connect/internal/impl/opensearch/integration_test.go:305:6: for loop can be modernized using range over int
/path/to/connect/internal/impl/opensearch/integration_test.go:309:6: for loop can be modernized using range over int
/path/to/connect/internal/impl/opensearch/integration_test.go:314:6: for loop can be modernized using range over int
/path/to/connect/internal/impl/opensearch/integration_test.go:368:6: for loop can be modernized using range over int
/path/to/connect/internal/impl/opensearch/integration_test.go:371:6: for loop can be modernized using range over int
/path/to/connect/internal/impl/opensearch/integration_test.go:376:6: for loop can be modernized using range over int
/path/to/connect/internal/impl/opensearch/integration_test.go:409:6: for loop can be modernized using range over int
/path/to/connect/internal/impl/opensearch/integration_test.go:417:6: for loop can be modernized using range over int
/path/to/connect/internal/impl/opensearch/integration_test.go:450:6: for loop can be modernized using range over int
/path/to/connect/internal/impl/opensearch/integration_test.go:460:6: for loop can be modernized using range over int
/path/to/connect/internal/impl/opensearch/integration_test.go:479:6: for loop can be modernized using range over int
/path/to/connect/internal/impl/opensearch/integration_test.go:528:6: for loop can be modernized using range over int
/path/to/connect/internal/impl/parquet/processor_encode_test.go:465:6: for loop can be modernized using range over int
/path/to/connect/internal/impl/postgresql/integration_test.go:186:6: for loop can be modernized using range over int
/path/to/connect/internal/impl/postgresql/integration_test.go:379:6: for loop can be modernized using range over int
/path/to/connect/internal/impl/postgresql/integration_test.go:429:6: for loop can be modernized using range over int
/path/to/connect/internal/impl/postgresql/integration_test.go:472:6: for loop can be modernized using range over int
/path/to/connect/internal/impl/postgresql/integration_test.go:620:8: for loop can be modernized using range over int
/path/to/connect/internal/impl/postgresql/integration_test.go:672:8: for loop can be modernized using range over int
/path/to/connect/internal/impl/postgresql/integration_test.go:715:8: for loop can be modernized using range over int
/path/to/connect/internal/impl/postgresql/pglogicalstream/pglogrepl_test.go:46:31: interface{} can be replaced by any
/path/to/connect/internal/impl/postgresql/pglogicalstream/pglogrepl_test.go:46:52: interface{} can be replaced by any
/path/to/connect/internal/impl/postgresql/pglogicalstream/replication_message_test.go:31:35: interface{} can be replaced by any
/path/to/connect/internal/impl/postgresql/pglogicalstream/replication_message_test.go:31:56: interface{} can be replaced by any
/path/to/connect/internal/impl/postgresql/pglogicalstream/replication_message_test.go:111:6: for loop can be modernized using range over int
/path/to/connect/internal/impl/redis/cache_integration_test.go:107:6: for loop can be modernized using range over int
/path/to/connect/internal/impl/redis/cache_integration_test.go:133:6: for loop can be modernized using range over int
/path/to/connect/internal/impl/redis/rate_limit_integration_test.go:94:6: for loop can be modernized using range over int
/path/to/connect/internal/impl/redis/rate_limit_integration_test.go:124:6: for loop can be modernized using range over int
/path/to/connect/internal/impl/redis/rate_limit_integration_test.go:147:6: for loop can be modernized using range over int
/path/to/connect/internal/impl/redpanda/processor_data_transform_test.go:180:14: b.N can be modernized using b.Loop()
/path/to/connect/internal/impl/redpanda/processor_data_transform_test.go:85:6: for loop can be modernized using range over int
/path/to/connect/internal/impl/redpanda/processor_data_transform_test.go:142:6: for loop can be modernized using range over int
/path/to/connect/internal/impl/snowflake/output_snowflake_put_test.go:48:2: Loop can be simplified using slices.Contains
/path/to/connect/internal/impl/snowflake/output_snowflake_put_test.go:96:2: Loop can be simplified using slices.Contains
/path/to/connect/internal/impl/snowflake/output_snowflake_put_test.go:106:2: Loop can be simplified using slices.Contains
/path/to/connect/internal/impl/snowflake/streaming/compat_test.go:135:16: b.N can be modernized using b.Loop()
/path/to/connect/internal/impl/snowflake/streaming/stats_test.go:145:7: b.N can be modernized using b.Loop()
/path/to/connect/internal/impl/snowflake/streaming/stats_test.go:154:7: b.N can be modernized using b.Loop()
/path/to/connect/internal/impl/snowflake/streaming/int128/decimal_test.go:437:16: b.N can be modernized using b.Loop()
/path/to/connect/internal/impl/snowflake/streaming/int128/decimal_test.go:446:16: b.N can be modernized using b.Loop()
/path/to/connect/internal/impl/snowflake/streaming/int128/decimal_test.go:396:6: for loop can be modernized using range over int
/path/to/connect/internal/impl/snowflake/streaming/int128/decimal_test.go:400:7: for loop can be modernized using range over int
/path/to/connect/internal/impl/snowflake/streaming/int128/decimal_test.go:405:8: for loop can be modernized using range over int
/path/to/connect/internal/impl/snowflake/streaming/int128/int128_test.go:441:6: for loop can be modernized using range over int
/path/to/connect/internal/impl/sql/buffer_sqlite_test.go:476:14: b.N can be modernized using b.Loop()
/path/to/connect/internal/impl/sql/buffer_sqlite_test.go:494:14: b.N can be modernized using b.Loop()
/path/to/connect/internal/impl/sql/buffer_sqlite_test.go:535:15: b.N can be modernized using b.Loop()
/path/to/connect/internal/impl/sql/buffer_sqlite_test.go:545:15: b.N can be modernized using b.Loop()
/path/to/connect/internal/impl/sql/buffer_sqlite_test.go:576:15: b.N can be modernized using b.Loop()
/path/to/connect/internal/impl/sql/buffer_sqlite_test.go:585:15: b.N can be modernized using b.Loop()
/path/to/connect/internal/impl/sql/buffer_sqlite_test.go:98:23: Replace []byte(fmt.Sprintf...) with fmt.Appendf
/path/to/connect/internal/impl/sql/buffer_sqlite_test.go:268:24: Replace []byte(fmt.Sprintf...) with fmt.Appendf
/path/to/connect/internal/impl/sql/buffer_sqlite_test.go:312:24: Replace []byte(fmt.Sprintf...) with fmt.Appendf
/path/to/connect/internal/impl/sql/buffer_sqlite_test.go:478:23: Replace []byte(fmt.Sprintf...) with fmt.Appendf
/path/to/connect/internal/impl/sql/buffer_sqlite_test.go:496:23: Replace []byte(fmt.Sprintf...) with fmt.Appendf
/path/to/connect/internal/impl/sql/buffer_sqlite_test.go:547:24: Replace []byte(fmt.Sprintf...) with fmt.Appendf
/path/to/connect/internal/impl/sql/integration_test.go:262:56: Replace []byte(fmt.Sprintf...) with fmt.Appendf
/path/to/connect/internal/impl/sql/integration_test.go:279:54: Replace []byte(fmt.Sprintf...) with fmt.Appendf
/path/to/connect/internal/impl/sql/integration_test.go:306:57: Replace []byte(fmt.Sprintf...) with fmt.Appendf
/path/to/connect/internal/impl/sql/integration_test.go:334:55: Replace []byte(fmt.Sprintf...) with fmt.Appendf
/path/to/connect/internal/impl/sql/integration_test.go:358:56: Replace []byte(fmt.Sprintf...) with fmt.Appendf
/path/to/connect/internal/impl/sql/integration_test.go:375:54: Replace []byte(fmt.Sprintf...) with fmt.Appendf
/path/to/connect/internal/impl/sql/integration_test.go:466:57: Replace []byte(fmt.Sprintf...) with fmt.Appendf
/path/to/connect/internal/impl/sql/integration_test.go:587:57: Replace []byte(fmt.Sprintf...) with fmt.Appendf
/path/to/connect/internal/impl/sql/buffer_sqlite_test.go:96:6: for loop can be modernized using range over int
/path/to/connect/internal/impl/sql/buffer_sqlite_test.go:104:6: for loop can be modernized using range over int
/path/to/connect/internal/impl/sql/buffer_sqlite_test.go:190:6: for loop can be modernized using range over int
/path/to/connect/internal/impl/sql/buffer_sqlite_test.go:192:7: for loop can be modernized using range over int
/path/to/connect/internal/impl/sql/buffer_sqlite_test.go:200:6: for loop can be modernized using range over int
/path/to/connect/internal/impl/sql/buffer_sqlite_test.go:265:6: for loop can be modernized using range over int
/path/to/connect/internal/impl/sql/buffer_sqlite_test.go:266:7: for loop can be modernized using range over int
/path/to/connect/internal/impl/sql/buffer_sqlite_test.go:274:7: for loop can be modernized using range over int
/path/to/connect/internal/impl/sql/buffer_sqlite_test.go:300:7: for loop can be modernized using range over int
/path/to/connect/internal/impl/sql/buffer_sqlite_test.go:310:7: for loop can be modernized using range over int
/path/to/connect/internal/impl/sql/buffer_sqlite_test.go:380:6: for loop can be modernized using range over int
/path/to/connect/internal/impl/sql/buffer_sqlite_test.go:397:6: for loop can be modernized using range over int
/path/to/connect/internal/impl/sql/buffer_sqlite_test.go:630:7: for loop can be modernized using range over int
/path/to/connect/internal/impl/sql/buffer_sqlite_test.go:639:7: for loop can be modernized using range over int
/path/to/connect/internal/impl/sql/integration_test.go:261:6: for loop can be modernized using range over int
/path/to/connect/internal/impl/sql/integration_test.go:278:6: for loop can be modernized using range over int
/path/to/connect/internal/impl/sql/integration_test.go:302:6: for loop can be modernized using range over int
/path/to/connect/internal/impl/sql/integration_test.go:304:7: for loop can be modernized using range over int
/path/to/connect/internal/impl/sql/integration_test.go:329:6: for loop can be modernized using range over int
/path/to/connect/internal/impl/sql/integration_test.go:332:7: for loop can be modernized using range over int
/path/to/connect/internal/impl/sql/integration_test.go:357:6: for loop can be modernized using range over int
/path/to/connect/internal/impl/sql/integration_test.go:374:6: for loop can be modernized using range over int
/path/to/connect/internal/impl/sql/integration_test.go:465:7: for loop can be modernized using range over int
/path/to/connect/internal/impl/sql/integration_test.go:586:7: for loop can be modernized using range over int
/path/to/connect/internal/impl/wasm/processor_wazero_test.go:143:14: b.N can be modernized using b.Loop()
/path/to/connect/internal/impl/wasm/processor_wazero_test.go:173:14: b.N can be modernized using b.Loop()
/path/to/connect/internal/impl/wasm/processor_wazero_test.go:44:6: for loop can be modernized using range over int
/path/to/connect/internal/impl/wasm/processor_wazero_test.go:73:6: for loop can be modernized using range over int
/path/to/connect/internal/impl/wasm/processor_wazero_test.go:111:6: for loop can be modernized using range over int
/path/to/connect/internal/pool/pool_test.go:118:6: for loop can be modernized using range over int
/path/to/connect/internal/pool/pool_test.go:122:8: for loop can be modernized using range over int
/path/to/connect/internal/singleton/singleton_test.go:82:6: for loop can be modernized using range over int
exit status 3

peczenyj avatar Jun 15 '25 13:06 peczenyj