• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

samsmithnz / RepoGovernance / 3721712014

pending completion
3721712014

Pull #287

github

GitHub
Merge 1f2e697a5 into a799f6da1
Pull Request #287: Added sonarcloud action

130 of 202 branches covered (64.36%)

Branch coverage included in aggregate %.

395 of 543 relevant lines covered (72.74%)

6.52 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

41.94
/src/RepoGovernance.Core/Helpers/DotNetRepoScanner.cs
1
namespace RepoGovernance.Core.Helpers
2
{
3
    public class DotNetRepoScanner
4
    {        
5
        public static string? GetColorFromStatus(string? framework)
6
        {
1✔
7
            if (framework == "unknown")
1!
8
            {
×
9
                //Unknown/gray
10
                return "bg-secondary";
×
11
            }
12
            else if (framework == "deprecated")
1!
13
            {
×
14
                //Unsupported/End of life/red  
15
                return "bg-danger";
×
16
            }
17
            else if (framework?.StartsWith("EOL") == true)
1!
18
            {
×
19
                //Supported, but old/orange
20
                return "bg-warning";
×
21
            }
22
            else if (framework == "supported")
1!
23
            {
1✔
24
                //Supported/Ok/blue
25
                return "bg-primary";
1✔
26
            }
27
            else if (framework == "in preview")
×
28
            {
×
29
                //Usable, but new - light blue
30
                return "bg-info";
×
31
            }
32
            else
33
            {
×
34
                //Unknown/gray
35
                return "bg-secondary";
×
36
            }
37
        }
1✔
38
    }
39
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc