Skip to content

Commit e3c4e3d

Browse files
author
Alexander Belovitskiy
committed
docs(goland): update plugin.xml to match implemented features
- Update description to reflect actual functionality - Remove 'Query complexity analysis' (not implemented) - Add aliased wildcards and subquery detection - Add string concatenation and format strings detection - Update SQL builders list to full 12 supported libraries - Add Custom rules via DSL configuration - Update action descriptions for clarity - Improve XML formatting
1 parent bc433b0 commit e3c4e3d

File tree

1 file changed

+44
-23
lines changed
  • extensions/goland/src/main/resources/META-INF

1 file changed

+44
-23
lines changed

extensions/goland/src/main/resources/META-INF/plugin.xml

Lines changed: 44 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -2,28 +2,36 @@
22
<id>dev.unqueryvet</id>
33
<name>Unqueryvet - SQL Query Linter</name>
44
<version>1.0.0</version>
5-
<vendor email="mirrexone@gmail.com" url="https://github.com/MirrexOne/unqueryvet">unqueryvet</vendor>
5+
<vendor
6+
email="mirrexone@gmail.com"
7+
url="https://github.com/MirrexOne/unqueryvet"
8+
>unqueryvet</vendor>
69

7-
<description><![CDATA[
8-
<p>Detects SELECT * usage in SQL queries within Go code.</p>
10+
<description
11+
><![CDATA[
12+
<p>Go SQL Linter for detecting inconsistency queries in Go code.</p>
913
<ul>
10-
<li>Real-time SELECT * detection in SQL strings</li>
11-
<li>N+1 query detection</li>
14+
<li>Real-time SELECT * detection (including aliased wildcards and subqueries)</li>
15+
<li>Detection in string concatenation and format strings (fmt.Sprintf)</li>
16+
<li>N+1 query detection in loops</li>
1217
<li>SQL injection vulnerability scanning</li>
13-
<li>Query complexity analysis</li>
1418
<li>Quick fixes for replacing SELECT * with specific columns</li>
15-
<li>Support for popular SQL builders (sqlx, gorm, sqlc, goqu, etc.)</li>
19+
<li>Support for 12 SQL builders: Squirrel, GORM, SQLx, Ent, PGX, Bun, SQLBoiler, Jet, sqlc, goqu, rel, reform</li>
20+
<li>Custom rules via DSL configuration</li>
1621
</ul>
1722
]]></description>
1823

19-
<change-notes><![CDATA[
24+
<change-notes
25+
><![CDATA[
2026
<h3>1.0.0</h3>
2127
<ul>
2228
<li>Initial release</li>
23-
<li>SELECT * detection in raw SQL and query builders</li>
24-
<li>N+1 query detection</li>
25-
<li>SQL injection scanning</li>
29+
<li>SELECT * detection in raw SQL, string concatenation, format strings, and 12 SQL builders</li>
30+
<li>Aliased wildcards (t.*) and subquery detection</li>
31+
<li>N+1 query detection in loops</li>
32+
<li>SQL injection vulnerability scanning</li>
2633
<li>Quick fix suggestions</li>
34+
<li>Custom rules via DSL configuration</li>
2735
</ul>
2836
]]></change-notes>
2937

@@ -34,7 +42,8 @@
3442
<!-- External annotator for real-time analysis -->
3543
<externalAnnotator
3644
language="go"
37-
implementationClass="dev.unqueryvet.UnqueryvetAnnotator"/>
45+
implementationClass="dev.unqueryvet.UnqueryvetAnnotator"
46+
/>
3847

3948
<!-- Inspection for batch analysis -->
4049
<localInspection
@@ -44,24 +53,28 @@
4453
displayName="SELECT * usage"
4554
enabledByDefault="true"
4655
level="WARNING"
47-
implementationClass="dev.unqueryvet.SelectStarInspection"/>
56+
implementationClass="dev.unqueryvet.SelectStarInspection"
57+
/>
4858

4959
<!-- Tool window for results -->
5060
<toolWindow
5161
id="unqueryvet"
5262
anchor="bottom"
5363
factoryClass="dev.unqueryvet.UnqueryvetToolWindowFactory"
54-
icon="/icons/unqueryvet.svg"/>
64+
icon="/icons/unqueryvet.svg"
65+
/>
5566

5667
<!-- Settings -->
5768
<applicationConfigurable
5869
parentId="tools"
5970
instance="dev.unqueryvet.UnqueryvetConfigurable"
6071
id="dev.unqueryvet.settings"
61-
displayName="unqueryvet"/>
72+
displayName="unqueryvet"
73+
/>
6274

6375
<applicationService
64-
serviceImplementation="dev.unqueryvet.UnqueryvetSettings"/>
76+
serviceImplementation="dev.unqueryvet.UnqueryvetSettings"
77+
/>
6578

6679
<!-- Intention actions -->
6780
<intentionAction>
@@ -72,19 +85,27 @@
7285
</extensions>
7386

7487
<actions>
75-
<group id="UnqueryvetMenu" text="unqueryvet" description="unqueryvet actions">
76-
<add-to-group group-id="ToolsMenu" anchor="last"/>
88+
<group
89+
id="UnqueryvetMenu"
90+
text="unqueryvet"
91+
description="unqueryvet actions"
92+
>
93+
<add-to-group group-id="ToolsMenu" anchor="last" />
7794

78-
<action id="Unqueryvet.RunAnalysis"
95+
<action
96+
id="Unqueryvet.RunAnalysis"
7997
class="dev.unqueryvet.actions.RunAnalysisAction"
8098
text="Run Analysis"
81-
description="Run unqueryvet analysis on current file or project"
82-
icon="/icons/analyze.svg"/>
99+
description="Run SELECT *, N+1, and SQL injection analysis on current file or project"
100+
icon="/icons/analyze.svg"
101+
/>
83102

84-
<action id="Unqueryvet.FixAll"
103+
<action
104+
id="Unqueryvet.FixAll"
85105
class="dev.unqueryvet.actions.FixAllAction"
86106
text="Fix All SELECT *"
87-
description="Apply all available fixes"/>
107+
description="Apply all available SELECT * fixes in the current file"
108+
/>
88109
</group>
89110
</actions>
90111
</idea-plugin>

0 commit comments

Comments
 (0)