mirror of
https://github.com/gitleaks/gitleaks.git
synced 2026-11-30 21:24:21 +01:00
Revert "remove validate config test temporarily" (#1529)
* Revert "remove validate config test temporarily"
This reverts commit 1a6d2b0a7a.
* style: fix lint error
This commit is contained in:
1 parent
78f7d3f5df
commit
191eb43841
3 files changed
+9
-7
No files matched your search
@@ -24,3 +24,6 @@ jobs:
|
|||||||
|
|
||||||
- name: Test
|
- name: Test
|
||||||
run: make test
|
run: make test
|
||||||
|
|
||||||
|
- name: Validate Config
|
||||||
|
run: go generate ./... && git diff --exit-code
|
||||||
@@ -43,7 +43,6 @@ func runDirectory(cmd *cobra.Command, args []string) {
|
|||||||
// start timer
|
// start timer
|
||||||
start := time.Now()
|
start := time.Now()
|
||||||
|
|
||||||
|
|
||||||
detector := Detector(cmd, cfg, source)
|
detector := Detector(cmd, cfg, source)
|
||||||
|
|
||||||
// set exit code
|
// set exit code
|
||||||
|
|||||||
+6
-6
@@ -31,13 +31,13 @@ func runGit(cmd *cobra.Command, args []string) {
|
|||||||
)
|
)
|
||||||
|
|
||||||
// grab source
|
// grab source
|
||||||
source := "."
|
source := "."
|
||||||
if len(args) == 1 {
|
if len(args) == 1 {
|
||||||
source = args[0]
|
source = args[0]
|
||||||
if source == "" {
|
if source == "" {
|
||||||
source = "."
|
source = "."
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
initConfig(source)
|
initConfig(source)
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user