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

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

eric ide

mercurial