I am trying add the new rule to fix #3810 and I find the lines around negated puzzling. For example,
|
const negated = (when?: string) => when === 'never'; |
Why each rule has to calculate this negated property?
Why it can not just receive the negated as a bool param?
Where this negated is realistically used?
I am trying add the new rule to fix #3810 and I find the lines around
negatedpuzzling. For example,commitlint/@commitlint/rules/src/body-case.ts
Line 5 in 3ee4c28
Why each rule has to calculate this negated property?
Why it can not just receive the
negatedas a bool param?Where this
negatedis realistically used?