41ac93733e
- Guard logger calls with IsEnabled so value-type arguments are not boxed when the level is disabled - Make helper members static, narrow write-only properties to init or private get, and delete members no call site reaches - Flatten nested conditionals and convert if/else chains into switch and ternary form - Drop the unused *MonitorInit interfaces; NetDaemon instantiates the concrete app classes - Drop the unused IConfiguration parameter from AddNordPool and AddPowerMonitor, and the unused IEntityManager.CreateEntitiesAsync - Remove the ignored parameters of the boiler run-time tracker stub - Pin the NordPool DTO price mapping explicitly so the getter use is visible to static analysis - Fail Qodana on any finding and record the registration changes in AGENTS.md
85 lines
3.3 KiB
YAML
85 lines
3.3 KiB
YAML
#-------------------------------------------------------------------------------#
|
|
# 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:
|
|
# NetDaemon codegen output. Regenerated by `nd-codegen`; never hand-edited.
|
|
- name: All
|
|
paths:
|
|
- HomeAssistant.Entities/EntityGeneration
|
|
#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: 0
|
|
# severityThresholds:
|
|
# any: 15
|
|
# critical: 5
|
|
# testCoverageThresholds:
|
|
# fresh: 70
|
|
# total: 50
|
|
# dependencyLicenses:
|
|
# failOnProhibited: true
|
|
# failOnUnknown: false
|