Qodana 2024.1 Help

New in version 2024.1

Version 2024.1 of Qodana contains several updates:

Besides that, this version of Qodana provides new inspections listed below, along with the inspections that were removed or disabled. To learn how to enable the disabled inspections, you can visit the Include an inspection into the analysis scope section.

Qodana for JVM

Several inspections have been implemented in the Qodana for JVM linter:

Id

Description

Severity

WhileCanBeDoWhile

Java/Control flow issues/'while' can be replaced with 'do while'

WEAK WARNING

StringConcatenationArgumentToLogCall

Java/Logging/Non-constant string concatenation as argument to logging call

WARNING

UnreachableCode

Java/Probable bugs/Unreachable code

WARNING

MappingBeforeCount

Java/Verbose or redundant code constructs/Mapping call before count()

WARNING

JavaEmptyModuleInfoFile

Java/Visibility/Empty 'module-info.java' file

WARNING

LoggingSimilarMessage

JVM languages/Logging/Non-distinguishable logging calls

WEAK WARNING

SpringSecurityMethodCallsInspection

Spring/Spring Security/@PreFilter/@PreAuthorize/@PostFilter self-invocation method calls

WARNING

TomlUnresolvedReference

TOML/Unresolved reference

WARNING

HttpUrlsUsage

Security/Link with unencrypted protocol

WEAK WARNING

Here is the list of inspections that were disabled or removed from the Qodana for JVM linter:

Id

Description

Severity

Status

JUnit5AssertionsConverter

JUnit/JUnit 5 obsolete assertions

WARNING

Disabled

JUnitMixedFramework

JUnit/JUnit API usage from multiple versions in a single TestCase

WARNING

Disabled

JUnitMalformedDeclaration

JUnit/JUnit malformed declaration

ERROR

Disabled

JUnit3StyleTestMethodInJUnit4Class

JUnit/Old style JUnit test method in JUnit 4 class

WARNING

Disabled

SpringSecurityPreFilterMethodCallsInspection

Spring/Spring Security/@PreFilter self-invocation method calls

WARNING

Removed

Qodana Community for Android

Here is the list of inspections that have been implemented in the Qodana Community for Android linter:

Id

Description

Severity

WhileCanBeDoWhile

Java/Control flow issues/'while' can be replaced with 'do while'

WEAK WARNING

StringConcatenationArgumentToLogCall

Java/Logging/Non-constant string concatenation as argument to logging call

WARNING

UnreachableCode

Java/Probable bugs/Unreachable code

WARNING

MappingBeforeCount

Java/Verbose or redundant code constructs/Mapping call before count()

WARNING

JavaEmptyModuleInfoFile

Java/Visibility/Empty 'module-info.java' file

WARNING

LoggingSimilarMessage

JVM languages/Logging/Non-distinguishable logging calls

WEAK WARNING

Here is the list of inspections that were disabled in the Qodana Community for Android linter:

Id

Description

Severity

AndroidDomInspection

Android/Android Resources Validation

ERROR

AndroidElementNotAllowed

Android/Android XML element is not allowed

WARNING

XmlWrongFileType

Android/Android XML root tag validation

WARNING

NavigationFile

Android/Navigation file

ERROR

AndroidNonConstantResIdsInSwitch

Android/Non-constant resource ID in a switch statement

ERROR

AndroidRoomQuestionMarkBindParameter

Android/Room/'?' used as parameter in a Room query

ERROR

AndroidRoomSqlBooleanLiteral

Android/Room/Boolean literal used in a Room query

WARNING

AndroidUnresolvedRoomSqlReference

Android/Room/Unresolved reference in Room SQL

ERROR

R8IgnoredFlags

Android/Shrinker/Flags ignored by R8

WARNING

ShrinkerInvalidFlags

Android/Shrinker/Invalid flag in shrinker config

ERROR

ShrinkerInnerClassSeparator

Android/Shrinker/Invalid separator between class and inner class

ERROR

ShrinkerArrayType

Android/Shrinker/Invalid using of array type

ERROR

ShrinkerUnresolvedReference

Android/Shrinker/Unresolved reference in Shrinker Config file

ERROR

AndroidUnknownAttribute

Android/Unknown Android XML attribute

WARNING

AndroidUnresolvableTag

Android/Unresolvable tag

ERROR

AndroidMissingOnClickHandler

Android/onClick handler is missing in the related activity

WARNING

JUnit5AssertionsConverter

JUnit/JUnit 5 obsolete assertions

WARNING

JUnitMixedFramework

JUnit/JUnit API usage from multiple versions in a single TestCase

WARNING

JUnitMalformedDeclaration

