mirror of
https://github.com/gitleaks/gitleaks.git
synced 2026-12-01 13:34:23 +01:00
gofmt
This commit is contained in:
1 parent
9122aa6cf4
commit
660350c9b1
2 files changed
+4
-4
No files matched your search
+2
-2
@@ -58,14 +58,14 @@ func auditGitlabRepos() ([]Leak, error) {
|
|||||||
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
// exit when can't make API call
|
// exit when can't make API call
|
||||||
log.Fatal("error listing projects: ", err)
|
log.Fatal("error listing projects: ", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
repos = append(repos, ps...)
|
repos = append(repos, ps...)
|
||||||
|
|
||||||
if page >= resp.TotalPages {
|
if page >= resp.TotalPages {
|
||||||
// exit when we've seen all pages
|
// exit when we've seen all pages
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
|
|
||||||
page = resp.NextPage
|
page = resp.NextPage
|
||||||
|
|||||||
+2
-2
@@ -45,7 +45,7 @@ type Options struct {
|
|||||||
Entropy float64 `long:"entropy" short:"e" description:"Include entropy checks during audit. Entropy scale: 0.0(no entropy) - 8.0(max entropy)"`
|
Entropy float64 `long:"entropy" short:"e" description:"Include entropy checks during audit. Entropy scale: 0.0(no entropy) - 8.0(max entropy)"`
|
||||||
NoiseReduction bool `long:"noise-reduction" description:"Reduce the number of finds when entropy checks are enabled"`
|
NoiseReduction bool `long:"noise-reduction" description:"Reduce the number of finds when entropy checks are enabled"`
|
||||||
RepoConfig bool `long:"repo-config" description:"Load config from target repo. Config file must be \".gitleaks.toml\""`
|
RepoConfig bool `long:"repo-config" description:"Load config from target repo. Config file must be \".gitleaks.toml\""`
|
||||||
Branch string `long:"branch" description:"Branch to audit"`
|
Branch string `long:"branch" description:"Branch to audit"`
|
||||||
// TODO: IncludeMessages string `long:"messages" description:"include commit messages in audit"`
|
// TODO: IncludeMessages string `long:"messages" description:"include commit messages in audit"`
|
||||||
|
|
||||||
// Output options
|
// Output options
|
||||||
@@ -58,7 +58,7 @@ type Options struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// ParseOpts parses the options
|
// ParseOpts parses the options
|
||||||
func ParseOpts() (*Options) {
|
func ParseOpts() *Options {
|
||||||
var opts Options
|
var opts Options
|
||||||
parser := flags.NewParser(&opts, flags.Default)
|
parser := flags.NewParser(&opts, flags.Default)
|
||||||
_, err := parser.Parse()
|
_, err := parser.Parse()
|
||||||
|
|||||||
Reference in new issue
Block a user