Improve wording in some inspections
This commit is contained in:
Vendored
+1
-1
@@ -1,4 +1,4 @@
|
||||
// FIX: Replace with '/' operator
|
||||
// FIX: Replace with '/'
|
||||
fun test() {
|
||||
class Test {
|
||||
operator fun div(a: Int): Test = Test()
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// FIX: Replace with '/' operator
|
||||
// FIX: Replace with '/'
|
||||
fun test() {
|
||||
class Test {
|
||||
operator fun div(a: Int): Test = Test()
|
||||
|
||||
+1
-1
@@ -1,3 +1,3 @@
|
||||
// FIX: Replace with '==' operator
|
||||
// FIX: Replace with '=='
|
||||
|
||||
val x = 2.<caret>equals(2)
|
||||
Vendored
+1
-1
@@ -1,3 +1,3 @@
|
||||
// FIX: Replace with '==' operator
|
||||
// FIX: Replace with '=='
|
||||
|
||||
val x = 2 == 2
|
||||
Vendored
+1
-1
@@ -1,3 +1,3 @@
|
||||
// FIX: Replace with '>' operator
|
||||
// FIX: Replace with '>'
|
||||
|
||||
val x = 3.compare<caret>To(2) > 0
|
||||
Vendored
+1
-1
@@ -1,3 +1,3 @@
|
||||
// FIX: Replace with '>' operator
|
||||
// FIX: Replace with '>'
|
||||
|
||||
val x = 3 > 2
|
||||
Vendored
+1
-1
@@ -1,3 +1,3 @@
|
||||
// FIX: Replace with '<=' operator
|
||||
// FIX: Replace with '<='
|
||||
|
||||
val x = 0 >= 4.compare<caret>To(5)
|
||||
idea/testData/inspectionsLocal/conventionNameCalls/replaceCallWithBinaryOperator/lessEquals.kt.after
Vendored
+1
-1
@@ -1,3 +1,3 @@
|
||||
// FIX: Replace with '<=' operator
|
||||
// FIX: Replace with '<='
|
||||
|
||||
val x = 4 <= 5
|
||||
Vendored
+1
-1
@@ -1,4 +1,4 @@
|
||||
// FIX: Replace with '-' operator
|
||||
// FIX: Replace with '-'
|
||||
fun test() {
|
||||
class Test {
|
||||
operator fun minus(a: Int): Test = Test()
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// FIX: Replace with '-' operator
|
||||
// FIX: Replace with '-'
|
||||
fun test() {
|
||||
class Test {
|
||||
operator fun minus(a: Int): Test = Test()
|
||||
|
||||
Vendored
+1
-1
@@ -1,3 +1,3 @@
|
||||
// FIX: Replace with '!=' operator
|
||||
// FIX: Replace with '!='
|
||||
|
||||
val x = !2.eq<caret>uals(3)
|
||||
Vendored
+1
-1
@@ -1,3 +1,3 @@
|
||||
// FIX: Replace with '!=' operator
|
||||
// FIX: Replace with '!='
|
||||
|
||||
val x = 2 != 3
|
||||
+1
-1
@@ -1,3 +1,3 @@
|
||||
// FIX: Replace with '!=' operator
|
||||
// FIX: Replace with '!='
|
||||
|
||||
val x = !(2.<caret>equals(3))
|
||||
+1
-1
@@ -1,3 +1,3 @@
|
||||
// FIX: Replace with '!=' operator
|
||||
// FIX: Replace with '!='
|
||||
|
||||
val x = 2 != 3
|
||||
+1
-1
@@ -1,3 +1,3 @@
|
||||
// FIX: Replace with '==' operator
|
||||
// FIX: Replace with '=='
|
||||
|
||||
val x = !(2.equ<caret>als(3) && 4.equals(5))
|
||||
+1
-1
@@ -1,3 +1,3 @@
|
||||
// FIX: Replace with '==' operator
|
||||
// FIX: Replace with '=='
|
||||
|
||||
val x = !(2 == 3 && 4.equals(5))
|
||||
Vendored
+1
-1
@@ -1,4 +1,4 @@
|
||||
// FIX: Replace with '+' operator
|
||||
// FIX: Replace with '+'
|
||||
fun test() {
|
||||
class Test {
|
||||
operator fun plus(a: Int): Test = Test()
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// FIX: Replace with '+' operator
|
||||
// FIX: Replace with '+'
|
||||
fun test() {
|
||||
class Test {
|
||||
operator fun plus(a: Int): Test = Test()
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// FIX: Replace with '..' operator
|
||||
// FIX: Replace with '..'
|
||||
fun test() {
|
||||
class Test {
|
||||
operator fun rangeTo(a: Int): Test = Test()
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// FIX: Replace with '..' operator
|
||||
// FIX: Replace with '..'
|
||||
fun test() {
|
||||
class Test {
|
||||
operator fun rangeTo(a: Int): Test = Test()
|
||||
|
||||
Vendored
+1
-1
@@ -1,4 +1,4 @@
|
||||
// FIX: Replace with '%' operator
|
||||
// FIX: Replace with '%'
|
||||
|
||||
fun test() {
|
||||
class Test {
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// FIX: Replace with '%' operator
|
||||
// FIX: Replace with '%'
|
||||
|
||||
fun test() {
|
||||
class Test {
|
||||
|
||||
Vendored
+1
-1
@@ -1,4 +1,4 @@
|
||||
// FIX: Replace with '*' operator
|
||||
// FIX: Replace with '*'
|
||||
fun test() {
|
||||
class Test {
|
||||
operator fun times(a: Int): Test = Test()
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// FIX: Replace with '*' operator
|
||||
// FIX: Replace with '*'
|
||||
fun test() {
|
||||
class Test {
|
||||
operator fun times(a: Int): Test = Test()
|
||||
|
||||
Vendored
+9
-9
@@ -5,7 +5,7 @@
|
||||
<module>light_idea_test_case</module>
|
||||
<entry_point TYPE="file" FQNAME="singleArgument.kt" />
|
||||
<problem_class severity="WARNING" attribute_key="WARNING_ATTRIBUTES">Explicit 'get' or 'set' call</problem_class>
|
||||
<description>Call replaceable with indexing operator</description>
|
||||
<description>Should be replaced with indexing</description>
|
||||
</problem>
|
||||
|
||||
<problem>
|
||||
@@ -14,7 +14,7 @@
|
||||
<module>light_idea_test_case</module>
|
||||
<entry_point TYPE="file" FQNAME="multiArgument.kt" />
|
||||
<problem_class severity="WARNING" attribute_key="WARNING_ATTRIBUTES">Explicit 'get' or 'set' call</problem_class>
|
||||
<description>Call replaceable with indexing operator</description>
|
||||
<description>Should be replaced with indexing</description>
|
||||
</problem>
|
||||
|
||||
<problem>
|
||||
@@ -23,7 +23,7 @@
|
||||
<module>light_idea_test_case</module>
|
||||
<entry_point TYPE="file" FQNAME="functionalArgument.kt" />
|
||||
<problem_class severity="WARNING" attribute_key="WARNING_ATTRIBUTES">Explicit 'get' or 'set' call</problem_class>
|
||||
<description>Call replaceable with indexing operator</description>
|
||||
<description>Should be replaced with indexing</description>
|
||||
</problem>
|
||||
|
||||
<problem>
|
||||
@@ -32,7 +32,7 @@
|
||||
<module>light_idea_test_case</module>
|
||||
<entry_point TYPE="file" FQNAME="extensionFunction.kt" />
|
||||
<problem_class severity="WARNING" attribute_key="WARNING_ATTRIBUTES">Explicit 'get' or 'set' call</problem_class>
|
||||
<description>Call replaceable with indexing operator</description>
|
||||
<description>Should be replaced with indexing</description>
|
||||
</problem>
|
||||
|
||||
<problem>
|
||||
@@ -41,7 +41,7 @@
|
||||
<module>light_idea_test_case</module>
|
||||
<entry_point TYPE="file" FQNAME="argumentAndFunction.kt" />
|
||||
<problem_class severity="WARNING" attribute_key="WARNING_ATTRIBUTES">Explicit 'get' or 'set' call</problem_class>
|
||||
<description>Call replaceable with indexing operator</description>
|
||||
<description>Should be replaced with indexing</description>
|
||||
</problem>
|
||||
|
||||
<problem>
|
||||
@@ -50,7 +50,7 @@
|
||||
<module>light_idea_test_case</module>
|
||||
<entry_point TYPE="file" FQNAME="acceptableVararg.kt" />
|
||||
<problem_class severity="WARNING" attribute_key="WARNING_ATTRIBUTES">Explicit 'get' or 'set' call</problem_class>
|
||||
<description>Call replaceable with indexing operator</description>
|
||||
<description>Should be replaced with indexing</description>
|
||||
</problem>
|
||||
|
||||
<problem>
|
||||
@@ -59,7 +59,7 @@
|
||||
<module>light_idea_test_case</module>
|
||||
<entry_point TYPE="file" FQNAME="qualifier.kt" />
|
||||
<problem_class severity="WARNING" attribute_key="WARNING_ATTRIBUTES">Explicit 'get' or 'set' call</problem_class>
|
||||
<description>Call replaceable with indexing operator</description>
|
||||
<description>Should be replaced with indexing</description>
|
||||
</problem>
|
||||
|
||||
<problem>
|
||||
@@ -68,7 +68,7 @@
|
||||
<module>light_idea_test_case</module>
|
||||
<entry_point TYPE="file" FQNAME="set.kt" />
|
||||
<problem_class severity="WARNING" attribute_key="WARNING_ATTRIBUTES">Explicit 'get' or 'set' call</problem_class>
|
||||
<description>Call replaceable with indexing operator</description>
|
||||
<description>Should be replaced with indexing</description>
|
||||
</problem>
|
||||
|
||||
<problem>
|
||||
@@ -77,6 +77,6 @@
|
||||
<module>light_idea_test_case</module>
|
||||
<entry_point TYPE="file" FQNAME="set2.kt" />
|
||||
<problem_class severity="WARNING" attribute_key="WARNING_ATTRIBUTES">Explicit 'get' or 'set' call</problem_class>
|
||||
<description>Call replaceable with indexing operator</description>
|
||||
<description>Should be replaced with indexing</description>
|
||||
</problem>
|
||||
</problems>
|
||||
|
||||
Reference in New Issue
Block a user