Skip to content

Commit c040a90

Browse files
committed
biome automation via python with reporting
1 parent 2af84f8 commit c040a90

12 files changed

+4660
-0
lines changed

.gitignore

+8
Original file line numberDiff line numberDiff line change
@@ -68,3 +68,11 @@ eliza.sig
6868
packages/plugin-nvidia-nim/extra
6969
packages/plugin-nvidia-nim/old_code
7070
packages/plugin-nvidia-nim/docs
71+
72+
# Bug Hunter logs and checkpoints
73+
scripts/bug_hunt/logs/
74+
scripts/bug_hunt/logs/*.log
75+
scripts/bug_hunt/checkpoints/
76+
scripts/bug_hunt/checkpoints/*.json
77+
scripts/bug_hunt/reports/
78+
scripts/bug_hunt/reports/*.md

scripts/bug_hunt/biome.json

+95
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,95 @@
1+
{
2+
"$schema": "https://biomejs.dev/schemas/1.5.3/schema.json",
3+
"extends": ["../../biome.json"],
4+
"organizeImports": {
5+
"enabled": false
6+
},
7+
"linter": {
8+
"enabled": true,
9+
"rules": {
10+
"recommended": true,
11+
"suspicious": {
12+
"noExplicitAny": "error",
13+
"noArrayIndexKey": "error",
14+
"noPrototypeBuiltins": "error",
15+
"noDuplicateObjectKeys": "error",
16+
"noGlobalIsNan": "error",
17+
"noDuplicateFontNames": "error",
18+
"noSelfCompare": "error",
19+
"noDoubleEquals": "error",
20+
"noImplicitAnyLet": "error",
21+
"noAssignInExpressions": "error",
22+
"noExportsInTest": "error",
23+
"noConstEnum": "error",
24+
"noEmptyInterface": "error",
25+
"noConsoleLog": "error"
26+
},
27+
"correctness": {
28+
"noUnusedVariables": "error",
29+
"noUnreachable": "error",
30+
"useExhaustiveDependencies": "error",
31+
"noSwitchDeclarations": "error",
32+
"noUnnecessaryContinue": "error",
33+
"noInnerDeclarations": "error",
34+
"noUndeclaredVariables": "error"
35+
},
36+
"style": {
37+
"useConst": "error",
38+
"useTemplate": "error",
39+
"useImportType": "error",
40+
"useNodejsImportProtocol": "error",
41+
"noUselessElse": "error",
42+
"useSelfClosingElements": "error",
43+
"useNumberNamespace": "error",
44+
"noUnusedTemplateLiteral": "error",
45+
"noInferrableTypes": "error",
46+
"noNonNullAssertion": "error",
47+
"noParameterAssign": "error",
48+
"useDefaultParameterLast": "error",
49+
"useExponentiationOperator": "error",
50+
"noVar": "error",
51+
"useSingleVarDeclarator": "error",
52+
"useExportType": "error"
53+
},
54+
"a11y": {
55+
"useAltText": "error",
56+
"useFocusableInteractive": "error",
57+
"useMediaCaption": "error",
58+
"noSvgWithoutTitle": "error",
59+
"useKeyWithClickEvents": "error"
60+
},
61+
"complexity": {
62+
"noForEach": "error",
63+
"useOptionalChain": "error",
64+
"useArrowFunction": "error",
65+
"useFlatMap": "error",
66+
"useLiteralKeys": "error",
67+
"noBannedTypes": "error",
68+
"noStaticOnlyClass": "error",
69+
"noThisInStatic": "error",
70+
"noUselessConstructor": "error",
71+
"noUselessTernary": "error",
72+
"noUselessSwitchCase": "error",
73+
"noUselessCatch": "error",
74+
"useSimplifiedLogicExpression": "error"
75+
},
76+
"performance": {
77+
"noDelete": "error",
78+
"noAccumulatingSpread": "error"
79+
}
80+
}
81+
},
82+
"formatter": {
83+
"enabled": false
84+
},
85+
"javascript": {
86+
"formatter": {
87+
"quoteStyle": "double",
88+
"semicolons": "always"
89+
}
90+
},
91+
"files": {
92+
"include": ["../../packages/*/src/**/*.{ts,tsx,js,jsx}"],
93+
"ignore": ["**/node_modules/**", "**/dist/**", "**/.next/**"]
94+
}
95+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
{
2+
"analysis": {
3+
"plugins_dir": "../../packages",
4+
"exclude_patterns": [
5+
"**/node_modules/**",
6+
"**/dist/**",
7+
"**/build/**",
8+
"**/*.test.ts",
9+
"**/*.spec.ts"
10+
],
11+
"include_patterns": [
12+
"**/*.ts",
13+
"**/*.js",
14+
"**/*.tsx",
15+
"**/*.jsx"
16+
]
17+
},
18+
"biome": {
19+
"config_path": "../../biome.json",
20+
"additional_rules": {
21+
"style": {
22+
"useConsistentArrayType": "error",
23+
"useConsistentTypeAssertions": "error"
24+
},
25+
"suspicious": {
26+
"noExplicitAny": "error",
27+
"noConsoleLog": "warn"
28+
}
29+
}
30+
},
31+
"error_handling": {
32+
"required_patterns": [
33+
"try\\s*{[\\s\\S]*}\\s*catch",
34+
"\\.catch\\s*\\(",
35+
"Promise\\.reject\\s*\\("
36+
],
37+
"error_propagation": true,
38+
"async_handling": true
39+
},
40+
"logging": {
41+
"required_levels": ["error", "warn", "info", "debug"],
42+
"context_required": true,
43+
"performance_logging": true
44+
},
45+
"type_safety": {
46+
"strict_null_checks": true,
47+
"no_implicit_any": true,
48+
"check_generics": true
49+
},
50+
"reporting": {
51+
"output_dir": "../reports",
52+
"format": "markdown",
53+
"include_suggestions": true,
54+
"prioritize_fixes": true
55+
}
56+
}

0 commit comments

Comments
 (0)