diff --git a/analyzers/src/SonarAnalyzer.Common/Helpers/AccessibilityExtensions.cs b/analyzers/src/SonarAnalyzer.Common/Helpers/AccessibilityExtensions.cs index 0f43c152424..dc9d8941111 100644 --- a/analyzers/src/SonarAnalyzer.Common/Helpers/AccessibilityExtensions.cs +++ b/analyzers/src/SonarAnalyzer.Common/Helpers/AccessibilityExtensions.cs @@ -29,5 +29,9 @@ public static class AccessibilityExtensions /// public static bool IsAccessibleOutsideTheType(this Accessibility accessibility) => accessibility == Accessibility.Public || accessibility == Accessibility.Internal || accessibility == Accessibility.ProtectedOrInternal; + + private static void UnusedMethod() + { + } } } diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 90d2f81174a..f77c56b79e0 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -318,6 +318,7 @@ stages: projectVersion: '$(SONAR_PROJECT_VERSION)' extraProperties: | sonar.verbose=true + sonar.projectBaseDir="$(Build.SourcesDirectory)" sonar.cs.opencover.reportsPaths="$(CoveragePath)/*.xml" sonar.cs.vstest.reportsPaths="$(UnitTestResultsPath)/*.trx" sonar.test.exclusions="$(UnitTestExclusionsPattern)"