diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 21fff7dc..27353e90 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -51,5 +51,5 @@ jobs: - name: Checkout code uses: actions/checkout@v2 - - name: Check Code Formation + - name: Check Code Formatting run: find . -name "*.go" | while read line; do [ -z "$(gofmt -d "$line" | head)" ] || exit 1; done diff --git a/entity/dag/operation_pack.go b/entity/dag/operation_pack.go index 8ca2ff56..9b42f9bf 100644 --- a/entity/dag/operation_pack.go +++ b/entity/dag/operation_pack.go @@ -359,5 +359,5 @@ func (pk PGPKeyring) DecryptionKeys() []openpgp.Key { // } // } // return result - return nil + panic("not implemented") } diff --git a/util/text/validate.go b/util/text/validate.go index 4c3f7065..f25a56b4 100644 --- a/util/text/validate.go +++ b/util/text/validate.go @@ -33,7 +33,7 @@ func Safe(s string) bool { return true } -// Safe will tell if a character in the string is considered unsafe +// SafeOneLine will tell if a character in the string is considered unsafe // Currently trigger on all unicode control character func SafeOneLine(s string) bool { for _, r := range s {