MCPcopy Create free account
hub / github.com/conventional-changelog/commitlint / selectSign

Function selectSign

@commitlint/format/src/format.ts:97–102  ·  view source on GitHub ↗
(result: FormattableResult)

Source from the content-addressed store, hash-verified

95export default format;
96
97function selectSign(result: FormattableResult): string {
98 if ((result.errors || []).length > 0) {
99 return "✖";
100 }
101 return (result.warnings || []).length ? "⚠" : "✔";
102}
103
104function selectColor(result: FormattableResult): PicocolorsColor {
105 if ((result.errors || []).length > 0) {

Callers 1

formatResultFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected