Skip to content

The design language that makes your AI harness better at design.

JavaScript

Show full anti-pattern names in overlay labels

Paul Bakaus45e68519a432
diff --git a/src/detect-antipatterns-browser.js b/src/detect-antipatterns-browser.js
index ab487bee2..7e42132af 100644
--- a/src/detect-antipatterns-browser.js
+++ b/src/detect-antipatterns-browser.js
@@ -1607,7 +1607,7 @@ if (IS_BROWSER) {
const TYPE_LABELS = {};
const RULE_CATEGORY = {};
for (const ap of ANTIPATTERNS) {
- TYPE_LABELS[ap.id] = ap.name.toLowerCase().substring(0, 26);
+ TYPE_LABELS[ap.id] = ap.name.toLowerCase();
RULE_CATEGORY[ap.id] = ap.category || 'quality';
}
diff --git a/src/detect-antipatterns.mjs b/src/detect-antipatterns.mjs
index 94632eed0..103752d83 100644
--- a/src/detect-antipatterns.mjs
+++ b/src/detect-antipatterns.mjs
@@ -1602,7 +1602,7 @@ if (IS_BROWSER) {
const TYPE_LABELS = {};
const RULE_CATEGORY = {};
for (const ap of ANTIPATTERNS) {
- TYPE_LABELS[ap.id] = ap.name.toLowerCase().substring(0, 26);
+ TYPE_LABELS[ap.id] = ap.name.toLowerCase();
RULE_CATEGORY[ap.id] = ap.category || 'quality';
}