質問編集履歴

1

設定を追記したところ新たな注意が出たので追記しました

2018/07/24 12:52

投稿

Hayao0819
Hayao0819

スコア34

test CHANGED
File without changes
test CHANGED
@@ -4,7 +4,7 @@
4
4
 
5
5
  Python3.6.5でGUIを扱う勉強をしています
6
6
 
7
- VisualStudioCodeを使用しているのですが、例として載っていたコードをコピペしただけなのにVisualStudioCodeで警告が出ます
7
+ VisualStudioCodeを使用しているのですが、例として載っていたコードをコピペしただけなのにVisualStudioCodeでエラーが出ます
8
8
 
9
9
  実行してもエラーは出ません
10
10
 
@@ -113,3 +113,231 @@
113
113
  Python 3.6.5
114
114
 
115
115
  VisualStudioCode 1.24.1
116
+
117
+
118
+
119
+ ###追記
120
+
121
+ 教えてもらい以下の設定を追記したところ新たな注意(?)がたくさん出たので解決方法を教えてください
122
+
123
+ よろしくおねがいします
124
+
125
+ wxのほうは「エラー」としてカウントされていましたが、今回は「情報」としてカウントされています
126
+
127
+
128
+
129
+ ```VisualStudioCode User Settings
130
+
131
+ "python.linting.pylintArgs": ["--extension-pkg-whitelist=wx"]
132
+
133
+ ```
134
+
135
+
136
+
137
+ 以下、注意内容
138
+
139
+ ```
140
+
141
+ {
142
+
143
+ "resource": "/C:/Users/PC_User/Desktop/Python_GUI/Python_GUI_1.py",
144
+
145
+ "owner": "python",
146
+
147
+ "code": "C0103",
148
+
149
+ "severity": 2,
150
+
151
+ "message": "C0103:Module name \"Python_GUI_1\" doesn't conform to snake_case naming style",
152
+
153
+ "source": "pylint",
154
+
155
+ "startLineNumber": 1,
156
+
157
+ "startColumn": 1,
158
+
159
+ "endLineNumber": 1,
160
+
161
+ "endColumn": 1
162
+
163
+ }
164
+
165
+ ```
166
+
167
+
168
+
169
+ ```
170
+
171
+ {
172
+
173
+ "resource": "/C:/Users/PC_User/Desktop/Python_GUI/Python_GUI_1.py",
174
+
175
+ "owner": "python",
176
+
177
+ "code": "C0111",
178
+
179
+ "severity": 2,
180
+
181
+ "message": "C0111:Missing module docstring",
182
+
183
+ "source": "pylint",
184
+
185
+ "startLineNumber": 1,
186
+
187
+ "startColumn": 1,
188
+
189
+ "endLineNumber": 1,
190
+
191
+ "endColumn": 1
192
+
193
+ }
194
+
195
+ ```
196
+
197
+
198
+
199
+ ```
200
+
201
+ {
202
+
203
+ "resource": "/C:/Users/PC_User/Desktop/Python_GUI/Python_GUI_1.py",
204
+
205
+ "owner": "python",
206
+
207
+ "code": "C0103",
208
+
209
+ "severity": 2,
210
+
211
+ "message": "C0103:Constant name \"application\" doesn't conform to UPPER_CASE naming style",
212
+
213
+ "source": "pylint",
214
+
215
+ "startLineNumber": 3,
216
+
217
+ "startColumn": 1,
218
+
219
+ "endLineNumber": 3,
220
+
221
+ "endColumn": 1
222
+
223
+ }
224
+
225
+ ```
226
+
227
+
228
+
229
+ ```
230
+
231
+ {
232
+
233
+ "resource": "/C:/Users/PC_User/Desktop/Python_GUI/Python_GUI_1.py",
234
+
235
+ "owner": "python",
236
+
237
+ "code": "C0326",
238
+
239
+ "severity": 2,
240
+
241
+ "message": "C0326:No space allowed before comma",
242
+
243
+ "source": "pylint",
244
+
245
+ "startLineNumber": 5,
246
+
247
+ "startColumn": 1,
248
+
249
+ "endLineNumber": 5,
250
+
251
+ "endColumn": 1
252
+
253
+ }
254
+
255
+ ```
256
+
257
+
258
+
259
+ ```
260
+
261
+ {
262
+
263
+ "resource": "/C:/Users/PC_User/Desktop/Python_GUI/Python_GUI_1.py",
264
+
265
+ "owner": "python",
266
+
267
+ "code": "C0326",
268
+
269
+ "severity": 2,
270
+
271
+ "message": "C0326:Exactly one space required after comma",
272
+
273
+ "source": "pylint",
274
+
275
+ "startLineNumber": 5,
276
+
277
+ "startColumn": 1,
278
+
279
+ "endLineNumber": 5,
280
+
281
+ "endColumn": 1
282
+
283
+ }
284
+
285
+ ```
286
+
287
+
288
+
289
+ ```
290
+
291
+ {
292
+
293
+ "resource": "/C:/Users/PC_User/Desktop/Python_GUI/Python_GUI_1.py",
294
+
295
+ "owner": "python",
296
+
297
+ "code": "C0103",
298
+
299
+ "severity": 2,
300
+
301
+ "message": "C0103:Constant name \"frame\" doesn't conform to UPPER_CASE naming style",
302
+
303
+ "source": "pylint",
304
+
305
+ "startLineNumber": 5,
306
+
307
+ "startColumn": 1,
308
+
309
+ "endLineNumber": 5,
310
+
311
+ "endColumn": 1
312
+
313
+ }
314
+
315
+ ```
316
+
317
+ ```
318
+
319
+ {
320
+
321
+ "resource": "/C:/Users/PC_User/Desktop/Python_GUI/Python_GUI_1.py",
322
+
323
+ "owner": "python",
324
+
325
+ "code": "C0304",
326
+
327
+ "severity": 2,
328
+
329
+ "message": "C0304:Final newline missing",
330
+
331
+ "source": "pylint",
332
+
333
+ "startLineNumber": 8,
334
+
335
+ "startColumn": 1,
336
+
337
+ "endLineNumber": 8,
338
+
339
+ "endColumn": 1
340
+
341
+ }
342
+
343
+ ```