Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions engine/engine.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,15 @@ package engine
import (
"crypto/sha1"
"fmt"
"github.com/checkmarx/2ms/engine/linecontent"
"github.com/checkmarx/2ms/engine/score"
"os"
"regexp"
"strings"
"sync"
"text/tabwriter"

"github.com/checkmarx/2ms/engine/linecontent"
"github.com/checkmarx/2ms/engine/score"

"github.com/checkmarx/2ms/engine/rules"
"github.com/checkmarx/2ms/engine/validation"
"github.com/checkmarx/2ms/lib/secrets"
Expand Down Expand Up @@ -86,7 +87,7 @@ func (e *Engine) Detect(item plugins.ISourceItem, secretsChannel chan *secrets.S
FilePath: item.GetSource(),
}
for _, value := range e.detector.Detect(fragment) {
itemId := getFindingId(item, value)
itemId := getFindingId(item, value) //fosadsjn
var startLine, endLine int
if pluginName == "filesystem" {
startLine = value.StartLine + 1
Expand Down
Loading