(dir string)
| 446 | } |
| 447 | |
| 448 | func findCsprojContent(dir string) (string, bool) { |
| 449 | entries, err := os.ReadDir(dir) |
| 450 | if err != nil { |
| 451 | return "", false |
| 452 | } |
| 453 | for _, e := range entries { |
| 454 | if !e.IsDir() && strings.HasSuffix(e.Name(), ".csproj") { |
| 455 | if data, fileErr := os.ReadFile(filepath.Join(dir, e.Name())); fileErr == nil { |
| 456 | return string(data), true |
| 457 | } |
| 458 | } |
| 459 | } |
| 460 | return "", false |
| 461 | } |
| 462 | |
| 463 | // mobileTFMRegex matches .NET mobile Target Framework Monikers (net*-android or net*-ios). |
| 464 | // A bare substring match on "-android" / "-ios" can produce false positives on package |
no outgoing calls
no test coverage detected