UNPKG

scai

Version:

> **AI-powered CLI for local code analysis, commit message suggestions, and natural-language queries.** 100% local, private, GDPR-friendly, made in Denmark/EU with ❤️.

11 lines (10 loc) 352 B
// src/fileRules/classifyFile.ts import { isGeneratedOrBundledFile } from "./fileClassifier.js"; import { shouldIgnoreFile } from "./shouldIgnoreFiles.js"; export function classifyFile(filepath) { if (shouldIgnoreFile(filepath)) return 'ignore'; if (isGeneratedOrBundledFile(filepath)) return 'generated'; return 'valid'; }