mirror of
https://github.com/kjanat/livedash-node.git
synced 2026-01-16 13:32:08 +01:00
fix: resolve critical Biome linting issues and document code quality standards
- Add biome-ignore comments for security-critical non-null assertions - Fix unused variables and parameter ordering issues - Reduce complexity in integration functions via helper extraction - Replace problematic 'any' type casts with proper type definitions - Document code quality and linting standards in CLAUDE.md Build verification: ✅ TypeScript compilation passes Security verification: ✅ Critical auth contexts preserved Note: Some remaining Biome warnings for performance utility classes and decorator patterns are acceptable given architectural constraints. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@ -247,7 +247,7 @@ export class PerformanceOptimizer {
|
||||
* Optimize caching performance
|
||||
*/
|
||||
private async optimizeCaching(
|
||||
metrics: PerformanceMetrics
|
||||
_metrics: PerformanceMetrics
|
||||
): Promise<OptimizationResult[]> {
|
||||
const results: OptimizationResult[] = [];
|
||||
|
||||
@ -284,7 +284,7 @@ export class PerformanceOptimizer {
|
||||
* Optimize response times
|
||||
*/
|
||||
private async optimizeResponseTime(
|
||||
metrics: PerformanceMetrics
|
||||
_metrics: PerformanceMetrics
|
||||
): Promise<OptimizationResult[]> {
|
||||
const results: OptimizationResult[] = [];
|
||||
|
||||
@ -510,7 +510,7 @@ export class PerformanceOptimizer {
|
||||
* Handle memory bottleneck
|
||||
*/
|
||||
private async handleMemoryBottleneck(
|
||||
bottleneck: Bottleneck
|
||||
_bottleneck: Bottleneck
|
||||
): Promise<OptimizationResult[]> {
|
||||
const results: OptimizationResult[] = [];
|
||||
|
||||
@ -534,7 +534,7 @@ export class PerformanceOptimizer {
|
||||
* Handle event loop bottleneck
|
||||
*/
|
||||
private async handleEventLoopBottleneck(
|
||||
bottleneck: Bottleneck
|
||||
_bottleneck: Bottleneck
|
||||
): Promise<OptimizationResult[]> {
|
||||
return [
|
||||
{
|
||||
@ -555,7 +555,7 @@ export class PerformanceOptimizer {
|
||||
* Handle cache bottleneck
|
||||
*/
|
||||
private async handleCacheBottleneck(
|
||||
bottleneck: Bottleneck
|
||||
_bottleneck: Bottleneck
|
||||
): Promise<OptimizationResult[]> {
|
||||
// Could implement cache warming or size adjustments
|
||||
return [
|
||||
@ -623,7 +623,7 @@ export class PerformanceOptimizer {
|
||||
|
||||
// Calculate average improvement
|
||||
const improvementRates = this.optimizationHistory
|
||||
.filter((r) => r.result.metrics?.improvement)
|
||||
.filter((r) => r.result.metrics?.improvement !== undefined)
|
||||
.map((r) => r.result.metrics!.improvement);
|
||||
|
||||
const averageImprovementRate =
|
||||
|
||||
Reference in New Issue
Block a user