mirror of
https://github.com/gitleaks/gitleaks.git
synced 2026-11-30 05:04:22 +01:00
build: updates for go1.17 (#769)
* build: remove `GO111MODULE` as it turned on by default Signed-off-by: Rui Chen <rui@chenrui.dev> * build: update for go1.17 * run test Signed-off-by: Rui Chen <rui@chenrui.dev> * lint: remove unused code
This commit is contained in:
7 files changed
+22
-20
No files matched your search
@@ -2,4 +2,3 @@ package report
|
||||
|
||||
const version = "v8.0.0"
|
||||
const driver = "gitleaks"
|
||||
const driverURL = "https://github.com/zricethezav/gitleaks"
|
||||
@@ -207,14 +207,3 @@ type Runs struct {
|
||||
Tool Tool `json:"tool"`
|
||||
Results []Results `json:"results"`
|
||||
}
|
||||
|
||||
func configToRules(cfg config.Config) []Rules {
|
||||
var rules []Rules
|
||||
for _, rule := range cfg.Rules {
|
||||
rules = append(rules, Rules{
|
||||
ID: rule.RuleID,
|
||||
Name: rule.Description,
|
||||
})
|
||||
}
|
||||
return rules
|
||||
}
|
||||
Reference in new issue
Block a user