Add shared test data builders and Qodana configuration
- Extract per-monitor *TestData helper classes and rework tests to use them - Add boiler run-time tracker abstraction (implementation pending) - Drop unused NordPool init/update-result types and stale PLAN.md - Add qodana.yaml with the inspection set to keep the analysis focused
This commit is contained in:
+81
@@ -0,0 +1,81 @@
|
||||
#-------------------------------------------------------------------------------#
|
||||
# Qodana analysis is configured by qodana.yaml file #
|
||||
# https://www.jetbrains.com/help/qodana/qodana-yaml.html #
|
||||
#-------------------------------------------------------------------------------#
|
||||
#################################################################################
|
||||
# WARNING: Do not store sensitive information in this file, #
|
||||
# as its contents will be included in the Qodana report. #
|
||||
#################################################################################
|
||||
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.Global
|
||||
- name: ConvertIfStatementToSwitchStatement
|
||||
- name: ConvertConstructorToMemberInitializers
|
||||
- name: ConvertToPrimaryConstructor
|
||||
- name: ConvertToExtensionBlock
|
||||
- name: ConvertClosureToMethodGroup
|
||||
- name: ConvertToConstant.Global
|
||||
- name: ConvertToConstant.Local
|
||||
- name: ConvertToAutoPropertyWithPrivateSetter
|
||||
- name: DuplicatedSequentialIfBodies
|
||||
- name: InlineTemporaryVariable
|
||||
- name: InvertIf
|
||||
- name: LoopCanBeConvertedToQuery
|
||||
- name: MemberCanBePrivate.Global
|
||||
- name: MemberCanBeMadeStatic.Global
|
||||
- name: MemberCanBeMadeStatic.Local
|
||||
- name: MergeIntoPattern
|
||||
- name: UnusedMethodReturnValue.Global
|
||||
- name: PreferExplicitlyProvidedTupleComponentName
|
||||
- name: PropertyCanBeMadeInitOnly.Global
|
||||
- name: MoveLocalFunctionAfterJumpStatement
|
||||
- name: RedundantExplicitParamsArrayCreation
|
||||
- name: ArrangeRedundantParentheses
|
||||
- name: CA1861
|
||||
- name: CA1873
|
||||
- name: xUnit1045
|
||||
- name: CA1822
|
||||
- name: xUnit1042
|
||||
- name: CA1859
|
||||
- name: SwitchStatementHandlesSomeKnownEnumValuesWithDefault
|
||||
- name: UnusedMemberInSuper.Global
|
||||
- name: UnusedMember.Global
|
||||
- name: UnusedParameter.Global
|
||||
- name: UseCollectionExpression
|
||||
- name: SuggestVarOrType_SimpleTypes
|
||||
|
||||
#Enable inspections
|
||||
#include:
|
||||
# - name: <SomeEnabledInspectionId>
|
||||
#Disable inspections
|
||||
#exclude:
|
||||
# - name: <SomeDisabledInspectionId>
|
||||
# paths:
|
||||
# - <path/where/not/run/inspection>
|
||||
#Execute shell command before Qodana execution (Applied in CI/CD pipeline)
|
||||
#bootstrap: sh ./prepare-qodana.sh
|
||||
#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)
|
||||
# Quality gate. Will fail the CI/CD pipeline if any condition is not met
|
||||
# severityThresholds - configures maximum thresholds for different problem severities
|
||||
# testCoverageThresholds - configures minimum code coverage on a whole project and newly added code
|
||||
# dependencyLicenses - fails the run on prohibited or unknown dependency licenses
|
||||
# Code Coverage is available in Ultimate and Ultimate Plus plans
|
||||
#failureConditions:
|
||||
# severityThresholds:
|
||||
# any: 15
|
||||
# critical: 5
|
||||
# testCoverageThresholds:
|
||||
# fresh: 70
|
||||
# total: 50
|
||||
# dependencyLicenses:
|
||||
# failOnProhibited: true
|
||||
# failOnUnknown: false
|
||||
Reference in New Issue
Block a user