@@ -195,7 +195,7 @@ func (d *Decoder) Decode(v any) (*DecodeResult, error) {
195195 for ! d .shouldStop && len (d .rowsData ) > 0 {
196196 // Reduce memory consumption by splitting the source data into chunks (10000 items each)
197197 // 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
199199 chunk := d .rowsData [0 :chunkSz ]
200200 d .rowsData = d .rowsData [chunkSz :]
201201
@@ -470,7 +470,7 @@ func (d *Decoder) readRowData() error {
470470 ableToGetLine = false
471471 getLine = nil
472472 }
473- rowDataItems := make ([]* rowData , 0 , 10000 ) // nolint: gomnd
473+ rowDataItems := make ([]* rowData , 0 , 10000 ) //nolint:mnd
474474
475475 for ; ; row ++ {
476476 records , err := r .Read ()
@@ -590,7 +590,7 @@ func (d *Decoder) validateColumnsMeta(colsMeta, colsMetaFromStruct []*decodeColu
590590 cfg := d .cfg
591591 // Make sure all column options valid
592592 for colKey := range cfg .columnConfigMap {
593- if ! gofn .ContainPred (colsMetaFromStruct , func (colMeta * decodeColumnMeta ) bool {
593+ if ! gofn .ContainBy (colsMetaFromStruct , func (colMeta * decodeColumnMeta ) bool {
594594 return colMeta .headerKey == colKey || colMeta .parentKey == colKey
595595 }) {
596596 return fmt .Errorf ("%w: column \" %s\" not found" , ErrConfigOptionInvalid , colKey )
@@ -789,7 +789,7 @@ func (d *Decoder) parseInlineColumnDynamicType(typ reflect.Type, parent *decodeC
789789
790790func (d * Decoder ) parseDynamicInlineColumns (colsMetaFromStruct []* decodeColumnMeta , fileHeader []string ) (
791791 []* decodeColumnMeta , error ) {
792- newColsMetaFromStruct := make ([]* decodeColumnMeta , 0 , len (colsMetaFromStruct )* 2 ) // nolint: gomnd
792+ newColsMetaFromStruct := make ([]* decodeColumnMeta , 0 , len (colsMetaFromStruct )* 2 ) //nolint:mnd
793793 fileHeaderIndex := 0
794794 for i , colMetaFromStruct := range colsMetaFromStruct {
795795 if colMetaFromStruct .inlineColumnMeta == nil {
0 commit comments