()
| 30 | } |
| 31 | |
| 32 | export function getHooksSources(): string[] { |
| 33 | const sources: string[] = [] |
| 34 | |
| 35 | const projectSettings = getSettingsForSource('projectSettings') |
| 36 | if (hasHooks(projectSettings)) { |
| 37 | sources.push(PROJECT_SETTINGS_DISPLAY_PATH) |
| 38 | } |
| 39 | |
| 40 | const localSettings = getSettingsForSource('localSettings') |
| 41 | if (hasHooks(localSettings)) { |
| 42 | sources.push(LOCAL_SETTINGS_DISPLAY_PATH) |
| 43 | } |
| 44 | |
| 45 | return sources |
| 46 | } |
| 47 | |
| 48 | function hasBashPermission(rules: PermissionRule[]): boolean { |
| 49 | return rules.some( |
no test coverage detected