(path: string)
| 149 | } |
| 150 | |
| 151 | function isAllowedBeforeApproval(path: string): boolean { |
| 152 | return ( |
| 153 | ALWAYS_ALLOW_PREFIXES.some((prefix) => path.startsWith(prefix)) || |
| 154 | isTest(path) |
| 155 | ); |
| 156 | } |
| 157 | |
| 158 | function isSource(path: string): boolean { |
| 159 | return SOURCE_EXTENSIONS.has(extname(path)) && !isAllowedBeforeApproval(path); |