4 comments
Comment actions Permalink

Ted Hill wrote:

Is there a list of what inspections have been added for 5.0?


I was curious myself and made one for Inspection Gadgets. Some
inspections were added to the Idea core too, but I don't have a list for
those. Currently there are 508 inspections in the IG plugin, of which
134 were added for 5.0. And many bugs were fixed too. The short names
for the added inspections are:

AbstractClassNeverImplemented
AbstractClassWithOnlyOneDirectInheritor
AbstractMethodWithMissingImplementations
AnnotationNamingConvention
AnonymousInnerClassMayBeStatic
ArchaicSystemPropertyAccess
ArithmeticOnVolatileField
ArrayEquals
ArrayLengthInLoopCondition
AssignmentToStaticFieldFromInstanceMethod
AwaitNotInLoop
BadExceptionCaught
BadExceptionDeclared
BadExceptionThrown
BooleanMethodNameMustStartWithQuestion
CallToNativeMethodWhileLocked
CallToSimpleGetterInClass
CallToSimpleSetterInClass
CastConflictsWithInstanceof
CastToIncompatibleInterface
ChannelResource
CheckForOutOfMemoryOnLargeArrayAllocation
ClassLoader2Instantiation
ClassloaderInstantiation
CloneInNonCloneableClass
CollectionAddedToSelf
ComparisonToNaN
ConditionalExpressionWithIdenticalBranches
ConnectionResource
ConstantConditionalExpression
ConstantIfStatement
ConstantMathCall
ControlFlowStatementWithoutBraces
CustomClassloader
CustomSecurityManager
DivideByZero
DriverManagerGetConnection
DuplicateCondition
EnumeratedClassNamingConvention
EnumeratedConstantNamingConvention
EnumSwitchStatementWhichMissesCases
EqualsWhichDoesntCheckParameterClass
ExtendsAnnotation
ExtendsConcreteCollection
ExtendsThread
FieldHasSetterButNoGetter
FinallyBlockCannotCompleteNormally
HibernateResource
IfStatementWithIdenticalBranches
InstanceofChain
InstanceofIncompatibleInterface
InstantiatingObjectToGetClassObject
InstantiationOfUtilityClass
InterfaceNeverImplemented
InterfaceWithOnlyOneDirectInheritor
IOResource
IteratorHasNextCallsIteratorNext
IteratorNextDoesNotThrowNoSuchElementException
JDBCExecuteWithNonConstantString
JDBCPrepareStatementWithNonConstantString
JDBCResource
JNDIResource
JUnitAbstractTestClassNamingConvention
JUnitTestClassNamingConvention
LabeledStatement
LoadLibraryWithNonConstantString
MalformedFormatString
MalformedRegex
MalformedXPath
MapReplaceableByEnumMap
MethodCallInLoopCondition
MisorderedAssertEqualsParameters
MissingDeprecatedAnnotation
MissingOverrideAnnotation
NonBooleanMethodNameMayNotStartWithQuestion
NonFinalClone
NonFinalFieldOfException
NonFinalStaticVariableUsedInClassInitialization
NonReproducibleMathCall
NonThreadSafeLazyInitialization
NotifyCalledOnCondition
NullArgumentToVariableArgMethod
ObjectToString
OverlyLargePrimitiveArrayInitializer
OverriddenMethodCallInConstructor
ParameterNameDiffersFromOverriddenParameter
PrivateMemberAccessBetweenOuterAndInnerClass
PublicStaticArrayField
PublicStaticCollectionField
QuestionableName
RandomDoubleForRandomInteger
RecordStoreResource
ReuseOfLocalVariable
RuntimeExecWithNonConstantString
SafeLock
SerialPersistentFieldsWithWrongSignature
SetReplaceableByEnumSet
ShiftOutOfRange
SimpleDateFormatWithoutLocale
SimplifiableJUnitAssertion
SleepWhileHoldingLock
SocketResource
StaticCallOnSubclass
StaticFieldReferenceOnSubclass
StringBufferField
StringConcatenationInsideStringBufferAppend
SubstringZero
SuppressionAnnotation
SystemProperties
SystemRunFinalizersOnExit
SystemSetSecurityManager
TestCaseInProductCode
ThreadPriority
ThreadStopSuspendResume
ThreadWithDefaultRunMethod
ThreadYield
ThrownExceptionsPerMethod
TodoComment
TooBroadScope
TypeParameterHidesVisibleType
TypeParameterNamingConvention
UnconstructableTestCase
UnnecessaryConstructor
UnnecessaryEnumModifier
UnnecessaryLocalVariable
UnsecureRandomNumberGeneration
UseOfAnotherObjectsPrivateField
UseOfAWTPeerClass
UseOfJDBCDriverClass
UseOfProcessBuilder
UseOfPropertiesAsHashtable
VolatileArrayField
WaitCalledOnCondition
WhileCanBeForeach



Very very impressive.

Bas

0
Comment actions Permalink

This is a comparison of the inspections in IDEA 4.5 #2250 and IDEA #3405
by the way. In the final version of IDEA 5.0 there may be a few more
inspections.

Bas Leijdekkers wrote:

Ted Hill wrote:

>> Is there a list of what inspections have been added for 5.0?


I was curious myself and made one for Inspection Gadgets. Some
inspections were added to the Idea core too, but I don't have a list for
those. Currently there are 508 inspections in the IG plugin, of which
134 were added for 5.0. And many bugs were fixed too. The short names
for the added inspections are:

AbstractClassNeverImplemented
AbstractClassWithOnlyOneDirectInheritor
AbstractMethodWithMissingImplementations
AnnotationNamingConvention
AnonymousInnerClassMayBeStatic
ArchaicSystemPropertyAccess
ArithmeticOnVolatileField
ArrayEquals
ArrayLengthInLoopCondition
AssignmentToStaticFieldFromInstanceMethod
AwaitNotInLoop
BadExceptionCaught
BadExceptionDeclared
BadExceptionThrown
BooleanMethodNameMustStartWithQuestion
CallToNativeMethodWhileLocked
CallToSimpleGetterInClass
CallToSimpleSetterInClass
CastConflictsWithInstanceof
CastToIncompatibleInterface
ChannelResource
CheckForOutOfMemoryOnLargeArrayAllocation
ClassLoader2Instantiation
ClassloaderInstantiation
CloneInNonCloneableClass
CollectionAddedToSelf
ComparisonToNaN
ConditionalExpressionWithIdenticalBranches
ConnectionResource
ConstantConditionalExpression
ConstantIfStatement
ConstantMathCall
ControlFlowStatementWithoutBraces
CustomClassloader
CustomSecurityManager
DivideByZero
DriverManagerGetConnection
DuplicateCondition
EnumeratedClassNamingConvention
EnumeratedConstantNamingConvention
EnumSwitchStatementWhichMissesCases
EqualsWhichDoesntCheckParameterClass
ExtendsAnnotation
ExtendsConcreteCollection
ExtendsThread
FieldHasSetterButNoGetter
FinallyBlockCannotCompleteNormally
HibernateResource
IfStatementWithIdenticalBranches
InstanceofChain
InstanceofIncompatibleInterface
InstantiatingObjectToGetClassObject
InstantiationOfUtilityClass
InterfaceNeverImplemented
InterfaceWithOnlyOneDirectInheritor
IOResource
IteratorHasNextCallsIteratorNext
IteratorNextDoesNotThrowNoSuchElementException
JDBCExecuteWithNonConstantString
JDBCPrepareStatementWithNonConstantString
JDBCResource
JNDIResource
JUnitAbstractTestClassNamingConvention
JUnitTestClassNamingConvention
LabeledStatement
LoadLibraryWithNonConstantString
MalformedFormatString
MalformedRegex
MalformedXPath
MapReplaceableByEnumMap
MethodCallInLoopCondition
MisorderedAssertEqualsParameters
MissingDeprecatedAnnotation
MissingOverrideAnnotation
NonBooleanMethodNameMayNotStartWithQuestion
NonFinalClone
NonFinalFieldOfException
NonFinalStaticVariableUsedInClassInitialization
NonReproducibleMathCall
NonThreadSafeLazyInitialization
NotifyCalledOnCondition
NullArgumentToVariableArgMethod
ObjectToString
OverlyLargePrimitiveArrayInitializer
OverriddenMethodCallInConstructor
ParameterNameDiffersFromOverriddenParameter
PrivateMemberAccessBetweenOuterAndInnerClass
PublicStaticArrayField
PublicStaticCollectionField
QuestionableName
RandomDoubleForRandomInteger
RecordStoreResource
ReuseOfLocalVariable
RuntimeExecWithNonConstantString
SafeLock
SerialPersistentFieldsWithWrongSignature
SetReplaceableByEnumSet
ShiftOutOfRange
SimpleDateFormatWithoutLocale
SimplifiableJUnitAssertion
SleepWhileHoldingLock
SocketResource
StaticCallOnSubclass
StaticFieldReferenceOnSubclass
StringBufferField
StringConcatenationInsideStringBufferAppend
SubstringZero
SuppressionAnnotation
SystemProperties
SystemRunFinalizersOnExit
SystemSetSecurityManager
TestCaseInProductCode
ThreadPriority
ThreadStopSuspendResume
ThreadWithDefaultRunMethod
ThreadYield
ThrownExceptionsPerMethod
TodoComment
TooBroadScope
TypeParameterHidesVisibleType
TypeParameterNamingConvention
UnconstructableTestCase
UnnecessaryConstructor
UnnecessaryEnumModifier
UnnecessaryLocalVariable
UnsecureRandomNumberGeneration
UseOfAnotherObjectsPrivateField
UseOfAWTPeerClass
UseOfJDBCDriverClass
UseOfProcessBuilder
UseOfPropertiesAsHashtable
VolatileArrayField
WaitCalledOnCondition
WhileCanBeForeach



Very very impressive.

Bas

0
Comment actions Permalink

In IntelliJ 5's 'Errors' page where inspections can be configured, some
inspections are in blue, others in black.

What is the difference?


Thanks,

Ted

0
Comment actions Permalink

Inspections beat your code black and blue?!

No honestly: Blue color is used to mark settings you have changed.

Ted Hill wrote:

In IntelliJ 5's 'Errors' page where inspections can be configured, some
inspections are in blue, others in black.

What is the difference?


Thanks,

Ted

0

Please sign in to leave a comment.