JUnit/JUnit malformed declaration

ERROR

JUnit3StyleTestMethodInJUnit4Class

JUnit/Old style JUnit test method in JUnit 4 class

WARNING

Qodana Community for JVM

Several inspections have been implemented in the Qodana Community for JVM linter:

Id

Description

Severity

WhileCanBeDoWhile

Java/Control flow issues/'while' can be replaced with 'do while'

WEAK WARNING

StringConcatenationArgumentToLogCall

Java/Logging/Non-constant string concatenation as argument to logging call

WARNING

StaticMethodImportLombok

Java/Lombok/Using static import for lombok generated methods

WARNING

UnreachableCode

Java/Probable bugs/Unreachable code

WARNING

MappingBeforeCount

Java/Verbose or redundant code constructs/Mapping call before count()

WARNING

JavaEmptyModuleInfoFile

Java/Visibility/Empty 'module-info.java' file

WARNING

LoggingSimilarMessage

JVM languages/Logging/Non-distinguishable logging calls

WEAK WARNING

Here is the list of inspections that were disabled in the Qodana Community for JVM linter:

Id

Description

Severity

JUnit5AssertionsConverter

JUnit/JUnit 5 obsolete assertions

WARNING

JUnitMixedFramework

JUnit/JUnit API usage from multiple versions in a single TestCase

WARNING

JUnitMalformedDeclaration

JUnit/JUnit malformed declaration

ERROR

JUnit3StyleTestMethodInJUnit4Class

JUnit/Old style JUnit test method in JUnit 4 class

WARNING

Qodana for PHP

Here is the list of inspections that were implemented in the Qodana for PHP linter:

Id

Description

Severity

PhpUnitDeprecatedCallsIn11VersionInspection

PHP/PHPUnit/Method is deprecated in PHPUnit 11

WARNING

PhpUnitAnnotationToAttributeInspection

PHP/PHPUnit/PHPUnit annotation is deprecated in PHPUnit 11 and can be replaced with attribute

WARNING

SymfonyLibraryIsNotDownloaded

PHP/Symfony/Missed locally stored library for HTTP link

WEAK WARNING

SymfonyImportMapModuleIsNotInstalled

PHP/Symfony/Module is not installed in importmap

WEAK WARNING

PhpDqlBuilderUnknownModelInspection

PHP/Undefined symbols/Cannot infer DQL model class to enable completion

WEAK WARNING

HttpUrlsUsage

Security/Link with unencrypted protocol

WEAK WARNING

Qodana for JS

Here is the inspection that was implemented in the Qodana for JS linter:

Id

Description

Severity

HttpUrlsUsage

Security/Link with unencrypted protocol

WEAK WARNING

Here is the inspection that was removed from the Qodana for JS linter:

Id

Description

Severity

TypeScriptValidateJSTypes

JavaScript and TypeScript/TypeScript/Type mismatch in 'any' type

WEAK WARNING

Qodana for Python

Here is the list of inspections that were implemented in the Qodana for Python linter:

Id

Description

Severity

TomlUnresolvedReference

TOML/Unresolved reference

WARNING

HttpUrlsUsage

Security/Link with unencrypted protocol

WEAK WARNING

PoetryPackageVersionsInspection

Python/Poetry package versions

WARNING

Qodana for Go

Here is the inspection that was implemented in the Qodana for Go linter:

Id

Description

Severity

HttpUrlsUsage

Security/Link with unencrypted protocol

WEAK WARNING

Qodana for .NET

Here is the list of inspections that were implemented in the Qodana for .NET linter:

Id

Description

Severity

CSharpWarnings__CS0809

C#/Compiler Warnings/Obsolete member overrides non-obsolete member

WARNING

CSharpWarnings__CS9197

C#/Compiler Warnings/Reference kind modifier of parameter doesn't match the corresponding parameter in hidden member.

WARNING

CSharpWarnings__CS9198

C#/Compiler Warnings/Reference kind modifier of parameter doesn't match the corresponding parameter in target.

WARNING

CSharpWarnings__CS8305

C#/Compiler Warnings/Type is for evaluation purposes only and is subject to change or removal in future updates.

WARNING

CSharpWarnings__CS9204

C#/Compiler Warnings/Type is for evaluation purposes only and is subject to change or removal in future updates. Suppress this diagnostic to proceed.

WARNING

NUnit.MissingCancelAfterAttribute

C#/NUnit/NUnit. Missing CancelAfter attribute on the test method declaration.

WARNING

OutParameterWithHandlesResourceDisposalAttribute

C#/Potential Code Quality Issues/Meaningless \[HandlesResourceDisposal\] annotation for an output parameter

