scai
Version:
> **AI-powered CLI for local code analysis, commit message suggestions, and natural-language queries.** > **100% local • No token cost • Private by design • GDPR-friendly** — made in Denmark/EU with ❤️.
11 lines (10 loc) • 352 B
JavaScript
// 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';
}