From d58e0b588f0ed847591c63c017d9c1201a0188fc Mon Sep 17 00:00:00 2001 From: hybloid <48032702+hybloid@users.noreply.github.com> Date: Thu, 14 Dec 2023 10:10:29 +0100 Subject: [PATCH] Turn off RoslynAnalyzers in Qodana WF (#2504) * Create profile.yaml * Update qodana.yaml * Update profile.yaml * Update code_quality.yml * Update code_quality.yml --- profile.yaml | 12 ++++++++++++ qodana.yaml | 16 +++++++++++++++- 2 files changed, 27 insertions(+), 1 deletion(-) create mode 100644 profile.yaml diff --git a/profile.yaml b/profile.yaml new file mode 100644 index 0000000000..1e0a0d7d1d --- /dev/null +++ b/profile.yaml @@ -0,0 +1,12 @@ +name: "Custom profile" + +baseProfile: qodana.starter + +groups: # List of configured groups + - groupId: InspectionsToExclude + groups: + - "category:C#/Roslyn Analyzers" + +inspections: # Group invocation + - group: InspectionsToExclude + enabled: false # Disable the InspectionsToExclude group diff --git a/qodana.yaml b/qodana.yaml index 5bde305e79..c9def8eb58 100644 --- a/qodana.yaml +++ b/qodana.yaml @@ -3,12 +3,19 @@ version: "1.0" linter: jetbrains/qodana-dotnet:latest failThreshold: 0 +profile: + path: profile.yaml + dotnet: solution: FluentAssertions.sln exclude: - name: ConvertIfStatementToReturnStatement - name: ConvertIfStatementToConditionalTernaryExpression + - name: InvertIf + - name: SimilarAnonymousTypeNearby + paths: + - Tests - name: All paths: - Build @@ -16,4 +23,11 @@ exclude: - Tests/AssemblyB - Tests/Benchmarks - Tests/UWP.Specs - \ No newline at end of file + - Src/FluentAssertions/Polyfill + - name: UnusedMember.Global + - name: ArrangeTrailingCommaInMultilineLists + - name: ArrangeTrailingCommaInSinglelineLists + - name: ConvertToLambdaExpression + - name: SwitchExpressionHandlesSomeKnownEnumValuesWithExceptionInDefault + - name: UnusedMemberInSuper.Global + \ No newline at end of file