{ "$schema": "http://json.schemastore.org/sarif-1.0.0", "version": "1.0.0", "runs": [ { "tool": { "name": "Microsoft (R) Visual C# Compiler", "version": "5.3.0.0", "fileVersion": "5.3.0-2.26153.122 (4d3023de605a78ba3e59e50c657eed70f125c68a)", "semanticVersion": "5.3.0", "language": "en-RS" }, "results": [ { "ruleId": "S2325", "level": "warning", "message": "Make 'Greet' a static method.", "locations": [ { "resultFile": { "uri": "file:///Users/bobanlapcevic/Desktop/theInterfacePro/Fixtures/ExampleFixture.cs", "region": { "startLine": 5, "startColumn": 19, "endLine": 5, "endColumn": 24 } } } ], "properties": { "warningLevel": 1 } }, { "ruleId": "CA1822", "level": "note", "message": "Member 'Greet' does not access instance data and can be marked as static", "locations": [ { "resultFile": { "uri": "file:///Users/bobanlapcevic/Desktop/theInterfacePro/Fixtures/ExampleFixture.cs", "region": { "startLine": 5, "startColumn": 19, "endLine": 5, "endColumn": 24 } } } ], "properties": { "warningLevel": 1 } } ], "rules": { "CA1822": { "id": "CA1822", "shortDescription": "Mark members as static", "fullDescription": "Members that do not access instance data or call instance methods can be marked as static. After you mark the methods as static, the compiler will emit nonvirtual call sites to these members. This can give you a measurable performance gain for performance-sensitive code.", "defaultLevel": "note", "helpUri": "https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1822", "properties": { "category": "Performance", "isEnabledByDefault": true, "tags": [ "PortedFromFxCop", "Telemetry", "EnabledRuleInAggressiveMode" ] } }, "S2325": { "id": "S2325", "shortDescription": "Methods and properties that don't access instance data should be static", "fullDescription": "Methods and properties that don’t access instance data should be marked as static for the following reasons:", "defaultLevel": "warning", "properties": { "category": "Minor Code Smell", "isEnabledByDefault": true, "tags": [ "C#", "MainSourceScope", "TestSourceScope", "SonarWay" ] } } } } ] }