-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
35 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,25 @@ | ||
|
||
## Mike's IDEA extensions | ||
|
||
* inspections, | ||
* well, that's all for now | ||
Some great inspections, quickfixes, tools. Well, only inspections at the moment. | ||
|
||
<h3>UAST (Java + Kotlin) inspections</h3> | ||
<ul> | ||
<li>Atomic can be replaced with volatile</li> | ||
<li>Calling Enum values() without caching</li> | ||
</ul> | ||
|
||
<h3>Kotlin inspections</h3> | ||
<ul> | ||
<li>Property delegation</li> | ||
<li>Declaration name is Java keyword</li> | ||
<li>Inline function leaks anonymous declaration</li> | ||
<li>Function won't be inlined; | ||
noinline callable references are a bit more expensive than noinline lambdas; | ||
function cannot be inlined if it is a receiver of an extension function</li> | ||
</ul> | ||
|
||
<h3>Android inspections</h3> | ||
<ul> | ||
<li><include layout="?themeAttribute"></li> | ||
</ul> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,13 +5,22 @@ | |
<vendor email="[email protected]" url="http://aquadc.net/">Mike</vendor> | ||
|
||
<description><![CDATA[ | ||
Missing inspections, quickfixes, tools. | ||
Some great inspections, quickfixes, tools. Well, only inspections at the moment. | ||
<h3>UAST (Java + Kotlin) inspections</h3> | ||
<ul> | ||
<li>Atomic can be replaced with volatile</li> | ||
<li>Calling Enum values() without caching</li> | ||
</ul> | ||
<h3>Kotlin inspections</h3> | ||
<ul> | ||
<li>Property delegation</li> | ||
<li>Kotlin identifier is Java keyword</li> | ||
<li>Atomic can be replaced with volatile</li> | ||
<li>Declaration name is Java keyword</li> | ||
<li>Inline function leaks anonymous declaration</li> | ||
<li>Function won't be inlined; | ||
noinline callable references are a bit more expensive than noinline lambdas; | ||
function cannot be inlined if it is a receiver of an extension function</li> | ||
</ul> | ||
<h3>Android inspections</h3> | ||
|
@@ -62,7 +71,7 @@ | |
|
||
<localInspection | ||
language="UAST" | ||
shortName="enumValuesUncached" displayName="Enum values() are never cached" | ||
shortName="enumValuesUncached" displayName="Calling Enum values() without caching" | ||
groupPath="JVM languages" groupName="Performance" | ||
enabledByDefault="true" level="WARNING" | ||
implementationClass="net.aquadc.mike.plugin.inspection.EnumValuesUncachedInspection" /> | ||
|