export const BugMlMensagens = {
    altaProbabilidade: (prob, fatores) => `ML: High probability of bugs (${prob}%). Factors: ${fatores}`,
    mlPattern: (confianca, message) => `[ML ${confianca}%] ${message}`,
    complexidadeCiclomatica: (count) => `High cyclomatic complexity (${count})`,
    muitasFuncoes: (count) => `Many functions (${count})`,
    aninhamentoProfundo: (depth) => `Deep nesting (${depth} levels)`,
    arquivoMuitoLongo: (count) => `Very long file (${count} lines)`,
    castsInseguros: (count) => `Frequent unsafe casts (${count})`,
    usoExcessivoAny: (count) => `Excessive 'any' usage (${count})`,
    promisesSemTratamento: 'Promises without error handling',
    muitosTODOs: 'Many TODOs/FIXMEs',
    nullPointerDerefMessage: (preview) => `Possible null pointer dereference: ${preview}`,
    nullPointerDerefSuggestion: 'Check if result is null/undefined before chaining methods',
    chamadaSemOptionalMessage: (funcName) => `Call to '${funcName}' without optional chaining may cause null pointer`,
    chamadaSemOptionalSuggestion: 'Use optional chaining: `?.`',
    memoryLeakMessage: (preview) => `Possible memory leak: ${preview} without cleanup`,
    memoryLeakSuggestion: 'Add cleanup (removeEventListener, clearInterval, unsubscribe)',
    raceConditionMessage: 'Possible race condition: shared state between async operations',
    raceConditionSuggestion: 'Use locks or atomic operations for shared state',
    typeAssumptionMessage: (preview) => `Unsafe type assertion: ${preview}`,
    typeAssumptionSuggestion: 'Validate type before casting, use type guards',
    unhandledPromiseMessage: 'Promise created without then/catch handling',
    unhandledPromiseSuggestion: 'Add .catch() or .then() to handle the result',
    deepNestingMessage: (depth) => `Excessive nesting (${depth} levels) - high probability of bugs`,
    deepNestingSuggestion: 'Extract logic into smaller functions to reduce complexity',
    magicNumberMessage: (num) => `Magic number: ${num} - consider extracting to a named constant`,
    magicNumberSuggestion: (num) => `Create a descriptive named constant for ${num}`,
    unsafeComparisonMessage: (preview) => `Potentially unsafe comparison: ${preview}`,
    unsafeComparisonSuggestion: 'Use === instead of ==, avoid hardcoded secrets'
};
//# sourceMappingURL=detector-bugs-ml-messages.js.map