Skip to content

Commit 831719b

Browse files
committed
wip
1 parent 4b4f496 commit 831719b

File tree

2 files changed

+94
-71
lines changed

2 files changed

+94
-71
lines changed

qodana.yaml

Lines changed: 92 additions & 71 deletions
Original file line numberDiff line numberDiff line change
@@ -7,86 +7,107 @@ version: "1.0"
77
ide: QDNET
88
#Specify inspection profile for code analysis
99
profile:
10-
name: qodana.starter
10+
name: qodana.starter
1111
include:
12-
- name: ConvertIfStatementToReturnStatement
13-
- name: ConvertIfStatementToConditionalTernaryExpression
14-
- name: AutoPropertyCanBeMadeGetOnly.Global
15-
- name: CanReplaceCastWithLambdaReturnType
16-
- name: ChangeFieldTypeToSystemThreadingLock
17-
- name: ConvertIfStatementToSwitchStatement
18-
- name: ConvertToConstant.Local
19-
- name: DuplicatedSequentialIfBodies
20-
- name: InlineTemporaryVariable
21-
- name: InvertIf
22-
- name: UseVerbatimString
23-
- name: MemberCanBePrivate.Global
24-
- name: MemberCanBeProtected.Global
25-
- name: MergeIntoPattern
26-
- name: UnusedMethodReturnValue.Global
27-
- name: EditorConfigNoMatchingFiles
28-
- name: PreferConcreteValueOverDefault
29-
- name: PropertyCanBeMadeInitOnly.Global
30-
- name: MoveLocalFunctionAfterJumpStatement
31-
- name: RedundantExplicitParamsArrayCreation
32-
- name: RedundantOverload.Global
33-
- name: RedundantStringInterpolation
34-
- name: RedundantVerbatimStringPrefix
35-
- name: ReplaceSubstringWithRangeIndexer
36-
- name: RCS1001
37-
- name: RCS1003
38-
- name: RCS1123
39-
- name: SYSLIB1045
40-
- name: CA1826
41-
- name: RCS1256
42-
- name: RCS1118
43-
- name: RCS1077
44-
- name: RCS1205
45-
- name: RCS1214
46-
- name: RCS1249
47-
- name: RCS1192
48-
- name: SYSLIB1054
49-
- name: CA1512
50-
- name: CA1866
51-
- name: CA1859
52-
- name: RCS1246
53-
- name: CA1829
54-
- name: RCS1266
55-
- name: RCS1267
56-
- name: RCS1227
57-
- name: SwitchExpressionHandlesSomeKnownEnumValuesWithExceptionInDefault
58-
- name: SwitchStatementHandlesSomeKnownEnumValuesWithDefault
59-
- name: RedundantAlwaysMatchSubpattern
60-
- name: UnusedType.Global
61-
- name: UnusedMemberInSuper.Global
62-
- name: UnusedMember.Local
63-
- name: EditorConfigKeyCorrectness
64-
- name: UseCollectionCountProperty
65-
- name: UseDiscardAssignment
66-
- name: ArrangeNamespaceBody
67-
- name: SuggestDiscardDeclarationVarStyle
68-
- name: ArrangeTrailingCommaInMultilineLists
69-
- name: ArrangeObjectCreationWhenTypeNotEvident
70-
- name: UseRawString
71-
- name: VirtualMemberNeverOverridden.Global
72-
- name: ArrangeVarKeywordsInDeconstructingDeclaration
73-
- name: SuggestVarOrType_BuiltInTypes
12+
- name: ConvertIfStatementToReturnStatement
13+
- name: ConvertIfStatementToConditionalTernaryExpression
14+
- name: AutoPropertyCanBeMadeGetOnly.Global
15+
- name: CanReplaceCastWithLambdaReturnType
16+
- name: ChangeFieldTypeToSystemThreadingLock
17+
- name: ConvertIfStatementToSwitchStatement
18+
- name: ConvertToConstant.Local
19+
- name: DuplicatedSequentialIfBodies
20+
- name: InlineTemporaryVariable
21+
- name: InvertIf
22+
- name: UseVerbatimString
23+
- name: MemberCanBePrivate.Global
24+
- name: MemberCanBeProtected.Global
25+
- name: MergeIntoPattern
26+
- name: UnusedMethodReturnValue.Global
27+
- name: EditorConfigNoMatchingFiles
28+
- name: PreferConcreteValueOverDefault
29+
- name: PropertyCanBeMadeInitOnly.Global
30+
- name: MoveLocalFunctionAfterJumpStatement
31+
- name: RedundantExplicitParamsArrayCreation
32+
- name: RedundantOverload.Global
33+
- name: RedundantStringInterpolation
34+
- name: RedundantVerbatimStringPrefix
35+
- name: ReplaceSubstringWithRangeIndexer
36+
- name: RCS1001
37+
- name: RCS1003
38+
- name: RCS1123
39+
- name: SYSLIB1045
40+
- name: CA1826
41+
- name: RCS1256
42+
- name: RCS1118
43+
- name: RCS1077
44+
- name: RCS1205
45+
- name: RCS1214
46+
- name: RCS1249
47+
- name: RCS1192
48+
- name: SYSLIB1054
49+
- name: CA1512
50+
- name: CA1866
51+
- name: CA1859
52+
- name: RCS1246
53+
- name: CA1829
54+
- name: RCS1266
55+
- name: RCS1267
56+
- name: RCS1227
57+
- name: SwitchExpressionHandlesSomeKnownEnumValuesWithExceptionInDefault
58+
- name: SwitchStatementHandlesSomeKnownEnumValuesWithDefault
59+
- name: RedundantAlwaysMatchSubpattern
60+
- name: UnusedType.Global
61+
- name: UnusedMemberInSuper.Global
62+
- name: UnusedMember.Local
63+
- name: EditorConfigKeyCorrectness
64+
- name: UseCollectionCountProperty
65+
- name: UseDiscardAssignment
66+
- name: ArrangeNamespaceBody
67+
- name: SuggestDiscardDeclarationVarStyle
68+
- name: ArrangeTrailingCommaInMultilineLists
69+
- name: ArrangeObjectCreationWhenTypeNotEvident
70+
- name: UseRawString
71+
- name: VirtualMemberNeverOverridden.Global
72+
- name: ArrangeVarKeywordsInDeconstructingDeclaration
73+
- name: SuggestVarOrType_BuiltInTypes
7474
#Enable inspections
7575
#include:
7676
# - name: <SomeEnabledInspectionId>
7777
#Disable inspections
7878
exclude:
79-
- name: LoopCanBeConvertedToQuery
80-
- name: ForeachCanBePartlyConvertedToQueryUsingAnotherGetEnumerator
81-
- name: ConvertIfStatementToConditionalTernaryExpression
82-
paths:
83-
- GitVersion.Core.Tests/IntegrationTests/AlignGitFlowWithMainlineVersionStrategy.cs
84-
- GitVersion.Core.Tests/IntegrationTests/AlignGitHubFlowWithMainlineVersionStrategy.cs
79+
- name: LoopCanBeConvertedToQuery
80+
- name: ForeachCanBePartlyConvertedToQueryUsingAnotherGetEnumerator
81+
- name: ConvertIfStatementToConditionalTernaryExpression
82+
paths:
83+
- GitVersion.Core.Tests/IntegrationTests/AlignGitFlowWithMainlineVersionStrategy.cs
84+
- GitVersion.Core.Tests/IntegrationTests/AlignGitHubFlowWithMainlineVersionStrategy.cs
85+
- name: MemberCanBeProtected.Global
86+
paths:
87+
- GitVersion.Configuration/Builders/BranchConfigurationBuilder.cs
88+
- GitVersion.Configuration/Builders/ConfigurationBuilderBase.cs
89+
- GitVersion.Core.Tests/Helpers/TestBase.cs
90+
- name: MemberCanBePrivate.Global
91+
paths:
92+
- GitVersion.Configuration/Builders/ConfigurationBuilderBase.cs
93+
- GitVersion.Configuration/Builders/IgnoreConfigurationBuilder.cs
94+
- GitVersion.Core/Helpers/FileSystemHelper.cs
95+
- GitVersion.Core/SemVer/SemanticVersionPreReleaseTag.cs
96+
- GitVersion.Core/SemVer/SemanticVersion.cs
97+
- GitVersion.Core/VersionCalculation/VersionCalculators/VersionCalculatorBase.cs
98+
- GitVersion.Core/Extensions/ConfigurationExtensions.cs
99+
- GitVersion.Core.Tests/Extensions/GitRepositoryTestingExtensions.cs
100+
- GitVersion.LibGit2Sharp/Git/Remote.cs
101+
- name: AutoPropertyCanBeMadeGetOnly.Global
102+
paths:
103+
- GitVersion.Core/SemVer/SemanticVersionPreReleaseTag.cs
104+
- GitVersion.Core/SemVer/SemanticVersionBuildMetaData.cs
105+
- GitVersion.MsBuild/Tasks/UpdateAssemblyInfo.cs
85106
#Execute shell command before Qodana execution (Applied in CI/CD pipeline)
86107
bootstrap: dotnet build src/GitVersion.slnx
87108
dotnet:
88-
frameworks: net8.0;net9.0
89-
solution: src/GitVersion.slnx
109+
frameworks: net8.0;net9.0
110+
solution: src/GitVersion.slnx
90111
#Install IDE plugins before Qodana execution (Applied in CI/CD pipeline)
91112
#plugins:
92113
# - id: <plugin.id> #(plugin id can be found at https://plugins.jetbrains.com)

src/GitVersion.Testing/Helpers/ProcessHelper.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
using System.ComponentModel;
2+
using System.Diagnostics.CodeAnalysis;
23
using System.Runtime.InteropServices;
34

45
namespace GitVersion.Testing;
@@ -165,6 +166,7 @@ private enum NativeErrorCode
165166
}
166167

167168
[Flags]
169+
[SuppressMessage("ReSharper", "UnusedMember.Local")]
168170
private enum ErrorModes
169171
{
170172
Default = 0x0,

0 commit comments

Comments
 (0)