314 ), |
314 ), |
315 "M506": QCoreApplication.translate( |
315 "M506": QCoreApplication.translate( |
316 "MiscellaneousChecker", |
316 "MiscellaneousChecker", |
317 "Do not use mutable data structures for argument defaults. They are created" |
317 "Do not use mutable data structures for argument defaults. They are created" |
318 " during function definition time. All calls to the function reuse this one" |
318 " during function definition time. All calls to the function reuse this one" |
319 " instance of that data structure, persisting changes between them." |
319 " instance of that data structure, persisting changes between them.", |
320 ), |
320 ), |
321 "M507": QCoreApplication.translate( |
321 "M507": QCoreApplication.translate( |
322 "MiscellaneousChecker", |
322 "MiscellaneousChecker", |
323 "loop control variable {0} not used within the loop body -" |
323 "loop control variable {0} not used within the loop body -" |
324 " start the name with an underscore", |
324 " start the name with an underscore", |
327 "MiscellaneousChecker", |
327 "MiscellaneousChecker", |
328 "Do not perform function calls in argument defaults. The call is performed" |
328 "Do not perform function calls in argument defaults. The call is performed" |
329 " only once at function definition time. All calls to your function will reuse" |
329 " only once at function definition time. All calls to your function will reuse" |
330 " the result of that definition-time function call. If this is intended," |
330 " the result of that definition-time function call. If this is intended," |
331 " assign the function call to a module-level variable and use that variable as" |
331 " assign the function call to a module-level variable and use that variable as" |
332 " a default value." |
332 " a default value.", |
333 ), |
333 ), |
334 "M509": QCoreApplication.translate( |
334 "M509": QCoreApplication.translate( |
335 "MiscellaneousChecker", |
335 "MiscellaneousChecker", |
336 "do not call getattr with a constant attribute value", |
336 "do not call getattr with a constant attribute value", |
337 ), |
337 ), |