Skip to content

Commit 7859b39

Browse files
muhlemmerlivio-a
andauthored
chore(docs): add go report card (#13)
* chore(docs): add go report card fix misspellings * update go version support --------- Co-authored-by: Livio Spring <livio.a@gmail.com>
1 parent f76c656 commit 7859b39

File tree

6 files changed

+9
-7
lines changed

6 files changed

+9
-7
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
[![Go Reference](https://pkg.go.dev/badge/github.com/zitadel/passwap.svg)](https://pkg.go.dev/github.com/zitadel/passwap)
44
[![Go](https://github.com/zitadel/passwap/actions/workflows/go.yml/badge.svg)](https://github.com/zitadel/passwap/actions/workflows/go.yml)
55
[![codecov](https://codecov.io/gh/zitadel/passwap/branch/main/graph/badge.svg?token=GrPT2nbCjj)](https://codecov.io/gh/zitadel/passwap)
6+
[![Go Report Card](https://goreportcard.com/badge/github.com/zitadel/passwap)](https://goreportcard.com/report/github.com/zitadel/passwap)
67

78
Package Passwap provides a unified implementation between
89
different password hashing algorithms in the Go ecosystem.
@@ -171,8 +172,9 @@ Versions that also build are marked with :warning:.
171172
| ------- | ------------------ |
172173
| <1.18 | :x: |
173174
| 1.18 | :warning: |
174-
| 1.19 | :white_check_mark: |
175+
| 1.19 | :warning: |
175176
| 1.20 | :white_check_mark: |
177+
| 1.21 | :white_check_mark: |
176178

177179
## License
178180

argon2/argon2.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ var (
5656
// See https://github.com/P-H-C/phc-string-format/blob/master/phc-sf-spec.md.
5757
const Format = "$%s$v=%d$m=%d,t=%d,p=%d$%s$%s"
5858

59-
// scanning needs a space seperated string, instead of dollar signs.
59+
// scanning needs a space separated string, instead of dollar signs.
6060
var scanFormat = strings.ReplaceAll(Format, "$", " ")
6161

6262
var (
@@ -87,7 +87,7 @@ func parse(encoded string) (*checker, error) {
8787
c checker
8888
)
8989

90-
// scanning needs a space seperated string, instead of dollar signs.
90+
// scanning needs a space separated string, instead of dollar signs.
9191
encoded = strings.ReplaceAll(encoded, "$", " ")
9292

9393
_, err := fmt.Sscanf(encoded, scanFormat, &c.id, &version, &c.Memory, &c.Time, &c.Threads, &salt, &hash)

md5/md5.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ func parse(encoded string) (*checker, error) {
139139
return nil, nil
140140
}
141141

142-
// scanning needs a space seperated string, instead of dollar signs.
142+
// scanning needs a space separated string, instead of dollar signs.
143143
encoded = strings.ReplaceAll(encoded, "$", " ")
144144
var c checker
145145

passwap.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ func (e SkipErrors) Error() string {
8989
// Hasher or the cost parameters differ, an updated encoded hash
9090
// string is returned for the same (valid) password.
9191
// In all other cases updated remains empty.
92-
// When updated is not empty, it must be stored untill next use.
92+
// When updated is not empty, it must be stored until next use.
9393
func (s *Swapper) Verify(encoded, password string) (updated string, err error) {
9494
return s.verifyAndUpdate(encoded, password, password)
9595
}

pbkdf2/pbkdf2.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ func parse(encoded string) (*checker, error) {
115115
c checker
116116
)
117117

118-
// scanning needs a space seperated string, instead of dollar signs.
118+
// scanning needs a space separated string, instead of dollar signs.
119119
encoded = strings.ReplaceAll(encoded, "$", " ")
120120

121121
_, err := fmt.Sscanf(encoded, scanFormat, &c.id, &c.Rounds, &salt, &hash)

scrypt/scrypt.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ func parse(encoded string) (*checker, error) {
7474
c checker
7575
)
7676

77-
// scanning needs a space seperated string, instead of dollar signs.
77+
// scanning needs a space separated string, instead of dollar signs.
7878
encoded = strings.ReplaceAll(encoded, "$", " ")
7979

8080
_, err := fmt.Sscanf(encoded, scanFormat, &id, &ln, &c.R, &c.P, &salt, &hash)

0 commit comments

Comments
 (0)