eric7/Documentation/Source/eric7.Plugins.CheckerPlugins.SyntaxChecker.tomlCheckSyntax.html

branch
eric7
changeset 8372
e0227a7c850e
child 8596
d64760b2da50
equal deleted inserted replaced
8371:d6062691d424 8372:e0227a7c850e
1 <!DOCTYPE html>
2 <html><head>
3 <title>eric7.Plugins.CheckerPlugins.SyntaxChecker.tomlCheckSyntax</title>
4 <meta charset="UTF-8">
5 <style>
6 body {
7 background: #EDECE6;
8 margin: 0em 1em 10em 1em;
9 color: black;
10 }
11
12 h1 { color: white; background: #85774A; }
13 h2 { color: white; background: #85774A; }
14 h3 { color: white; background: #9D936E; }
15 h4 { color: white; background: #9D936E; }
16
17 a { color: #BA6D36; }
18
19 </style>
20 </head>
21 <body>
22 <a NAME="top" ID="top"></a>
23 <h1>eric7.Plugins.CheckerPlugins.SyntaxChecker.tomlCheckSyntax</h1>
24
25 <p>
26 Module implementing the syntax check for TOML.
27 </p>
28 <h3>Global Attributes</h3>
29
30 <table>
31 <tr><td>None</td></tr>
32 </table>
33 <h3>Classes</h3>
34
35 <table>
36 <tr><td>None</td></tr>
37 </table>
38 <h3>Functions</h3>
39
40 <table>
41
42 <tr>
43 <td><a href="#__tomlSyntaxCheck">__tomlSyntaxCheck</a></td>
44 <td>Function to check a TOML source file for syntax errors.</td>
45 </tr>
46 <tr>
47 <td><a href="#initBatchService">initBatchService</a></td>
48 <td>Initialize the batch service and return the entry point.</td>
49 </tr>
50 <tr>
51 <td><a href="#initService">initService</a></td>
52 <td>Initialize the service and return the entry point.</td>
53 </tr>
54 <tr>
55 <td><a href="#normalizeCode">normalizeCode</a></td>
56 <td>Function to normalize the given code.</td>
57 </tr>
58 <tr>
59 <td><a href="#tomlSyntaxBatchCheck">tomlSyntaxBatchCheck</a></td>
60 <td>Module function to check syntax for a batch of files.</td>
61 </tr>
62 <tr>
63 <td><a href="#tomlSyntaxCheck">tomlSyntaxCheck</a></td>
64 <td>Function to check a TOML source file for syntax errors.</td>
65 </tr>
66 <tr>
67 <td><a href="#worker">worker</a></td>
68 <td>Module function acting as the parallel worker for the syntax check.</td>
69 </tr>
70 </table>
71 <hr />
72 <hr />
73 <a NAME="__tomlSyntaxCheck" ID="__tomlSyntaxCheck"></a>
74 <h2>__tomlSyntaxCheck</h2>
75 <b>__tomlSyntaxCheck</b>(<i>file, codestring</i>)
76
77 <p>
78 Function to check a TOML source file for syntax errors.
79 </p>
80 <dl>
81
82 <dt><i>file</i> (str)</dt>
83 <dd>
84 source filename
85 </dd>
86 <dt><i>codestring</i> (str)</dt>
87 <dd>
88 string containing the code to check
89 </dd>
90 </dl>
91 <dl>
92 <dt>Return:</dt>
93 <dd>
94 dictionary with the keys 'error' and 'warnings' which
95 hold a list containing details about the error/ warnings
96 (file name, line number, column, codestring (only at syntax
97 errors), the message, a list with arguments for the message)
98 </dd>
99 </dl>
100 <dl>
101 <dt>Return Type:</dt>
102 <dd>
103 dict
104 </dd>
105 </dl>
106 <div align="right"><a href="#top">Up</a></div>
107 <hr />
108 <hr />
109 <a NAME="initBatchService" ID="initBatchService"></a>
110 <h2>initBatchService</h2>
111 <b>initBatchService</b>(<i></i>)
112
113 <p>
114 Initialize the batch service and return the entry point.
115 </p>
116 <dl>
117 <dt>Return:</dt>
118 <dd>
119 the entry point for the background client
120 </dd>
121 </dl>
122 <dl>
123 <dt>Return Type:</dt>
124 <dd>
125 func
126 </dd>
127 </dl>
128 <div align="right"><a href="#top">Up</a></div>
129 <hr />
130 <hr />
131 <a NAME="initService" ID="initService"></a>
132 <h2>initService</h2>
133 <b>initService</b>(<i></i>)
134
135 <p>
136 Initialize the service and return the entry point.
137 </p>
138 <dl>
139 <dt>Return:</dt>
140 <dd>
141 the entry point for the background client
142 </dd>
143 </dl>
144 <dl>
145 <dt>Return Type:</dt>
146 <dd>
147 func
148 </dd>
149 </dl>
150 <div align="right"><a href="#top">Up</a></div>
151 <hr />
152 <hr />
153 <a NAME="normalizeCode" ID="normalizeCode"></a>
154 <h2>normalizeCode</h2>
155 <b>normalizeCode</b>(<i>codestring</i>)
156
157 <p>
158 Function to normalize the given code.
159 </p>
160 <dl>
161
162 <dt><i>codestring</i> (str)</dt>
163 <dd>
164 code to be normalized
165 </dd>
166 </dl>
167 <dl>
168 <dt>Return:</dt>
169 <dd>
170 normalized code
171 </dd>
172 </dl>
173 <dl>
174 <dt>Return Type:</dt>
175 <dd>
176 str
177 </dd>
178 </dl>
179 <div align="right"><a href="#top">Up</a></div>
180 <hr />
181 <hr />
182 <a NAME="tomlSyntaxBatchCheck" ID="tomlSyntaxBatchCheck"></a>
183 <h2>tomlSyntaxBatchCheck</h2>
184 <b>tomlSyntaxBatchCheck</b>(<i>argumentsList, send, fx, cancelled, maxProcesses=0</i>)
185
186 <p>
187 Module function to check syntax for a batch of files.
188 </p>
189 <dl>
190
191 <dt><i>argumentsList</i> (list)</dt>
192 <dd>
193 list of arguments tuples as given for tomlSyntaxCheck
194 </dd>
195 <dt><i>send</i> (func)</dt>
196 <dd>
197 reference to send function
198 </dd>
199 <dt><i>fx</i> (str)</dt>
200 <dd>
201 registered service name
202 </dd>
203 <dt><i>cancelled</i> (func)</dt>
204 <dd>
205 reference to function checking for a cancellation
206 </dd>
207 <dt><i>maxProcesses</i> (int)</dt>
208 <dd>
209 number of processes to be used
210 </dd>
211 </dl>
212 <div align="right"><a href="#top">Up</a></div>
213 <hr />
214 <hr />
215 <a NAME="tomlSyntaxCheck" ID="tomlSyntaxCheck"></a>
216 <h2>tomlSyntaxCheck</h2>
217 <b>tomlSyntaxCheck</b>(<i>file, codestring</i>)
218
219 <p>
220 Function to check a TOML source file for syntax errors.
221 </p>
222 <dl>
223
224 <dt><i>file</i> (str)</dt>
225 <dd>
226 source filename
227 </dd>
228 <dt><i>codestring</i> (str)</dt>
229 <dd>
230 string containing the code to check
231 </dd>
232 </dl>
233 <dl>
234 <dt>Return:</dt>
235 <dd>
236 dictionary with the keys 'error' and 'warnings' which
237 hold a list containing details about the error/ warnings
238 (file name, line number, column, codestring (only at syntax
239 errors), the message, a list with arguments for the message)
240 </dd>
241 </dl>
242 <dl>
243 <dt>Return Type:</dt>
244 <dd>
245 dict
246 </dd>
247 </dl>
248 <div align="right"><a href="#top">Up</a></div>
249 <hr />
250 <hr />
251 <a NAME="worker" ID="worker"></a>
252 <h2>worker</h2>
253 <b>worker</b>(<i>inputQueue, outputQueue</i>)
254
255 <p>
256 Module function acting as the parallel worker for the syntax check.
257 </p>
258 <dl>
259
260 <dt><i>inputQueue</i> (multiprocessing.Queue)</dt>
261 <dd>
262 input queue
263 </dd>
264 <dt><i>outputQueue</i> (multiprocessing.Queue)</dt>
265 <dd>
266 output queue
267 </dd>
268 </dl>
269 <div align="right"><a href="#top">Up</a></div>
270 <hr />
271 </body></html>

eric ide

mercurial