Skip to content

Commit

Permalink
fix linting errors
Browse files Browse the repository at this point in the history
  • Loading branch information
rumenvasilev committed Sep 20, 2023
1 parent 849cbf1 commit 59af97a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
9 changes: 5 additions & 4 deletions internal/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,12 @@ var defaultIgnoreExtensions = []string{"jpg", "jpeg", "png", "gif", "bmp", "tiff
var defaultIgnorePaths = []string{"node_modules/", "vendor/bundle", "vendor/cache", "/proc/"}

type Config struct {
Signatures Signatures `mapstructure:"signatures" yaml:"signatures"`
Github Github `mapstructure:"github" yaml:"github"`
Gitlab `mapstructure:"gitlab" yaml:"gitlab"`
Global Global `mapstructure:"global" yaml:"global"`
Local Local `mapstructure:"local" yaml:"local"`
Local Local `mapstructure:"local" yaml:"local"`
Signatures Signatures `mapstructure:"signatures" yaml:"signatures"`

Gitlab `mapstructure:"gitlab" yaml:"gitlab"`
Global Global `mapstructure:"global" yaml:"global"`
}

type Global struct {
Expand Down
2 changes: 1 addition & 1 deletion internal/core/signatures/signatures.go
Original file line number Diff line number Diff line change
Expand Up @@ -231,8 +231,8 @@ func getPart(sigDef SignatureDef) string {
}

type DiscoverOutput struct {
Content string
Sig Signature
Content string
LineNum int
}

Expand Down
2 changes: 1 addition & 1 deletion internal/pkg/scan/localpath/localpath-impl.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ func doFileScan(filename string, sess *core.Session) {
}

// Add a new finding and increment the total
fin.Initialize(sess.Config.Global.ScanType, "")
_ = fin.Initialize(sess.Config.Global.ScanType, "")
sess.AddFinding(fin)

// print the current finding to stdout
Expand Down

0 comments on commit 59af97a

Please sign in to comment.