app/javascript/components/profile/contributions-summary/use-chart.ts
Function useChart
has 47 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const useChart = (
canvas: HTMLCanvasElement | null,
reputation: number[],
trackColor?: string
): Chart<'radar'> => {
Function generateConfig
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const generateConfig = (
canvas: HTMLCanvasElement
): ChartConfiguration<'radar'> => {
const borderColor = getComputedStyle(canvas).getPropertyValue(
'--chartBorderColor'