@@ -195,7 +195,7 @@ func (d *Decoder) Decode(v any) (*DecodeResult, error) {
195
195
for ! d .shouldStop && len (d .rowsData ) > 0 {
196
196
// Reduce memory consumption by splitting the source data into chunks (10000 items each)
197
197
// After each chunk is processed, resize the slice to allow Go to free the memory when necessary
198
- chunkSz := gofn .Min (10000 , len (d .rowsData )) // nolint: gomnd
198
+ chunkSz := gofn .Min (10000 , len (d .rowsData )) //nolint:mnd
199
199
chunk := d .rowsData [0 :chunkSz ]
200
200
d .rowsData = d .rowsData [chunkSz :]
201
201
@@ -470,7 +470,7 @@ func (d *Decoder) readRowData() error {
470
470
ableToGetLine = false
471
471
getLine = nil
472
472
}
473
- rowDataItems := make ([]* rowData , 0 , 10000 ) // nolint: gomnd
473
+ rowDataItems := make ([]* rowData , 0 , 10000 ) //nolint:mnd
474
474
475
475
for ; ; row ++ {
476
476
records , err := r .Read ()
@@ -590,7 +590,7 @@ func (d *Decoder) validateColumnsMeta(colsMeta, colsMetaFromStruct []*decodeColu
590
590
cfg := d .cfg
591
591
// Make sure all column options valid
592
592
for colKey := range cfg .columnConfigMap {
593
- if ! gofn .ContainPred (colsMetaFromStruct , func (colMeta * decodeColumnMeta ) bool {
593
+ if ! gofn .ContainBy (colsMetaFromStruct , func (colMeta * decodeColumnMeta ) bool {
594
594
return colMeta .headerKey == colKey || colMeta .parentKey == colKey
595
595
}) {
596
596
return fmt .Errorf ("%w: column \" %s\" not found" , ErrConfigOptionInvalid , colKey )
@@ -789,7 +789,7 @@ func (d *Decoder) parseInlineColumnDynamicType(typ reflect.Type, parent *decodeC
789
789
790
790
func (d * Decoder ) parseDynamicInlineColumns (colsMetaFromStruct []* decodeColumnMeta , fileHeader []string ) (
791
791
[]* decodeColumnMeta , error ) {
792
- newColsMetaFromStruct := make ([]* decodeColumnMeta , 0 , len (colsMetaFromStruct )* 2 ) // nolint: gomnd
792
+ newColsMetaFromStruct := make ([]* decodeColumnMeta , 0 , len (colsMetaFromStruct )* 2 ) //nolint:mnd
793
793
fileHeaderIndex := 0
794
794
for i , colMetaFromStruct := range colsMetaFromStruct {
795
795
if colMetaFromStruct .inlineColumnMeta == nil {
0 commit comments