mirror of
https://github.com/gitleaks/gitleaks.git
synced 2026-12-01 05:24:22 +01:00
fixing all golint and adding some more tests
This commit is contained in:
1 parent
2ccd40677d
commit
e446ba0738
19 files changed
+161
-91
No files matched your search
@@ -10,11 +10,14 @@ const (
|
||||
_gitlab
|
||||
)
|
||||
|
||||
// Host is an interface used for defining external git hosting providers like github and gitlab.
|
||||
// TODO add bitbucket
|
||||
type Host interface {
|
||||
Audit()
|
||||
AuditPR()
|
||||
}
|
||||
|
||||
// Run kicks off a host audit. This function accepts a manager and determines what host it should audit
|
||||
func Run(m *manager.Manager) error {
|
||||
var host Host
|
||||
switch getHost(m.Opts.Host) {
|
||||
|
||||
Reference in new issue
Block a user