MCPcopy Create free account
hub / github.com/conventionalcommit/commitlint / trimRightSpace

Function trimRightSpace

internal/cmd/lint.go:121–123  ·  view source on GitHub ↗
(s string)

Source from the content-addressed store, hash-verified

119}
120
121func trimRightSpace(s string) string {
122 return strings.TrimRightFunc(s, unicode.IsSpace)
123}
124
125func cleanupMsg(dirtyMsg string) string {
126 // commit msg cleanup in git is configurable: https://git-scm.com/docs/git-commit#Documentation/git-commit.txt---cleanupltmodegt

Callers 1

cleanupMsgFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected