| |
| |
|
|
| module.exports = {
|
|
|
| scanner: {
|
|
|
| include: [
|
| '**/*.js',
|
| '**/*.jsx',
|
| '**/*.ts',
|
| '**/*.tsx',
|
| '**/*.vue',
|
| '**/*.py',
|
| '**/*.java',
|
| '**/*.cs',
|
| '**/*.go',
|
| '**/*.rb'
|
| ],
|
|
|
|
|
| exclude: [
|
| '**/node_modules/**',
|
| '**/dist/**',
|
| '**/build/**',
|
| '**/.git/**',
|
| '**/coverage/**',
|
| '**/*.min.js',
|
| '**/*.bundle.js',
|
| '**/vendor/**',
|
| '**/__pycache__/**',
|
| '**/*.pyc',
|
| '**/docs/**',
|
| '**/project-analysis.json',
|
| '**/DEVELOPMENT_ROADMAP*.md',
|
| '**/dashboard.html',
|
| '**/*.log'
|
| ],
|
|
|
|
|
| maxFileSize: 50 * 1024 * 1024,
|
|
|
|
|
| followSymlinks: false
|
| },
|
|
|
|
|
| patterns: {
|
|
|
| todo: ['TODO', 'FIXME', 'BUG', 'HACK', 'XXX', 'NOTE'],
|
|
|
|
|
| completed: ['DONE', 'COMPLETED', 'FIXED'],
|
|
|
|
|
| quality: ['REFACTOR', 'OPTIMIZE', 'IMPROVE', 'CLEANUP'],
|
|
|
|
|
| security: ['SECURITY', 'VULNERABILITY', 'EXPLOIT', 'UNSAFE']
|
| },
|
|
|
|
|
| analyzers: {
|
|
|
| complexity: {
|
| low: 5,
|
| medium: 10,
|
| high: 20,
|
| critical: 30
|
| },
|
|
|
|
|
| maintainability: {
|
| excellent: 80,
|
| good: 60,
|
| moderate: 40,
|
| poor: 20
|
| },
|
|
|
|
|
| priority: {
|
| severity: 0.30,
|
| impact: 0.25,
|
| complexity: 0.20,
|
| dependencies: 0.15,
|
| age: 0.10
|
| }
|
| },
|
|
|
|
|
| reporters: {
|
|
|
| outputDir: './',
|
|
|
|
|
| formats: ['json', 'markdown', 'html'],
|
|
|
|
|
| filenames: {
|
| json: 'project-analysis.json',
|
| markdown: 'DEVELOPMENT_ROADMAP.md',
|
| html: 'dashboard.html'
|
| }
|
| },
|
|
|
|
|
| security: {
|
|
|
| maxPathLength: 260,
|
|
|
|
|
| maxFileSize: 50 * 1024 * 1024,
|
|
|
|
|
| regexTimeout: 10000,
|
|
|
|
|
| allowSymlinks: false,
|
|
|
|
|
| maxSymlinkDepth: 3,
|
|
|
|
|
| enableRedosProtection: true,
|
|
|
|
|
| forbiddenPaths: process.platform === 'win32'
|
| ? ['C:\\Windows\\', 'C:\\Program Files\\', 'C:\\Program Files (x86)\\']
|
| : ['/etc/', '/usr/bin/', '/bin/', '/sbin/', '/System/'],
|
|
|
|
|
| allowedExtensions: [
|
| '.js', '.jsx', '.ts', '.tsx', '.vue',
|
| '.py', '.java', '.cs', '.go', '.rb',
|
| '.json', '.md', '.txt', '.yml', '.yaml'
|
| ]
|
| },
|
|
|
|
|
| performance: {
|
|
|
| maxConcurrent: 10,
|
|
|
|
|
| enableCache: true,
|
|
|
|
|
| cacheTTL: 3600000
|
| },
|
|
|
|
|
| logging: {
|
|
|
| level: 'info',
|
|
|
|
|
| verbose: false,
|
|
|
|
|
| logFile: null
|
| },
|
|
|
|
|
| integration: {
|
|
|
| git: {
|
| enabled: true,
|
| includeHistory: false
|
| },
|
|
|
|
|
| github: {
|
| enabled: false,
|
| createIssues: false
|
| }
|
| }
|
| };
|
|
|