Standardize and improve descriptions of intentions/inspections

This commit is contained in:
Alexey Belkov
2018-03-10 13:34:20 +03:00
committed by Mikhail Glukhikh
parent bc7ccbc39b
commit 3b2bbee595
276 changed files with 359 additions and 356 deletions
@@ -1,5 +1,5 @@
<html>
<body>
Add an activity class to AndroidManifest.xml
This intention adds an activity class to <b>AndroidManifest.xml</b>.
</body>
</html>
@@ -1,5 +1,5 @@
<html>
<body>
Add a subclass of BroadcastReceiver to AndroidManifest.xml
This intention adds a subclass of <b>BroadcastReceiver</b> to <b>AndroidManifest.xml</b>.
</body>
</html>
@@ -1,3 +1,3 @@
<html><body>
This expression allows to add the 'const' modifier to properties which can be valid compile-time constants.
This intention allows to add the <b>const</b> modifier to properties which can be valid compile-time constants.
</body></html>
@@ -1,5 +1,5 @@
<html>
<body>
This intention adds an index variable to a for loop iterating over a collection.
This intention adds an index variable to a <b>for</b> loop iterating over a collection.
</body>
</html>
@@ -1,5 +1,5 @@
<html>
<body>
This intention adds @JvmOverloads annotation to functions and constructors with default arguments.
This intention adds a <b>@JvmOverloads</b> annotation to functions and constructors with default arguments.
</body>
</html>
@@ -1,5 +1,5 @@
<html>
<body>
This intention adds @JvmStatic annotation to the specified function or property of an object declaration.
This intention adds a <b>@JvmStatic</b> annotation to the specified function or property of an object declaration.
</body>
</html>
@@ -1,5 +1,5 @@
<html>
<body>
This intention adds labeled return to last expression in a lambda.
This intention adds a labeled return to the last expression in a lambda.
</body>
</html>
@@ -1,5 +1,5 @@
<html>
<body>
This intention adds name to an argument of a function call to use named argument syntax.
This intention adds a name to an argument of a function call to use named argument syntax.
</body>
</html>
@@ -1,5 +1,5 @@
<html>
<body>
This intention adds an open modifier.
This intention adds an <b>open</b> modifier to a non-private method or property in an open class.
</body>
</html>
@@ -1,5 +1,5 @@
<html>
<body>
This intention to add the 'operator' modifier to a function that matches one of the operator conventions but is not annotated as operator.
This intention adds an <b>operator</b> modifier to a function that matches one of the operator conventions but is not annotated as <b>operator</b>.
</body>
</html>
@@ -1,5 +1,5 @@
<html>
<body>
This intention adds a property getter and setter.
This intention adds a getter and a setter for a property.
</body>
</html>
@@ -1,5 +1,5 @@
<html>
<body>
Add a service subclass to AndroidManifest.xml
This intention adds a service subclass to <b>AndroidManifest.xml</b>.
</body>
</html>
@@ -1,5 +1,5 @@
<html>
<body>
This intention adds val/var keyword to the primary constructor parameter effectively making it a property.
This intention adds a <b>val/var</b> keyword to a primary constructor parameter effectively making it a property.
</body>
</html>
@@ -1,5 +1,5 @@
<html>
<body>
Converts an anonymous function in call to lambda expression.
This intention converts an anonymous function in a call to a lambda expression.
</body>
</html>
@@ -1,6 +1,6 @@
<html>
<body>
This intention changes qualified package name of the current file without moving the file itself.
This intention changes the qualified package name of the current file without moving the file itself.
All references and import directives are updated accordingly.
</body>
</html>
@@ -1,5 +1,5 @@
<html>
<body>
This intention changes declaration visibility modifier to 'internal'.
This intention changes the declaration visibility modifier to <b>internal</b>.
</body>
</html>
@@ -1,5 +1,5 @@
<html>
<body>
This intention changes declaration visibility modifier to 'private'.
This intention changes the declaration visibility modifier to <b>private</b>.
</body>
</html>
@@ -1,5 +1,5 @@
<html>
<body>
This intention changes declaration visibility modifier to 'protected'.
This intention changes the declaration visibility modifier to <b>protected</b>.
</body>
</html>
@@ -1,5 +1,5 @@
<html>
<body>
This intention changes declaration visibility modifier to 'public'.
This intention changes the declaration visibility modifier to <b>public</b>.
</body>
</html>
@@ -1,5 +1,5 @@
<html>
<body>
This intention formats a function call placing each argument on separate line
This intention formats a function call placing each argument on a separate line.
</body>
</html>
@@ -1,5 +1,5 @@
<html>
<body>
This intention formats parameter list in a declaration placing each parameter on separate line
This intention formats parameters of a declaration placing each parameter on a separate line.
</body>
</html>
@@ -1,5 +1,5 @@
<html>
<body>
This intention converts an assert into an if statement that throws an exception if the condition is false
This intention converts an <b>assert</b> into an <b>if</b> statement that throws an exception if the condition is false.
</body>
</html>
@@ -1,5 +1,5 @@
<html>
<body>
This intention converts a boolean expression to an equivalent one using DeMorgan's law.
This intention converts a <b>boolean</b> expression to an equivalent expression using De Morgan's laws.
</body>
</html>
@@ -1,5 +1,5 @@
<html>
<body>
This intention changes camel-case name of the given test function to space-separated one
This intention changes a camel case name of the given test function to a space-separated one.
</body>
</html>
@@ -1,5 +1,5 @@
<html>
<body>
This intention converts an open or abstract class with only private constructors to a sealed class
This intention converts an <b>open</b> or <b>abstract</b> class with only private constructors to a <b>sealed</b> class.
</body>
</html>
@@ -1,5 +1,5 @@
<html>
<body>
This intention converts an enum class to a sealed class hierarchy with enum entries turned into objects
This intention converts an <b>enum</b> class to a <b>sealed</b> class hierarchy with <b>enum</b> entries turned into objects.
</body>
</html>
@@ -1,5 +1,5 @@
<html>
<body>
This intention converts a call to the "forEach" function into a for loop.
This intention converts a call to the <b>forEach</b> function into a <b>for</b> loop.
</body>
</html>
@@ -1,5 +1,5 @@
<html>
<body>
This intention converts function to property.
This intention converts a function to a property.
</body>
</html>
@@ -1,5 +1,5 @@
<html>
<body>
This intention converts given parameter of a function type used in a function parameter to receiver
This intention converts a given parameter of a function type used in a function parameter to receiver.
</body>
</html>
@@ -1,5 +1,5 @@
<html>
<body>
This intention converts receiver of a function type used in a function parameter to its first parameter
This intention converts a receiver of a function type used in a function parameter to its first parameter.
</body>
</html>
@@ -1,5 +1,5 @@
<html>
<body>
This intention converts an if statement that throws an AssertionError exception into an assertion
This intention converts an <b>if</b> statement that throws an <b>AssertionError</b> exception into an assertion.
</body>
</html>
@@ -1,5 +1,5 @@
<html>
<body>
This intention converts a lambda (function literal) expression calling a single function to the function reference
This intention converts a lambda (function literal) expression calling a single function to a function reference.
</body>
</html>
@@ -1,5 +1,5 @@
<html>
<body>
This intention converts a member of a class or interface into an extension to this class/interface.
This intention converts a member of a class or an interface into an extension to this class/interface.
</body>
</html>
@@ -1,5 +1,5 @@
<html>
<body>
This intention converts a sequence of negated boolean expressions with the DeMorgan equivalent.
This intention converts a sequence of negated boolean expressions with the De Morgan equivalent.
</body>
</html>
@@ -1,5 +1,5 @@
<html>
<body>
This intention converts object literal to class and replaces object literal expression with constructor call.
This intention converts an object literal to a class and replaces the object literal expression with a constructor call.
</body>
</html>
@@ -1,5 +1,5 @@
<html>
<body>
This intention converts function parameter to extension receiver.
This intention converts a function parameter to an extension receiver.
</body>
</html>
@@ -1,5 +1,5 @@
<html>
<body>
This intention converts primary constructor to secondary one.
This intention converts a primary constructor to a secondary one.
</body>
</html>
@@ -1,5 +1,5 @@
<html>
<body>
This intention converts property initializer to getter.
This intention converts a property initializer to a getter.
</body>
</html>
@@ -1,5 +1,5 @@
<html>
<body>
This intention converts property to function
This intention converts a property to a function.
</body>
</html>
@@ -1,5 +1,5 @@
<html>
<body>
This intention converts range check (in) to two consecutive comparisons
This intention converts a range check (<b>in</b>) to two consecutive comparisons.
</body>
</html>
@@ -1,5 +1,5 @@
<html>
<body>
This intention converts extension function receiver to its parameter.
This intention converts an extension function receiver to its parameter.
</body>
</html>
@@ -1,5 +1,5 @@
<html>
<body>
This intention converts a callable function reference to the lambda expression
This intention converts a callable function reference to a lambda expression.
</body>
</html>
@@ -1,5 +1,5 @@
<html>
<body>
This intention converts a sealed class to an enum class and replaces inheriting objects with enum entries
This intention converts a <b>sealed</b> class to an <b>enum</b> class and replaces inheriting objects with <b>enum</b> entries.
</body>
</html>
@@ -1,5 +1,5 @@
<html>
<body>
This intention converts secondary constructor to primary one.
This intention converts a secondary constructor to a primary one.
</body>
</html>
@@ -1,5 +1,5 @@
<html>
<body>
This intention converts several calls with same receiver to 'apply'
This intention converts several calls with the same receiver to <b>apply</b>.
</body>
</html>
@@ -1,5 +1,5 @@
<html>
<body>
This intention converts expression body (single expression after '=' sign) to block body with return statement.
This intention converts an expression body (single expression after <b>=</b> sign) to a block body with a return statement.
</body>
</html>
@@ -1,5 +1,5 @@
<html>
<body>
Converts a statement that builds a String using a String Template to one that builds a String using '+'
This intention converts a statement that builds a <b>String</b> using a string template to one that builds a <b>String</b> using <b>+</b>.
</body>
</html>
@@ -1,5 +1,5 @@
<html>
<body>
This intention converts block body to expression body (single expression after '=' sign).
This intention converts a block body to an expression body (single expression after <b>=</b> sign).
</body>
</html>
@@ -1,5 +1,5 @@
<html>
<body>
This intention transforms a for loop expression into a function call to "forEach"
This intention transforms a <b>for</b> loop into a function call to <b>forEach</b>.
</body>
</html>
@@ -1,5 +1,5 @@
<html>
<body>
Converts a statement that builds a String using '+' to one that builds a String using a raw String
This intention converts a statement that builds a <b>String</b> using <b>+</b> to one that builds a <b>String</b> using a raw string.
</body>
</html>
@@ -1,5 +1,5 @@
<html>
<body>
This intention converts several calls with same receiver to 'run'
This intention converts several calls with the same receiver to <b>run</b>.
</body>
</html>
@@ -1,5 +1,5 @@
<html>
<body>
Converts a statement that builds a String using '+' to one that builds a String using a String template
This intention converts a statement that builds a <b>String</b> using <b>+</b> to one that builds a <b>String</b> using a string template.
</body>
</html>
@@ -1,5 +1,5 @@
<html>
<body>
This intention converts several calls with same receiver to 'with'
This intention converts several calls with the same receiver to <b>with</b>.
</body>
</html>
@@ -1,5 +1,5 @@
<html>
<body>
This intention converts a try-finally block with resource.close() in finally into the resource.use() call
This intention converts a <b>try-finally</b> block with <b>resource.close()</b> in <b>finally</b> into a <b>resource.use()</b> call.
</body>
</html>
@@ -1,5 +1,5 @@
<html>
<body>
This intention converts two consecutive comparisons to range check (in)
This intention converts two consecutive comparisons to a range check (<b>in</b>).
</body>
</html>
@@ -1,5 +1,5 @@
<html>
<body>
This intention converts unsafeCast() call to unsafe cast.
This intention converts an <b>unsafeCast()</b> call to an unsafe cast (<b>as</b>).
</body>
</html>
@@ -1,5 +1,5 @@
<html>
<body>
This intention converts unsafe cast to unsafeCast() call.
This intention converts an unsafe cast (<b>as</b>) to an <b>unsafeCast()</b> call.
</body>
</html>
@@ -2,6 +2,6 @@
<body>
This intention copies the text of a <b>String</b> concatenation
to the system clipboard. This can be useful for example when you have a multi-line SQL query in
your code, split into concatenated lines which you need to copy to an external application.
your code split into concatenated lines which you need to copy to an external application.
</body>
</html>
@@ -1,5 +1,9 @@
<html>
<body>
This intention creates default implementation for an interface or an abstract class, creates subclass of a sealed or open class
This intention:
<ul>
<li>creates a default implementation for an interface or an abstract class</li>
<li>creates a subclass of a sealed or open class</li>
</ul>
</body>
</html>
@@ -1,5 +1,5 @@
<html>
<body>
This intention adds <i>kotlin.ReplaceWith</i> argument to <i>kotlin.deprecated</i> annotation on a function or property basing on its body.
This intention adds a <b>kotlin.ReplaceWith</b> argument to a <b>kotlin.deprecated</b> annotation on a function or a property based on its body.
</body>
</html>
@@ -1,5 +1,5 @@
<html>
<body>
This intention destructures declaration (of parameter or variable of data class / map entry type)
This intention destructures a declaration (of a parameter or a variable of a data class / map entry type).
</body>
</html>
@@ -1,6 +1,6 @@
<html>
<body>
Converts an expression that uses the '!!' operator to an if-then expression that throws a
NullPointerException if the expression is null.
This intention converts an expression that uses the <b>!!</b> operator to an <b>if-then</b> expression that throws a
<b>NullPointerException</b> if the expression is null.
</body>
</html>
@@ -1,5 +1,5 @@
<html>
<body>
This intention eliminates argument of 'when' expression transforming its pattern-matching conditions into boolean expressions
This intention eliminates the argument of a <b>when</b> expression transforming its pattern-matching conditions into boolean expressions.
</body>
</html>
@@ -1,5 +1,5 @@
<html>
<body>
Converts an expression that uses an elvis operator to an if-then expression
This intention converts an expression that uses an elvis operator to an <b>if-then</b> expression.
</body>
</html>
@@ -1,5 +1,5 @@
<html>
<body>
This intention merges branches of nested 'when' expression into enclosing one
This intention merges branches of a nested <b>when</b> expression into the enclosing <b>when</b> expression.
</body>
</html>
@@ -1,5 +1,5 @@
<html>
<body>
This intention converts single-branch 'if' expression immediately followed by 'return' into a single 'return' with 'if' expression as an argument
This intention converts a single-branch <b>if</b> expression immediately followed by a <b>return</b> into a single <b>return</b> with an <b>if</b> expression as an argument.
</body>
</html>
@@ -1,5 +1,5 @@
<html>
<body>
Converts an if expression checking variable being null or not of a type right after initializing it to an elvis operator in the initializer (if applicable)
This intention converts an <b>if</b> expression checking a variable being null or not right after initializing it to an elvis operator in the initializer (if applicable).
</body>
</html>
@@ -1,6 +1,6 @@
<html>
<body>
Converts an if-then expression that checks if a value is null to an equivalent expression
using the '!!' operator.
This intention converts an <b>if-then</b> expression that checks if a value is null to an equivalent expression
using the <b>!!</b> operator.
</body>
</html>
@@ -1,5 +1,5 @@
<html>
<body>
Converts an if expression to an expression using an elvis operator (if applicable)
This intention converts an <b>if</b> expression to an expression using an elvis operator (if applicable).
</body>
</html>
@@ -1,5 +1,5 @@
<html>
<body>
This intention converts 'if' expression to equivalent 'when' expression
This intention converts an <b>if</b> expression to an equivalent <b>when</b> expression.
</body>
</html>
@@ -1,5 +1,5 @@
<html>
<body>
This intention searches for all classes that can implement selected abstract property, and creates corresponding property parameter there.
This intention searches for all classes that can implement the selected abstract property and creates the corresponding property parameter there.
</body>
</html>
@@ -1,5 +1,5 @@
<html>
<body>
This intention searches for all classes that can implement selected abstract member, and creates default implementation there.
This intention searches for all classes that can implement the selected abstract member and creates a default implementation there.
</body>
</html>
@@ -1,4 +1,5 @@
<html>
<body>
This intention implements the methods and the CREATOR object needed for Parcelable.</body>
This intention implements the methods and the <b>CREATOR</b> object needed for <b>Parcelable</b>.
</body>
</html>
@@ -1,5 +1,5 @@
<html>
<body>
This intention converts selected qualified reference into simple reference and adds import for corresponding class.
This intention converts the selected qualified reference into a simple reference and adds an import for the corresponding class.
</body>
</html>
@@ -1,6 +1,6 @@
<html>
<body>
This intention converts qualified references to a Java static member, object member or enum class member
into simple references and adds import directive for that symbol.
into simple references and adds an <b>import</b> directive for that symbol.
</body>
</html>
@@ -1,5 +1,5 @@
<html>
<body>
This intention inserts curly braces around simple names in string templates
This intention inserts curly braces around simple names in string templates.
</body>
</html>
@@ -1,5 +1,5 @@
<html>
<body>
This intention inserts explicit type arguments to function calls
This intention inserts explicit type arguments in function calls.
</body>
</html>
@@ -1,5 +1,5 @@
<html>
<body>
This intention puts a result of the expression into a variable.
This intention puts the result of the specified expression into a variable.
</body>
</html>
@@ -1,5 +1,5 @@
<html>
<body>
This intention inverts the conditional expression in an 'if' expression.
This intention inverts a conditional expression in an <b>if</b> expression.
</body>
</html>
@@ -1,5 +1,5 @@
<html>
<body>
Uses for-loop to iterate over sequence of elements.
This intention introduces a <b>for</b> loop to iterate over a sequence of elements.
</body>
</html>
@@ -1,5 +1,5 @@
<html>
<body>
This intention joins the declaration of a property / variable and the first assignment into the property / variable
This intention joins the declaration of a property / variable and the first assignment into that property / variable.
</body>
</html>
@@ -1,5 +1,5 @@
<html>
<body>
This intention extracts string literal to Android resources.
This intention extracts a string literal to Android resources.
</body>
</html>
@@ -1,5 +1,5 @@
<html>
<body>
This intention generates a test case for the selected class. The generated class contains skeleton test functions for the chosen public functions.
This intention generates a test case for the specified class. The generated class contains skeleton test functions for the chosen public functions.
</body>
</html>
@@ -1,5 +1,5 @@
<html>
<body>
This intention adds Kotlin signature for Java method.
This intention adds a Kotlin signature for a Java method.
</body>
</html>
@@ -1,5 +1,5 @@
<html>
<body>
This intention moves source directory from execution's configuration to build the corresponding source directory tag
This intention moves the source directory from the execution's configuration to build the corresponding source directory tag.
</body>
</html>
@@ -1,6 +1,6 @@
<html>
<body>
This intention moves source directory from build source directory tag
to the corresponding kotlin-maven-plugin execution's configuration
This intention moves the source directory from the build source directory tag
to the corresponding <b>kotlin-maven-plugin</b> execution's configuration.
</body>
</html>
@@ -1,5 +1,5 @@
<html>
<body>
This intention merges two nested 'if's without 'else' branches into a single one.
This intention merges two nested <b>if</b> statements without <b>else</b> branches into a single <b>if</b>.
</body>
</html>
@@ -1,5 +1,5 @@
<html>
<body>
This intention merges two successive 'when' expressions with equivalent branches into the single one
This intention merges two successive <b>when</b> expressions with equivalent branches into a single <b>when</b>.
</body>
</html>
@@ -1,5 +1,5 @@
<html>
<body>
This intention moves top-level class or object to the separate file in the same package and directory
This intention moves a top-level class or object to a separate file in the same package and directory.
</body>
</html>
@@ -1,5 +1,5 @@
<html>
<body>
This intention moves a lambda expression inside parentheses
This intention moves a lambda expression inside parentheses.
</body>
</html>
@@ -1,5 +1,5 @@
<html>
<body>
This intention moves a lambda expression outside parentheses
This intention moves a lambda expression outside parentheses.
</body>
</html>
@@ -1,5 +1,5 @@
<html>
<body>
This intention moves member of companion object to the corresponding class.
This intention moves a member of a companion object to the corresponding class.
</body>
</html>
@@ -1,5 +1,5 @@
<html>
<body>
This intention moves class member to the corresponding companion object.
This intention moves a class member to the corresponding companion object.
</body>
</html>
@@ -1,5 +1,5 @@
<html>
<body>
This intention moves property from primary constructor to the class body.
This intention moves a property from the primary constructor to the class body.
</body>
</html>
@@ -1,5 +1,5 @@
<html>
<body>
This intention moves property to primary constructor.
This intention moves the specified property to the primary constructor.
</body>
</html>
@@ -1,5 +1,5 @@
<html>
<body>
Converts nullable boolean equality check to elvis operator
This intention converts a nullable boolean equality check to an elvis operator.
</body>
</html>
@@ -1,5 +1,5 @@
<html>
<body>
Converts an anonymous object literal implementing a Java interface with single abstract method into call with lambda expression.
This intention converts an anonymous object literal implementing a Java interface with a single abstract method into a call with a lambda expression.
</body>
</html>
@@ -1,5 +1,5 @@
<html>
<body>
Replace overloaded operator with function call
This intention replaces an overloaded operator with a function call.
</body>
</html>
@@ -1,5 +1,5 @@
<html>
<body>
This intention replaces a shortened type on the right-hand side of as/as?/is/!is by its complete version
This intention replaces a shortened type on the right-hand side of <b>as/as?/is/!is</b> by its complete version.
</body>
</html>
@@ -1,5 +1,5 @@
<html>
<body>
This intention regenerates the methods and the CREATOR object which implements Parcelable. <b>Warning:</b> Your custom code will be removed.
This intention regenerates the methods and the <b>CREATOR</b> object which implements <b>Parcelable</b>. <b>Warning:</b> your custom code will be removed.
</body>
</html>

Some files were not shown because too many files have changed in this diff Show More