You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
console.log(`\n${colorize("↻","cyan")} Checking ${colorize(String(skippedByVersion.length),"bold")} new ${skippedByVersion.length===1 ? "rule" : "rules"} against your codebase...`)
console.log(`\n${colorize("✓","brightGreen")} Updated ${colorize(".herb.yml","cyan")} version from ${colorize(configVersion,"cyan")} to ${colorize(version,"cyan")}`)
console.log(`\n${colorize("!","yellow")} Found ${colorize(String(totalOffenses),"bold")}${totalOffenses===1 ? "offense" : "offenses"} across ${colorize(String(rulesToDisable.length),"bold")} new ${rulesToDisable.length===1 ? "rule" : "rules"}. Disabled to ease the upgrade:\n`)
console.log(` Enable rules individually in your ${colorize(".herb.yml","cyan")} when you're ready.`)
273
+
console.log(`\n When you're ready, review the disabled ${rulesToDisable.length===1 ? "rule" : "rules"} in your ${colorize(".herb.yml","cyan")} and re-enable them after fixing the offenses.`)
274
+
}
275
+
276
+
if(skippedByVersion.length===0){
277
+
console.log(`\n${colorize("✓","brightGreen")} No new rules to configure.`)
console.log(` Your ${colorize(".herb.yml","cyan")} version is ${colorize(configVersion!,"cyan")}. ${colorize(String(ruleCount),"bold")} new ${this.pluralize(ruleCount,"rule")}${ruleCount===1 ? "is" : "are"} disabled to ease upgrades:`)
146
152
147
-
if(configVersion){
148
-
console.log(` Your ${colorize(".herb.yml","cyan")} version is ${colorize(configVersion,"cyan")}. ${colorize(String(ruleCount),"bold")} new ${this.pluralize(ruleCount,"rule")}${ruleCount===1 ? "is" : "are"} disabled to ease upgrades:`)
149
-
}else{
150
-
console.log(` ${colorize(String(ruleCount),"bold")}${this.pluralize(ruleCount,"rule")}${ruleCount===1 ? "is" : "are"} available in newer versions:`)
153
+
if(configPath){
154
+
console.log(` ${colorize("from Herb config:","gray")}${colorize(configPath,"cyan")}`)
151
155
}
152
156
153
157
console.log("")
@@ -174,8 +178,8 @@ export class SummaryReporter {
174
178
}
175
179
176
180
console.log("")
177
-
console.log(` Run ${colorize("herb-lint --upgrade","cyan")} to update the version and disable all new rules, or`)
178
-
console.log(` update the version in your ${colorize(".herb.yml","cyan")} to ${colorize(`"${suggestedVersion}"`,"cyan")}to enable them all at once.`)
181
+
console.log(` Run ${colorize("herb-lint --upgrade","cyan")} to update the version. Rules with no offenses will be`)
182
+
console.log(` enabled automatically; rules with offenses will be disabled to ease the upgrade.`)
0 commit comments