File: zadactl.xml

package info (click to toggle)
adacontrol 1.16r11-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 9,008 kB
  • ctags: 709
  • sloc: ada: 55,246; python: 419; xml: 343; sh: 229; makefile: 77; sed: 30
file content (368 lines) | stat: -rw-r--r-- 12,236 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
<?xml version="1.0" ?>

<!--  This file adds support for AdaControl -->
<AdaControl>

 <!--  Rules syntax -->
 <Language>
  <Name>AdaControl</Name>
  <Body_Suffix>.aru</Body_Suffix> <!-- Without this, GPS will complain “Warning, no source files for adacontrol” -->
  <Extension>.aru</Extension>
  <Keywords>^(check|clear|count|go|help|inhibit|message|quit|search|source|set)\b</Keywords>

  <Context>
   <New_Line_Comment_Start>--|#</New_Line_Comment_Start>
   <String_Delimiter>&quot;</String_Delimiter>
   <Can_Indent>False</Can_Indent>
   <Syntax_Highlighting>True</Syntax_Highlighting>
   <Case_Sensitive>False</Case_Sensitive>
  </Context>

  <Categories>
   <Category>
    <Name>procedure</Name>
    <Pattern>^[ \t]*[ \t]*?(check|search|count)[ \t]+(\w+)</Pattern>
    <Index>2</Index>
   </Category>
   <Category>
    <Name>procedure</Name>
    <Pattern>^[ \t]*((\w+|".*"):)[ \t]*?(check|search|count)[ \t]+(\w+)</Pattern>
    <Index>2</Index>
   </Category>
  </Categories>

 </Language>

 <!--  Preferences  -->
 <preference name="force-save"
             page="AdaControl"
             label="Auto save files"
             default="False"
             type="boolean"
             tip="Save all files without asking before each run of AdaControl"/>

 <preference name="delete-trees"
             page="AdaControl"
             label="Delete trees"
             default="False"
             type="boolean"
             tip="Delete all tree files after each run of AdaControl"/>

 <preference name="delete-ali"
             page="AdaControl"
             label="Delete .ali files with tree files"
             default="False"
             type="boolean"
             tip="Delete also .ali files whenever the tree files are deleted"/>

 <preference name="separate-rules"
             page="AdaControl"
             label="Use separate categories"
             default="False"
             type="boolean"
             tip="Make a category for each rule in the locations window"/>

 <preference name="display-run"
            page="AdaControl"
            label="Display AdaControl run"
            default="False"
               type="boolean"
               tip="Displays AdaControl command line and results in Messages window"/>

 <preference name="button-target"
               page="AdaControl"
               label="Buttons operate on"
               default="1"
               type="choices" >
                  <choice>Current File</choice>
                  <choice>Root Project</choice>
                  <choice>Units from List</choice>
 </preference>

 <preference name="help-format"
             page="AdaControl"
             label="Help on rule"
             default="1"
             type="choices" >
                <choice>Pop-up</choice>
                <choice>User Guide</choice>
 </preference>

 <preference name="max-errors"
             page="AdaControl"
             label="Max allowed error messages"
             tip="Maximum number of error messages allowed before cancelling run (0=no limit)"
             default="0"
             minimum="0"
             maximum="10000"
             type="integer" />

 <preference name="max-messages"
             page="AdaControl"
             label="Max allowed messages (all kinds)"
             tip="Maximum number of messages allowed before cancelling run (0=no limit)"
             default="0"
             minimum="0"
             maximum="10000"
             type="integer" />


 <!--  Tool  -->
 <tool name="AdaControl" package="Ide">
  <language>Ada</language>

  <switches lines="4" columns="2" separator="&#32;">
   <title line="1" column="1" column-span="2"> Files </title>
   <field line="1" column="1"
     label="Rules file" switch="-f" separator="&#32;" as-file="true" />
   <field line="1" column="1"
     label="Units file" switch="-@" separator="&#32;" as-file="true" />
   <field line="1" column="1"
     label=".adp project file" switch="-p" separator="&#32;" as-file="true" />

   <title line="1" column="2" column-span="0"></title>

   <title line="2" column="1"> Processing </title>
   <check line="2" column="1" label="Recursive mode" switch="-r"
    tip="Process recursively all units the given units depend on"/>
   <check line="2" column="1" label="Ignore local deactivation" switch="-i"
    tip="Ignore local deactivation tags in source file"/>
   <check line="2" column="1" label="Process specs only" switch="-s"/>
   <check line="2" column="1" label="Compilation unit mode" switch="-u"
    tip="Treat all source names as compilation units even if they look like file names"/>

   <title line="2" column="2"> Debug </title>
   <check line="2" column="2" label="Debug messages" switch="-d"
    tip="Displays debug information (not useful for normal user)"/>
   <check line="2" column="2" label="Halt on error" switch="-x"
    tip="Terminate AdaControl if a fatal error is encountered"/>

   <title line="3" column="1" column-span="2"> Output </title>
   <check line="3" column="1" label="Display only errors" switch="-E"
    tip="Print only errors (Check)"/>
   <check line="3" column="1" label="Warnings as errors" switch="-e"
    tip="Treat warnings (Search) as errors (Check)"/>
   <combo line="3" column="1" label="Statistics" switch="-S" separator="&#32;" noswitch="0"
    tip="Define the statistics displayed in the Message window at the end or the run">
    <combo-entry label="None"                      value="0" />
    <combo-entry label="Errors and warnings count" value="1" />
    <combo-entry label="Report untriggered rules"  value="2" />
    <combo-entry label="Full rules statistics"     value="3" />
   </combo>
   <radio line="3" column="1">
     <radio-entry label="Send results to GPS"
        tip="Send the output to the locations window in GPS"/>
     <radio-entry label="Send results to File"
        tip="Send the output to a file (file name below is required)"
        switch="-NOGPS" />
     <radio-entry label="Send results to File and GPS"
        tip="Send the output to a file and load it into locations window"
        switch="-GPS" />
   </radio>
   <field line="3" column="1"
     label="File name" switch="-o" separator="&#32;" as-file="true" />
   <combo line="3" column="1" label="File format" switch="-F" noswitch="0"
    tip="Define the output format when destination is file">
    <combo-entry label="Gnat, short file names"   value="gnat_short" />
    <combo-entry label="Gnat, long file names"    value="gnat" />
    <combo-entry label="CSV, short file names"    value="csv_short" />
    <combo-entry label="CSV, long file names"     value="csv" />
    <combo-entry label="CSVX, short file names"   value="csvx_short" />
    <combo-entry label="CSVX, long file names"    value="csvx" />
    <combo-entry label="Source, short file names" value="source_short" />
    <combo-entry label="Source, long file names"  value="source" />
   </combo>

   <title line="3" column="2" column-span="0"></title>

   <title line="4" column="1" column-span="2">ASIS</title>
   <field line="4" column="1"
     label="ASIS options" switch="--" separator="&#32;"/>

   <title line="4" column="2" column-span="0"></title>

