Skip to content

armgit / kaneo

Public Imported from GitHub
0

⚡ Project management that doesn't become the project. Boards, Gantt charts, and GitHub integration. Self-host it or use Kaneo Cloud.

463 B
Raw Blame
export const policy = {
  label: "slop",
  threshold: 0.99,
  minWords: 20,
  minMatches: 2,
  maxFiles: 100,
  maxFileBytes: 250_000,
  maxTotalBytes: 5_000_000,
};

export function supportedFile(file) {
  return (
    /\.(?:[cm]?js|jsx|[cm]?ts|tsx)$/.test(file) &&
    !/(^|\/)(?:node_modules|vendor|fixtures|__fixtures__|_fixtures|dist|build|generated)(\/|$)/.test(
      file,
    ) &&
    !/(?:\.d\.[cm]?ts|\.min\.js|\.gen\.[cm]?[jt]sx?)$/.test(file)
  );
}