Skip to content

Commit

Permalink
qodana: added extra inspections manually
Browse files Browse the repository at this point in the history
  • Loading branch information
AlxTray committed Sep 18, 2024
1 parent 4fd6733 commit 78730f6
Showing 1 changed file with 339 additions and 1 deletion.
340 changes: 339 additions & 1 deletion qodana.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,342 @@ linter: jetbrains/qodana-jvm-community:2024.1
profile:
name: qodana.recommended
include:
- name: All
- name: EditorConfigDeprecatedDescriptor
- name: EditorConfigCharClassLetterRedundancy
- name: EditorConfigPatternRedundancy
- name: EditorConfigHeaderUniqueness
- name: EditorConfigEmptyHeader
- name: EditorConfigEmptySection
- name: EditorConfigRootDeclarationUniqueness
- name: EditorConfigEncoding
- name: EditorConfigVerifyByCore
- name: EditorConfigValueCorrectness
- name: EditorConfigReferenceCorrectness
- name: EditorConfigNoMatchingFiles
- name: EditorConfigValueUniqueness
- name: EditorConfigPartialOverride
- name: EditorConfigShadowedOption
- name: EditorConfigShadowingOption
- name: EditorConfigOptionRedundancy
- name: EditorConfigWildcardRedundancy
- name: EditorConfigMissingRequiredDeclaration
- name: EditorConfigSpaceInHeader
- name: EditorConfigNumerousWildcards
- name: EditorConfigUnexpectedComma
- name: EditorConfigPairAcceptability
- name: EditorConfigRootDeclarationCorrectness
- name: EditorConfigListAcceptability
- name: EditorConfigKeyCorrectness
- name: EditorConfigPatternEnumerationRedundancy
- name: EditorConfigCharClassRedundancy
- name: EditorConfigUnusedDeclaration
- name: EmptyDirectory
- name: InconsistentLineSeparators
- name: IncorrectFormatting
- name: QodanaJavaSanity
- name: LongLine
- name: ProblematicWhitespace
- name: ReassignedToPlainText
- name: RedundantSuppression
- name: TodoComment
- name: InstanceofThis
- name: PublicMethodNotExposedInInterface
- name: BooleanParameter
- name: InstanceofChain
- name: ClassReferencesSubclass
- name: DeclareCollectionAsInterface
- name: FeatureEnvy
- name: MagicNumber
- name: OverlyStrongTypeCast
- name: MethodOnlyUsedFromInnerClass
- name: StaticMethodOnlyUsedInOneClass
- name: TypeMayBeWeakened
- name: UseOfConcreteClass
- name: AssignmentToNull
- name: ReplaceAssignmentWithOperatorAssignment
- name: AssignmentToForLoopParameter
- name: AssignmentToLambdaParameter
- name: AssignmentToMethodParameter
- name: AssignmentToStaticFieldFromInstanceMethod
- name: AssignmentToSuperclassField
- name: NestedAssignment
- name: IncrementDecrementUsedAsExpression
- name: AnonymousClassMethodCount
- name: ClassInheritanceDepth
- name: ConstructorCount
- name: FieldCount
- name: MethodCount
- name: ClassNestingDepth
- name: AnonymousClassComplexity
- name: ClassComplexity
- name: ClassCoupling
- name: PublicConstructor
- name: StaticNonFinalField
- name: ClassMayBeInterface
- name: AnonymousInnerClass
- name: FinalClass
- name: ListenerMayUseAdapter
- name: ClassNameDiffersFromFileName
- name: ClassWithOnlyPrivateConstructors
- name: ConstantDeclaredInAbstractClass
- name: ConstantDeclaredInInterface
- name: EmptyClass
- name: InnerClassOnInterface
- name: InterfaceMayBeAnnotatedFunctional
- name: LimitedScopeInnerClass
- name: MarkerInterface
- name: FinalMethod
- name: MethodReturnAlwaysConstant
- name: MultipleTopLevelClassesInFile
- name: NoopMethodInAbstractClass
- name: ThreadDumpStack
- name: SystemOutErr
- name: SimplifiableIfStatement
- name: AssertMessageNotString
- name: EqualsCalledOnEnumConstant
- name: ObjectsEqualsCanBeSimplified
- name: OptionalToIf
- name: OptionalContainsCollection
- name: ReturnSeparatedFromComputation
- name: TryStatementWithMultipleResources
- name: ArrayCanBeReplacedWithEnumValues
- name: ArrayCreationWithoutNewKeyword
- name: JoinDeclarationAndAssignmentJava
- name: BlockMarkerComments
- name: CallToStringConcatCanBeReplacedByOperator
- name: BoundedWildcard
- name: ChainedEquality
- name: ChainedMethodCall
- name: SingleStatementInBlock
- name: ConditionalCanBeOptional
- name: ConfusingOctalEscape
- name: ConstantExpression
- name: ConstantOnWrongSideOfComparison
- name: ControlFlowStatementWithoutBraces
- name: DiamondCanBeReplacedWithExplicitTypeArguments
- name: MoveFieldAssignmentToInitializer
- name: SwitchLabeledRuleCanBeCodeBlock
- name: LambdaBodyCanBeCodeBlock
- name: LambdaParameterTypeCanBeSpecified
- name: LocalCanBeFinal
- name: MethodRefCanBeReplacedWithLambda
- name: MissortedModifiers
- name: MultiCatchCanBeSplit
- name: UnclearBinaryExpression
- name: MultipleVariablesInDeclaration
- name: NestedMethodCall
- name: SingleElementAnnotation
- name: ReassignedVariable
- name: RecordCanBeClass
- name: UnnecessaryConstantArrayCreationExpression
- name: RedundantFieldInitialization
- name: UnnecessaryConstructor
- name: ReturnThis
- name: FillPermitsList
- name: SimplifiableAnnotation
- name: LiteralAsArgToStringEquals
- name: UnnecessarilyQualifiedInnerClassAccess
- name: UnnecessarilyQualifiedStaticUsage
- name: UnnecessarilyQualifiedStaticallyImportedElement
- name: UnnecessaryFinalOnLocalVariableOrParameter
- name: SimplifiableEqualsExpression
- name: UnnecessarySuperQualifier
- name: UnnecessaryThis
- name: UnnecessarySuperConstructor
- name: UnnecessaryBlockStatement
- name: UnnecessaryFullyQualifiedName
- name: UnnecessaryParentheses
- name: UnnecessaryQualifierForThis
- name: UnqualifiedInnerClassAccess
- name: UnqualifiedStaticUsage
- name: PublicConstructorInNonPublicClass
- name: AmbiguousFieldAccess
- name: AnonymousClassVariableHidesContainingMethodVariable
- name: AmbiguousMethodCall
- name: InnerClassVariableHidesOuterClassVariable
- name: LambdaParameterHidingMemberVariable
- name: LocalVariableHidingMemberVariable
- name: MethodOverridesInaccessibleMethodOfSuper
- name: MethodOverridesStaticMethod
- name: ParameterHidingMemberVariable
- name: MethodOverloadsParentMethod
- name: FieldHidesSuperclassField
- name: EmptyMethod
- name: IllegalDependencyOnInternalPackage
- name: SuppressionAnnotation
- name: SerializableHasSerialVersionUIDField
- name: UnstableTypeUsedInSignature
- name: Since15
- name: CastCanBeReplacedWithVariable
- name: IOResource
- name: JDBCResource
- name: DriverManagerGetConnection
- name: ReturnNull
- name: ComparableImplementedButEqualsNotOverridden
- name: MisspelledEquals
- name: EqualsAndHashcode
- name: InstanceofIncompatibleInterface
- name: IteratorNextDoesNotThrowNoSuchElementException
- name: ArrayEquality
- name: ObjectToString
- name: CastConflictsWithInstanceof
- name: CastToIncompatibleInterface
- name: ConstantAssertCondition
- name: CovariantEquals
- name: InnerClassReferencedViaSubclass
- name: CompareToUsesNonFinalVariable
- name: EqualsUsesNonFinalVariable
- name: HashCodeUsesNonFinalVariable
- name: NonShortCircuitBoolean
- name: ObjectEquality
- name: VariableNotUsedInsideIf
- name: ResultOfObjectAllocationIgnored
- name: StaticFieldReferenceOnSubclass
- name: StaticCallOnSubclass
- name: StringConcatenationInFormatCall
- name: StringConcatenationInMessageFormatCall
- name: SubtractionInCompareTo
- name: SuspiciousArrayCast
- name: UnreachableCode
- name: ClassNewInstance
- name: UseOfPropertiesAsHashtable
- name: ResultSetIndexZero
- name: StringConcatenationMissingWhitespace
- name: ObjectEqualsCanBeEquality
- name: MapReplaceableByEnumMap
- name: SetReplaceableByEnumSet
- name: StringBufferToStringInConcatenation
- name: StringBufferMustHaveInitialCapacity
- name: AutoBoxing
- name: AutoUnboxing
- name: BulkFileAttributesRead
- name: CallToSimpleGetterInClass
- name: CallToSimpleSetterInClass
- name: CollectionsMustHaveInitialCapacity
- name: DynamicRegexReplaceableByCompiledPattern
- name: ExplicitArgumentCanBeLambda
- name: FieldMayBeStatic
- name: KeySetIterationMayUseEntrySet
- name: MethodMayBeStatic
- name: StringReplaceableByStringBuffer
- name: ObjectAllocationInLoop
- name: ObjectInstantiationInEqualsHashCode
- name: LengthOneStringInIndexOf
- name: LengthOneStringsInConcatenation
- name: TailRecursion
- name: RandomDoubleForRandomInteger
- name: FieldNamingConvention
- name: LambdaParameterNamingConvention
- name: LocalVariableNamingConvention
- name: ParameterNamingConvention
- name: UpperCaseFieldNameNotConstant
- name: PackageNamingConvention
- name: ParameterNameDiffersFromOverriddenParameter
- name: QuestionableName
- name: StandardVariableNames
- name: DollarSignInName
- name: StringBufferField
- name: AnonymousInnerClassMayBeStatic
- name: SystemGC
- name: ReturnOfInnerClass
- name: StaticCollection
- name: ZeroLengthArrayInitialization
- name: ParametersPerConstructor
- name: ThreeNegationsPerMethod
- name: MethodWithMultipleLoops
- name: MultipleReturnPointsPerMethod
- name: ThrownExceptionsPerMethod
- name: ParametersPerMethod
- name: CyclomaticComplexity
- name: MethodCoupling
- name: OverlyLongLambda
- name: NonCommentSourceStatements
- name: NestingDepth
- name: ThisEscapedInConstructor
- name: AbstractMethodCallInConstructor
- name: DoubleBraceInitialization
- name: InstanceVariableUninitializedUse
- name: NonFinalStaticVariableUsedInClassInitialization
- name: OverridableMethodCallDuringObjectConstruction
- name: OverriddenMethodCallDuringObjectConstruction
- name: StaticVariableInitialization
- name: StaticVariableUninitializedUse
- name: NonThreadSafeLazyInitialization
- name: InstanceVariableInitialization
- name: PublicField
- name: PublicInnerClass
- name: UseOfAnotherObjectsPrivateField
- name: AssignmentOrReturnOfFieldWithMutableType
- name: PackageVisibleField
- name: PackageVisibleInnerClass
- name: ProtectedField
- name: ProtectedInnerClass
- name: ErrorRethrown
- name: InstanceofCatchParameter
- name: NullThrown
- name: ThreadDeathRethrown
- name: ThrowCaughtLocally
- name: ExceptionFromCatchWhichDoesntWrap
- name: CheckedExceptionClass
- name: ExtendsThrowable
- name: NewExceptionWithoutArguments
- name: NestedTryStatement
- name: NonFinalFieldOfException
- name: TooBroadCatch
- name: TooBroadThrows
- name: BadExceptionCaught
- name: BadExceptionDeclared
- name: BadExceptionThrown
- name: ThrowsRuntimeException
- name: MISSORTED_IMPORTS
- name: JavaLangImport
- name: SamePackageImport
- name: BreakStatement
- name: DefaultNotLastCaseInSwitch
- name: ForLoopWithMissingComponent
- name: NegatedIfElse
- name: IfStatementWithTooManyBranches
- name: SwitchStatementsWithoutDefault
- name: BooleanExpressionMayBeConditional
- name: SwitchExpressionCanBePushedDown
- name: ConditionalCanBePushedInsideExpression
- name: EnumSwitchStatementWhichMissesCases
- name: ExpressionMayBeFactorized
- name: FallthruInSwitchStatement
- name: LoopWithImplicitTerminationCondition
- name: NegatedConditionalExpression
- name: NegatedEqualityExpression
- name: NestedSwitchStatement
- name: NestedConditionalExpression
- name: OverlyComplexBooleanExpression
- name: PointlessIndexOfComparison
- name: ConfusingElse
- name: IfCanBeAssertion
- name: BooleanMethodIsAlwaysInverted
- name: BooleanVariableAlwaysNegated
- name: NegativelyNamedBooleanVariable
- name: ReuseOfLocalVariable
- name: TooBroadScope
- name: ConstantValueVariableUse
- name: DoubleLiteralMayBeFloatLiteral
- name: IntLiteralMayBeLongLiteral
- name: CastThatLosesPrecision
- name: UnnecessaryExplicitNumericCast
- name: CharUsedInArithmeticContext
- name: BigDecimalEquals
- name: ComparisonOfShortAndChar
- name: ConfusingFloatingPointLiteral
- name: ConstantMathCall
- name: FloatingPointEquality
- name: ImplicitNumericConversion
- name: NonReproducibleMathCall
- name: OctalAndDecimalIntegersMixed
- name: OverlyComplexArithmeticExpression
- name: BadOddness
- name: SuspiciousLiteralUnderscore
- name: RemoveLiteralUnderscores
- name: InsertLiteralUnderscores
- name: IgnoreFileDuplicateEntry
- name: RegExpAnonymousGroup
- name: RegExpEscapedMetaCharacter
- name: RegExpOctalEscape

0 comments on commit 78730f6

Please sign in to comment.