mirror of
https://github.com/gitleaks/gitleaks.git
synced 2026-11-30 05:04:22 +01:00
1 parent
8eb28cbb4c
commit
fad98cbde2
216 files changed
+27523
-3828
No files matched your search
+5
-4
@@ -3,12 +3,13 @@ go_import_path: github.com/kevinburke/ssh_config
|
||||
language: go
|
||||
|
||||
go:
|
||||
- 1.7
|
||||
- 1.8
|
||||
- tip
|
||||
- 1.9.x
|
||||
- 1.10.x
|
||||
- 1.11.x
|
||||
- master
|
||||
|
||||
before_script:
|
||||
- go get -u ./...
|
||||
|
||||
script:
|
||||
- make test
|
||||
- make race-test
|
||||
+1
@@ -1,3 +1,4 @@
|
||||
Eugene Terentev <eugene@terentev.net>
|
||||
Kevin Burke <kev@inburke.com>
|
||||
Sergey Lukjanov <me@slukjanov.name>
|
||||
Wayne Ashley Berry <wayneashleyberry@gmail.com>
|
||||
+6
-3
@@ -13,12 +13,15 @@ lint: $(MEGACHECK)
|
||||
|
||||
test: lint
|
||||
@# the timeout helps guard against infinite recursion
|
||||
go test -timeout=50ms ./...
|
||||
go test -timeout=250ms ./...
|
||||
|
||||
race-test: lint
|
||||
go test -timeout=500ms -race ./...
|
||||
|
||||
$(BUMP_VERSION):
|
||||
go get github.com/Shyp/bump_version
|
||||
go get -u github.com/kevinburke/bump_version
|
||||
|
||||
release: $(BUMP_VERSION)
|
||||
release: test | $(BUMP_VERSION)
|
||||
$(BUMP_VERSION) minor config.go
|
||||
|
||||
force: ;
|
||||
|
||||
+1
-1
@@ -43,7 +43,7 @@ import (
|
||||
"sync"
|
||||
)
|
||||
|
||||
const version = "0.4"
|
||||
const version = "0.5"
|
||||
|
||||
type configFinder func() string
|
||||
|
||||
|
||||
+3
@@ -96,6 +96,9 @@ func (p *sshParser) parseKV() sshParserStateFn {
|
||||
}
|
||||
comment := ""
|
||||
tok := p.peek()
|
||||
if tok == nil {
|
||||
tok = &token{typ: tokenEOF}
|
||||
}
|
||||
if tok.typ == tokenComment && tok.Position.Line == val.Position.Line {
|
||||
tok = p.getToken()
|
||||
comment = tok.val
|
||||
|
||||
Reference in new issue
Block a user