claude-code / mods /diff /hooks /classify /is-noise-file.ts
SaylorTwift's picture
SaylorTwift HF Staff
Add files using upload-large-folder tool
bdbd3b2 verified
Raw History Blame Contribute Delete
423 Bytes
import { isGeneratedFile } from './is-generated-file'
import { isTestFile } from './is-test-file'
/**
* Whether a changed file is hidden behind the pane's tests-and-generated
* line until the person asks to see it.
*
* @param path the file's path from the repository root
* @returns whether it is a test or a generated file
*/
export const isNoiseFile = (path: string) =>
isTestFile(path) || isGeneratedFile(path)