</switches>
 </tool>


 <!--  Actions  -->
<action name="Check_File_File">
  <filter_and>
    <filter language="ada" />
    <filter shell_cmd="adactl.rules_file_defined()" shell_lang="python" />
  </filter_and>

  <shell lang="Python" show-command="false" output="">adactl.run("file", "current")</shell>
</action>

<action name="Check_Project_File">
  <filter shell_cmd="adactl.rules_file_defined()" shell_lang="python" />
  <shell lang="Python" show-command="false" output="">adactl.run("file", "project")</shell>
</action>

<action name="Check_Units_File">
  <filter_and>
    <filter shell_cmd="adactl.units_file_defined()" shell_lang="python" />
    <filter shell_cmd="adactl.rules_file_defined()" shell_lang="python" />
  </filter_and>
  <shell lang="Python" show-command="false" output="">adactl.run("file", "list")</shell>
</action>

<action name="Check_Unknown_File">
   <shell lang="Python" show-command="false" output="">adactl.run("file", "")</shell>
</action>

<action name="Check_File_Ask">
  <filter language="ada" />
  <shell lang="Python" show-command="false" output="">adactl.run("ask", "current")</shell>
</action>

<action name="Check_Project_Ask">
  <shell lang="Python" show-command="false" output="">adactl.run("ask", "project")</shell>
