KT-18538 Fix inspection to detect unnecessary grand-base class qualifier

- Add separate option to enable/disable this inspection, as it is not
obvious if it should be always enabled or not
  - This option can be used to detect all unnecessary qualifiers in
  tests
- Add possibility to configure inspections via `settings.xml` in the
`AbstractMultiFileLocalInspectionTest.kt`
- ^KT-18538 Fixed
This commit is contained in:
Roman Golyshev
2020-05-29 19:53:26 +03:00
parent 2c12d26d28
commit 7fb5acc718
31 changed files with 212 additions and 15 deletions
@@ -52,8 +52,12 @@ class BasicLookupElementFactory(
includeClassTypeArguments: Boolean = true,
parametersAndTypeGrayed: Boolean = false
): LookupElement {
val _descriptor = descriptor.unwrapIfFakeOverride()
return createLookupElementUnwrappedDescriptor(_descriptor, qualifyNestedClasses, includeClassTypeArguments, parametersAndTypeGrayed)
return createLookupElementUnwrappedDescriptor(
descriptor.unwrapIfFakeOverride(),
qualifyNestedClasses,
includeClassTypeArguments,
parametersAndTypeGrayed
)
}
fun createLookupElementForJavaClass(