scai
Version:
> AI-powered CLI tool for commit messages **and** pull request reviews — using local models.
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';
}