Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
JoaoAtGit committed Feb 5, 2024
1 parent c45c03e commit 7c36587
Showing 1 changed file with 11 additions and 12 deletions.
23 changes: 11 additions & 12 deletions pkg/kics/resolver_sink.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package kics

import (
"bytes"
"context"
"encoding/json"
"fmt"
Expand Down Expand Up @@ -39,19 +38,19 @@ func (s *Service) resolverSink(ctx context.Context, filename, scanID string, ope
log.Err(err).Msgf("failed to parse file content")
return []string{}, nil
}
/*
if kind == model.KindHELM {
ignoreList, errorIL := s.getOriginalIgnoreLines(rfile.FileName, rfile.OriginalData, openAPIResolveReferences, isMinified)
if errorIL == nil {
documents.IgnoreLines = ignoreList
if kind == model.KindHELM {
ignoreList, errorIL := s.getOriginalIgnoreLines(rfile.FileName, rfile.OriginalData, openAPIResolveReferences, isMinified)
if errorIL == nil {
documents.IgnoreLines = ignoreList

// Need to ignore #KICS_HELM_ID Line
documents.CountLines = bytes.Count(rfile.OriginalData, []byte{'\n'})
// Need to ignore #KICS_HELM_ID Line
documents.CountLines = bytes.Count(rfile.OriginalData, []byte{'\n'})
}
} else {
documents.CountLines = bytes.Count(rfile.OriginalData, []byte{'\n'}) + 1
}
} else {
documents.CountLines = bytes.Count(rfile.OriginalData, []byte{'\n'}) + 1
}

*/
fileCommands := s.Parser.CommentsCommands(rfile.FileName, rfile.OriginalData)

for _, document := range documents.Docs {
Expand Down

0 comments on commit 7c36587

Please sign in to comment.