-
Notifications
You must be signed in to change notification settings - Fork 651
/
Copy pathqodana.yaml
121 lines (118 loc) · 4.64 KB
/
qodana.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
#-------------------------------------------------------------------------------#
# Qodana analysis is configured by qodana.yaml file #
# https://www.jetbrains.com/help/qodana/qodana-yaml.html #
#-------------------------------------------------------------------------------#
version: "1.0"
#Specify IDE code to run analysis without container (Applied in CI/CD pipeline)
ide: QDNET
#Specify inspection profile for code analysis
profile:
name: qodana.starter
include:
- name: ConvertIfStatementToReturnStatement
- name: ConvertIfStatementToConditionalTernaryExpression
- name: AutoPropertyCanBeMadeGetOnly
- name: CanReplaceCastWithLambdaReturnType
- name: ChangeFieldTypeToSystemThreadingLock
- name: ConvertIfStatementToSwitchStatement
- name: ConvertToConstant.Local
- name: DuplicatedSequentialIfBodies
- name: InlineTemporaryVariable
- name: InvertIf
- name: UseVerbatimString
- name: MemberCanBePrivate
- name: MemberCanBeProtected
- name: MergeIntoPattern
- name: UnusedMethodReturnValue.Global
- name: EditorConfigNoMatchingFiles
- name: PreferConcreteValueOverDefault
- name: PropertyCanBeMadeInitOnly.Global
- name: MoveLocalFunctionAfterJumpStatement
- name: RedundantExplicitParamsArrayCreation
- name: RedundantOverload.Global
- name: RedundantStringInterpolation
- name: RedundantVerbatimStringPrefix
- name: ReplaceSubstringWithRangeIndexer
- name: RCS1001
- name: RCS1003
- name: RCS1123
- name: SYSLIB1045
- name: CA1826
- name: RCS1256
- name: RCS1118
- name: RCS1077
- name: RCS1205
- name: RCS1214
- name: RCS1249
- name: RCS1192
- name: SYSLIB1054
- name: CA1512
- name: CA1866
- name: CA1859
- name: RCS1246
- name: CA1829
- name: RCS1266
- name: RCS1267
- name: RCS1227
- name: SwitchExpressionHandlesSomeKnownEnumValuesWithExceptionInDefault
- name: SwitchStatementHandlesSomeKnownEnumValuesWithDefault
- name: RedundantAlwaysMatchSubpattern
- name: UnusedType.Global
- name: UnusedMemberInSuper.Global
- name: UnusedMember.Local
- name: EditorConfigKeyCorrectness
- name: UseCollectionCountProperty
- name: UseDiscardAssignment
- name: ArrangeNamespaceBody
- name: SuggestDiscardDeclarationVarStyle
- name: ArrangeTrailingCommaInMultilineLists
- name: ArrangeObjectCreationWhenTypeNotEvident
- name: UseRawString
- name: VirtualMemberNeverOverridden.Global
- name: ArrangeVarKeywordsInDeconstructingDeclaration
- name: SuggestVarOrType_BuiltInTypes
#Enable inspections
#include:
# - name: <SomeEnabledInspectionId>
#Disable inspections
exclude:
- name: LoopCanBeConvertedToQuery
- name: ForeachCanBePartlyConvertedToQueryUsingAnotherGetEnumerator
- name: ConvertIfStatementToConditionalTernaryExpression
paths:
- GitVersion.Core.Tests/IntegrationTests/AlignGitFlowWithMainlineVersionStrategy.cs
- GitVersion.Core.Tests/IntegrationTests/AlignGitHubFlowWithMainlineVersionStrategy.cs
- name: MemberCanBeProtected
paths:
- GitVersion.Configuration/Builders/BranchConfigurationBuilder.cs
- GitVersion.Configuration/Builders/ConfigurationBuilderBase.cs
- GitVersion.Core.Tests/Helpers/TestBase.cs
- name: MemberCanBePrivate
paths:
- GitVersion.Configuration/Builders/ConfigurationBuilderBase.cs
- GitVersion.Configuration/Builders/IgnoreConfigurationBuilder.cs
- GitVersion.Core/Helpers/FileSystemHelper.cs
- GitVersion.Core/SemVer/SemanticVersionPreReleaseTag.cs
- GitVersion.Core/SemVer/SemanticVersion.cs
- GitVersion.Core/VersionCalculation/VersionCalculators/VersionCalculatorBase.cs
- GitVersion.Core/Extensions/ConfigurationExtensions.cs
- GitVersion.Core.Tests/Extensions/GitRepositoryTestingExtensions.cs
- GitVersion.LibGit2Sharp/Git/Remote.cs
- name: AutoPropertyCanBeMadeGetOnly
paths:
- GitVersion.Core/SemVer/SemanticVersionPreReleaseTag.cs
- GitVersion.Core/SemVer/SemanticVersionBuildMetaData.cs
- GitVersion.MsBuild/Tasks/UpdateAssemblyInfo.cs
- name: UnusedType
paths:
- GitVersion.Core/VersionCalculation/VersionSearchStrategies/TaggedCommitVersionStrategy.cs
- GitVersion.Core/VersionCalculation/VersionSearchStrategies/TrackReleaseBranchesVersionStrategy.cs
- GitVersion.Configuration/Builders/IgnoreConfigurationBuilder.cs
#Execute shell command before Qodana execution (Applied in CI/CD pipeline)
bootstrap: dotnet build src/GitVersion.slnx
dotnet:
frameworks: net8.0;net9.0
solution: src/GitVersion.slnx
#Install IDE plugins before Qodana execution (Applied in CI/CD pipeline)
#plugins:
# - id: <plugin.id> #(plugin id can be found at https://plugins.jetbrains.com)