/** * Default configuration for Smart Roadmap Scanner */ module.exports = { // Scanner settings scanner: { // File patterns to scan include: [ '**/*.js', '**/*.jsx', '**/*.ts', '**/*.tsx', '**/*.vue', '**/*.py', '**/*.java', '**/*.cs', '**/*.go', '**/*.rb' ], // File patterns to ignore exclude: [ '**/node_modules/**', '**/dist/**', '**/build/**', '**/.git/**', '**/coverage/**', '**/*.min.js', '**/*.bundle.js', '**/vendor/**', '**/__pycache__/**', '**/*.pyc', '**/docs/**', // Don't scan documentation output '**/project-analysis.json', // Don't scan output files '**/DEVELOPMENT_ROADMAP*.md', // Don't scan generated roadmaps '**/dashboard.html', // Don't scan generated dashboards '**/*.log' // Don't scan log files ], // Maximum file size to scan (bytes) maxFileSize: 50 * 1024 * 1024, // 50MB // Follow symbolic links followSymlinks: false }, // Pattern detection settings patterns: { // Task markers todo: ['TODO', 'FIXME', 'BUG', 'HACK', 'XXX', 'NOTE'], // Completed markers completed: ['DONE', 'COMPLETED', 'FIXED'], // Code quality markers quality: ['REFACTOR', 'OPTIMIZE', 'IMPROVE', 'CLEANUP'], // Security markers security: ['SECURITY', 'VULNERABILITY', 'EXPLOIT', 'UNSAFE'] }, // Analyzer settings analyzers: { // Complexity thresholds complexity: { low: 5, medium: 10, high: 20, critical: 30 }, // Maintainability thresholds maintainability: { excellent: 80, good: 60, moderate: 40, poor: 20 }, // Priority weights priority: { severity: 0.30, impact: 0.25, complexity: 0.20, dependencies: 0.15, age: 0.10 } }, // Reporter settings reporters: { // Output directory outputDir: './', // Report formats to generate formats: ['json', 'markdown', 'html'], // Report file names filenames: { json: 'project-analysis.json', markdown: 'DEVELOPMENT_ROADMAP.md', html: 'dashboard.html' } }, // Security settings security: { // Maximum path length maxPathLength: 260, // Maximum file size maxFileSize: 50 * 1024 * 1024, // 50MB // Regex timeout (milliseconds) regexTimeout: 10000, // Allow symbolic links allowSymlinks: false, // Maximum symlink depth maxSymlinkDepth: 3, // Enable ReDoS protection enableRedosProtection: true, // Forbidden paths (OS-specific) forbiddenPaths: process.platform === 'win32' ? ['C:\\Windows\\', 'C:\\Program Files\\', 'C:\\Program Files (x86)\\'] : ['/etc/', '/usr/bin/', '/bin/', '/sbin/', '/System/'], // Allowed file extensions allowedExtensions: [ '.js', '.jsx', '.ts', '.tsx', '.vue', '.py', '.java', '.cs', '.go', '.rb', '.json', '.md', '.txt', '.yml', '.yaml' ] }, // Performance settings performance: { // Maximum concurrent file reads maxConcurrent: 10, // Enable caching enableCache: true, // Cache TTL (milliseconds) cacheTTL: 3600000 // 1 hour }, // Logging settings logging: { // Log level: 'error', 'warn', 'info', 'debug' level: 'info', // Enable verbose output verbose: false, // Log file path (null = console only) logFile: null }, // Integration settings integration: { // Git integration git: { enabled: true, includeHistory: false }, // GitHub integration github: { enabled: false, createIssues: false } } };