Mon, 24 Feb 2025 15:43:49 +0100
Adjusted the code to the modified issue codes.
10052 | 1 | # -*- coding: utf-8 -*- |
2 | ||
11090
f5f5f5803935
Updated copyright for 2025.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
10439
diff
changeset
|
3 | # Copyright (c) 2023 - 2025 Detlev Offenbach <detlev@die-offenbachs.de> |
10052 | 4 | # |
5 | ||
6 | """ | |
7 | Module implementing message translations for the code style plugin (unused part). | |
8 | """ | |
9 | ||
10 | from PyQt6.QtCore import QCoreApplication | |
11 | ||
12 | _unusedMessages = { | |
10053
9914b7b4b11c
Code Style Checker
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
10052
diff
changeset
|
13 | ## Unused Arguments |
11147
dee6e106b4d3
Modified the code style checker such, that the issue category and issue number are separated by a '-' to make up the issue code (e.g E-901).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
11090
diff
changeset
|
14 | "U-100": QCoreApplication.translate("UnusedChecker", "Unused argument '{0}'"), |
dee6e106b4d3
Modified the code style checker such, that the issue category and issue number are separated by a '-' to make up the issue code (e.g E-901).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
11090
diff
changeset
|
15 | "U-101": QCoreApplication.translate("UnusedChecker", "Unused argument '{0}'"), |
10053
9914b7b4b11c
Code Style Checker
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
10052
diff
changeset
|
16 | ## Unused Globals |
11148
15e30f0c76a8
Adjusted the code to the modified issue codes.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
11147
diff
changeset
|
17 | "U-200": QCoreApplication.translate( |
15e30f0c76a8
Adjusted the code to the modified issue codes.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
11147
diff
changeset
|
18 | "UnusedChecker", "Unused global variable '{0}'" |
15e30f0c76a8
Adjusted the code to the modified issue codes.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
11147
diff
changeset
|
19 | ), |
10052 | 20 | } |
21 | ||
22 | _unusedMessagesSampleArgs = { | |
10053
9914b7b4b11c
Code Style Checker
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
10052
diff
changeset
|
23 | ## Unused Arguments |
11147
dee6e106b4d3
Modified the code style checker such, that the issue category and issue number are separated by a '-' to make up the issue code (e.g E-901).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
11090
diff
changeset
|
24 | "U-100": ["foo_arg"], |
dee6e106b4d3
Modified the code style checker such, that the issue category and issue number are separated by a '-' to make up the issue code (e.g E-901).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
11090
diff
changeset
|
25 | "U-101": ["_bar_arg"], |
10053
9914b7b4b11c
Code Style Checker
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
10052
diff
changeset
|
26 | ## Unused Globals |
11147
dee6e106b4d3
Modified the code style checker such, that the issue category and issue number are separated by a '-' to make up the issue code (e.g E-901).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
11090
diff
changeset
|
27 | "U-200": ["FOO"], |
10052 | 28 | } |