</action>

<action name="Check_Units_Ask">
  <filter shell_cmd="adactl.units_file_defined()" shell_lang="python" />
  <shell lang="Python" show-command="false" output="">adactl.run("ask", "list")</shell>
</action>

<action name="Check_Unknown_Ask">
  <shell lang="Python" show-command="false" output="">adactl.run("ask", "")</shell>
</action>

<action name="Check_AdaCtl">
  <filter language="AdaControl" />
  <shell lang="Python" show-command="false" output="">adactl.run("check", "")</shell>
</action>

<action name="Get_Units" show-command="false" output="none">
  <filter shell_cmd="adactl.units_file_defined()" shell_lang="python" />
  <shell lang="python">adactl.get_units_file()</shell>
  <shell> File %1</shell>
  <shell> EditorBuffer.get %1</shell>
  <shell> EditorBuffer.views %1</shell>
  <shell> MDI.get_by_child %1</shell>
  <shell> MDIWindow.raise_window %1</shell>
 </action>

<action name="Get_Rules" show-command="false" output="none">
  <filter shell_cmd="adactl.rules_file_defined()" shell_lang="python" />
  <shell lang="python">adactl.get_file("-f")</shell>
  <shell> File %1</shell>
  <shell> EditorBuffer.get %1</shell>
  <shell> EditorBuffer.views %1</shell>
  <shell> MDI.get_by_child %1</shell>
  <shell> MDIWindow.raise_window %1</shell>
</action>

<action name="Del_Tree">
  <shell lang="python" show-command="false" output="none">adactl.del_tree(confirm=True)</shell>
</action>

<action name="Create_adp">
  <shell lang="python" show-command="false" output="">adactl.create_adp()</shell>
</action>

<action name="Load_Result">
  <shell lang="python" show-command="false" output="none">adactl.load_result()</shell>
</action>

 <action name="Create_units">
  <shell lang="python" show-command="false" output="">adactl.create_units()</shell>
 </action>

<action name="About">
  <shell lang="python" show-command="false" output="none">adactl.about()</shell>
</action>

<!--  Submenus  -->
<submenu before="About">
  <title>/Help/AdaControl</title>

  <menu action="About">
     <title>About</title>
  </menu>

</submenu>

<submenu before="Help">
  <title>/AdaControl</title>

  <menu action="Check_File_File">
     <title>Control Current File (rules file)</title>
  </menu>

  <menu action="Check_Project_File">
     <title>Control Root Project (rules file)</title>
  </menu>

  <menu action="Check_Units_File">
     <title>Control Units from List (rules file)</title>
  </menu>

  <menu />

  <menu action="Check_File_Ask">
     <title>Control Current File (interactive)</title>
  </menu>

  <menu action="Check_Project_Ask">
     <title>Control Root Project (interactive)</title>
  </menu>

  <menu action="Check_Units_Ask">
     <title>Control Units from List (interactive)</title>
  </menu>

  <menu />

  <menu action="Check_AdaCtl">
     <title>Check Rules File Syntax</title>
  </menu>

  <menu action="Get_Rules">
     <title>Open rules file</title>
  </menu>

  <menu action="Get_Units">
     <title>Open units file</title>
  </menu>

  <menu action="Load_Result">
     <title>Load results file</title>
  </menu>

  <menu />

  <menu action="Create_units">
     <title>Create units file</title>
  </menu>

  <menu action="Create_adp">
     <title>Create .adp project</title>
  </menu>

  <menu action="Del_Tree">
     <title>Delete Tree Files</title>
  </menu>

</submenu>

<!--  Documentation  -->

<documentation_file>
  <name>/usr/share/doc/adacontrol/adacontrol_ug.html</name>
  <descr>AdaControl User Guide</descr>
  <category>AdaControl</category>
  <menu before="About">/Help/AdaControl/User Guide</menu>
</documentation_file>

<documentation_file>
  <name>/usr/share/doc/adacontrol/adacontrol_pm.html</name>
  <descr>AdaControl Programmer Manual</descr>
  <category>AdaControl</category>
  <menu before="About">/Help/AdaControl/Programmer Manual</menu>
</documentation_file>

</AdaControl>