Change NO_EXPLICIT_VISIBILITY_IN_API_MODE diagnostic range to 'declaration modifiers + name'.
Motivation: missing visibility modifier is an error in visibility modifiers list, so we should highlight this list. Including a name in the range is convenient for using alt+enter (you don't have to move cursor from name to fun/class/val keyword) Also change NO_EXPLICIT_RETURN_TYPE_IN_API_MODE diagnostic range to 'declaration name' to match corresponding IDE inspection. Fix stylistic problems and typos after review
This commit is contained in:
+2
-2
@@ -16,8 +16,8 @@ abstract class AbstractDiagnosticsWithExplicitApi : AbstractDiagnosticsTest() {
|
||||
override fun defaultLanguageVersionSettings(): LanguageVersionSettings =
|
||||
CompilerTestLanguageVersionSettings(
|
||||
DEFAULT_DIAGNOSTIC_TESTS_FEATURES,
|
||||
ApiVersion.KOTLIN_1_3,
|
||||
LanguageVersion.KOTLIN_1_3,
|
||||
LanguageVersionSettingsImpl.DEFAULT.apiVersion,
|
||||
LanguageVersionSettingsImpl.DEFAULT.languageVersion,
|
||||
mapOf(AnalysisFlags.explicitApiMode to ExplicitApiMode.STRICT)
|
||||
)
|
||||
}
|
||||
Reference in New Issue
Block a user