b5e114be14
The EntityGeneration folder is regenerated by nd-codegen and must not be edited by hand, so its doc-comment findings are noise. Scope the analysis to hand-written code instead of suppressing findings one by one.
83 lines
3.3 KiB
YAML
83 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: 15
|
|
# critical: 5
|
|
# testCoverageThresholds:
|
|
# fresh: 70
|
|
# total: 50
|
|
# dependencyLicenses:
|
|
# failOnProhibited: true
|
|
# failOnUnknown: false
|