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
Is your feature request related to a problem? Please describe.
This ticket contains a list of enhancements that would improve the complexity tracking capabilities and documentation.
Describe the solution you'd like
Update diag-renderer.ts to:
Support a scalable way to output better summaries/totals
Reduce redundancies where the filepath appends to each diagnostic; perhaps color code the file or move the file up and only show the line?
Update the complexity plugin to:
Account for more weighted complexity than just types (based on this comment); would be something like { type: "foo", metaData: { role: "bar" } }
Additional context
Some initial work on displaying the summary at the end of type count totals
// TO DO: Potentially display this in a totals summary within diag-rendererif(this.config.typeWeights&&Object.keys(this.config.typeWeights).length>0){this.verboseDetails.push({message: `----- Type Totals -----`,severity: DiagnosticSeverity.Information,range: diagnosticRange,});}Object.entries(this.typeCount).forEach(([type,count])=>{if(this.config.typeWeights){consttypeMultiplier=this.config.typeWeights[type];this.verboseDetails.push({message: `${type}: ${count} x ${typeMultiplier} pt = ${count*typeMultiplier}`,severity: DiagnosticSeverity.Information,range: diagnosticRange,});}});
The text was updated successfully, but these errors were encountered:
The original feature will be added in this PR.
Is your feature request related to a problem? Please describe.
This ticket contains a list of enhancements that would improve the complexity tracking capabilities and documentation.
Describe the solution you'd like
Update diag-renderer.ts to:
Update the complexity plugin to:
{ type: "foo", metaData: { role: "bar" } }
Additional context
Some initial work on displaying the summary at the end of type count totals
The text was updated successfully, but these errors were encountered: