UNPKG

pury

Version:

🛡️ AI-powered security scanner with advanced threat detection, dual reporting system (detailed & summary), and comprehensive code analysis

195 lines 3.51 kB
export const DEFAULT_CONFIG = { scanner: { exclude: [ 'node_modules/**', 'dist/**', 'build/**', 'out/**', '.git/**', '.svn/**', '.hg/**', '*.min.js', '*.min.css', '*.map', 'coverage/**', '.nyc_output/**', 'tmp/**', 'temp/**', '*.log', '*.lock' ], include: ['**/*'], maxFileSize: 1024 * 1024, // 1MB followSymlinks: false }, analyzers: { malware: { enabled: true, sensitivity: 'medium', customRules: [] }, secrets: { enabled: true, sensitivity: 'medium', customRules: [] }, vulnerabilities: { enabled: true, sensitivity: 'medium', customRules: [] }, codeQuality: { enabled: false, sensitivity: 'medium', customRules: [] } }, ai: { provider: 'gemini', gemini: { model: 'gemini-2.5-flash', temperature: 0.1, maxTokens: 2048 } }, output: { format: 'console', verbose: false } }; export const DEFAULT_EXCLUDE_PATTERNS = [ // Dependencies 'node_modules/**', 'vendor/**', 'bower_components/**', // Build outputs 'dist/**', 'build/**', 'out/**', 'target/**', 'bin/**', 'obj/**', // Version control '.git/**', '.svn/**', '.hg/**', '.bzr/**', // IDE/Editor files '.vscode/**', '.idea/**', '*.swp', '*.swo', '*~', // OS files '.DS_Store', 'Thumbs.db', 'desktop.ini', // Logs and temporary files '*.log', '*.tmp', '*.temp', 'tmp/**', 'temp/**', // Lock files '*.lock', 'package-lock.json', 'yarn.lock', 'pnpm-lock.yaml', 'composer.lock', // Minified files '*.min.js', '*.min.css', '*.min.html', // Source maps '*.map', '*.js.map', '*.css.map', // Coverage reports 'coverage/**', '.nyc_output/**', 'lcov.info', // Cache directories '.cache/**', '.parcel-cache/**', '.next/**', '.nuxt/**' ]; export const TEXT_FILE_EXTENSIONS = [ // JavaScript/TypeScript '.js', '.jsx', '.ts', '.tsx', '.mjs', '.cjs', // Web languages '.html', '.htm', '.css', '.scss', '.sass', '.less', '.xml', '.svg', // Backend languages '.py', '.java', '.c', '.cpp', '.h', '.hpp', '.cs', '.php', '.rb', '.go', '.rs', '.swift', '.kt', '.scala', '.m', '.mm', '.vb', '.f90', '.f95', // Shell scripts '.sh', '.bash', '.zsh', '.fish', '.ps1', '.bat', '.cmd', // Configuration files '.json', '.yaml', '.yml', '.toml', '.ini', '.cfg', '.conf', '.properties', '.env', '.editorconfig', '.gitignore', '.gitattributes', '.dockerignore', // Documentation '.md', '.txt', '.rst', '.adoc', '.tex', // SQL and data '.sql', '.graphql', '.gql', // Build files 'Dockerfile', 'Makefile', 'CMakeLists.txt', '.gradle', '.maven', // No extension (often config files) '' ]; //# sourceMappingURL=defaults.js.map