Inspection for highlighting problem API usage

It's planned to use this inspection for show patchset branches problems
during development process.
This commit is contained in:
Nikolay Krasko
2018-03-19 01:38:44 +03:00
committed by Nikolay Krasko
parent a95ec598f2
commit 3ef67e1d9d
25 changed files with 849 additions and 3 deletions
@@ -0,0 +1,87 @@
<problems>
<problem>
<file>classes.kt</file>
<line>6</line>
<description>class example</description>
</problem>
<problem>
<file>classes.kt</file>
<line>9</line>
<description>class example</description>
</problem>
<problem>
<file>overloads.kt</file>
<line>6</line>
<description>concrete overload example</description>
</problem>
<problem>
<file>overloads.kt</file>
<line>9</line>
<description>overload with no params example</description>
</problem>
<problem>
<file>overloads.kt</file>
<line>10</line>
<description>overload with no params example</description>
</problem>
<problem>
<file>static.kt</file>
<line>6</line>
<description>static method example</description>
</problem>
<problem>
<file>JavaTest.java</file>
<line>10</line>
<description>class example</description>
</problem>
<problem>
<file>JavaTest.java</file>
<line>11</line>
<description>static method example</description>
</problem>
<problem>
<file>JavaTest.java</file>
<line>15</line>
<description>concrete overload example</description>
</problem>
<problem>
<file>JavaTest.java</file>
<line>18</line>
<description>overload with no params example</description>
</problem>
<problem>
<file>JavaTest.java</file>
<line>19</line>
<description>overload with no params example</description>
</problem>
<problem>
<file>JavaTest.java</file>
<line>25</line>
<description>class example</description>
</problem>
<problem>
<file>JavaTest.java</file>
<line>30</line>
<description>signature changed example</description>
</problem>
<problem>
<file>JavaTest.java</file>
<line>43</line>
<description>constructor example</description>
</problem>
<problem>
<file>super.kt</file>
<line>6</line>
<description>signature changed example</description>
</problem>
<problem>
<file>constructors.kt</file>
<line>7</line>
<description>constructor example</description>
</problem>
</problems>
@@ -0,0 +1 @@
// INSPECTION_CLASS: org.jetbrains.kotlin.idea.inspections.api.IncompatibleAPIInspection
@@ -0,0 +1,12 @@
<inspection_tool class="IncompatibleAPI" enabled="true" level="WARNING" enabled_by_default="true">
<option name="problems">
<list>
<Problem reference="lib.LibClass" reason="class example" />
<Problem reference="lib.LibMethods#staticMethod" reason="static method example" />
<Problem reference="lib.LibMethods#overload1(int)" reason="concrete overload example" />
<Problem reference="lib.LibMethods#overload2" reason="overload with no params example" />
<Problem reference="lib.LibSuper#test" reason="signature changed example" />
<Problem reference="lib.LibConstructor#LibConstructor(java.lang.Object)" reason="constructor example" />
</list>
</option>
</inspection_tool>