(baseDir string)
| 224 | } |
| 225 | |
| 226 | func findGitHubFolder(baseDir string) string { |
| 227 | githubFolder := baseDir |
| 228 | for !strings.HasSuffix(githubFolder, ".github") { |
| 229 | parent := filepath.Dir(githubFolder) |
| 230 | if parent == githubFolder || parent == "." || parent == "/" { |
| 231 | githubFolder = baseDir |
| 232 | break |
| 233 | } |
| 234 | githubFolder = parent |
| 235 | } |
| 236 | return githubFolder |
| 237 | } |
| 238 | |
| 239 | func computeIncludeResolveAndSecurityBases(filePath, baseDir string) (string, string, string) { |
| 240 | githubFolder := findGitHubFolder(baseDir) |
no outgoing calls
no test coverage detected