WARNING

PossibleInvalidOperationExceptionCollectionWasModified

C#/Potential Code Quality Issues/Possible 'System.InvalidOperationException: Collection was modified'

WARNING

Odin.OdinUnknownGroupingPath

C#/Unity/Group path is not defined

WARNING

Unity.UnityObjectNullComparison

C#/Unity/Implicit check for Unity object lifetime

WEAK WARNING

Odin.OdinMemberWrongGroupingAttribute

C#/Unity/Incorrect Odin's group attribute type

WARNING

Odin.OdinMemberPresentInMultipleGroups

C#/Unity/Member is presented in multiple groups

WARNING

CppRedundantZeroInitializerInAggregateInitialization

C++/Redundancies in Code/Redundant zero initializer in aggregate initialization

WEAK WARNING

Razor.AssemblyNotResolved

Razor/Potential Code Quality Issues/Unknown Razor assembly

ERROR

Xaml.InvalidDynamicResourceType

XAML/Code Notification/XAML dynamic resource of invalid type

WEAK WARNING

HttpRequestPlaceholder

HTTP Client/'$placeholder' in HTTP Request

WARNING

HttpRequestEnvironmentAuthConfigurationValidationInspection

HTTP Client/Auth configuration validation

WARNING

HttpClientInappropriateProtocolUsageInspection

HTTP Client/Inappropriate HTTP Protocol usage

WEAK WARNING

IncorrectHttpHeaderInspection

HTTP Client/Incorrect HTTP header

WARNING

HttpRequestRequestSeparatorXmlBodyInspection

HTTP Client/Missing request separator in HTML/XML body

WEAK WARNING

HttpRequestRequestSeparatorJsonBodyInspection

HTTP Client/Missing request separator in JSON body

WEAK WARNING

HttpRequestRequestSeparatorYamlBodyInspection

HTTP Client/Missing request separator in YAML body

WEAK WARNING

HttpRequestContentLengthIsIgnored

HTTP Client/Redundant 'Content-Length'

WARNING

HttpClientUnresolvedAuthId

HTTP Client/Unresolved Auth identifier

ERROR

HttpClientUnresolvedVariable

HTTP Client/Unresolved environment variable

WARNING

HttpRequestWhitespaceInsideRequestTargetPath

HTTP Client/Whitespace in URL in request

WEAK WARNING

LoggingSimilarMessage

JVM languages/Logging/Non-distinguishable logging calls

WEAK WARNING

GrazieInspection

Proofreading/Grammar

GRAMMAR_ERROR

LanguageDetectionInspection

Proofreading/Natural language detection

WARNING

XmlUnresolvedReference

XML/Unresolved references

ERROR

HttpUrlsUsage

Security/Link with unencrypted protocol

WEAK WARNING

Here is the list of inspections that were disabled or removed from the Qodana for .NET linter:

Id

Description

Severity

Status

NUnit.TestCaseSourceCannotBeResolved

C#/NUnit/NUnit. Cannot resolve symbol in TestCaseSource or ValueSource attribute.

WARNING

Removed

CommentTypo

C#/Spelling Issues/Typo in comment

WEAK WARNING

Removed

IdentifierTypo

C#/Spelling Issues/Typo in identifier

WEAK WARNING

Removed

StringLiteralTypo

C#/Spelling Issues/Typo in string literal

WEAK WARNING

Removed

Unity.NoNullCoalescing

C#/Unity/Possible unintended bypass of lifetime check of underlying Unity engine object (null coalescing on a type deriving from 'UnityEngine.Object' bypasses the lifetime check on the underlying Unity engine object)

INFORMATION

Disabled

Unity.NoNullPropagation

C#/Unity/Possible unintended bypass of lifetime check of underlying Unity engine object (null coalescing on a type deriving from 'UnityEngine.Object' bypasses the lifetime check on the underlying Unity engine object)

INFORMATION

Disabled

Unity.InefficientPropertyAccess

C#/Unity/Repeated access of property on built in component is inefficient

INFORMATION

Disabled

CppClangTidyClangDiagnosticMicrosoftMutableReference

C++/Clang Diagnostics/microsoft-mutable-reference clang diagnostic

INFORMATION

Disabled

CppClangTidyModernizeTypeTraits

C++/Clang-Tidy Checks/modernize-type-traits clang-tidy check

INFORMATION

Disabled

MarkupAttributeTypo

XML/Spelling Issues/Typo in markup attribute value

WEAK WARNING

Removed

MarkupTextTypo

XML/Spelling Issues/Typo in markup text

WEAK WARNING

Removed

Last modified: 11 April 2024