Download mods/diff/hooks/classify/is-noise-file.ts from SaylorTwift/claude-code: direct link, hf CLI and curl.
- Browser
- Download file 423 Bytes
-
https://huggingface.co/SaylorTwift/claude-code/resolve/main/mods/diff/hooks/classify/is-noise-file.ts
- Command line
-
hf download hf://SaylorTwift/claude-code/mods/diff/hooks/classify/is-noise-file.ts
-
curl -L -o is-noise-file.ts https://huggingface.co/SaylorTwift/claude-code/resolve/main/mods/diff/hooks/classify/is-noise-file.ts
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) | |