src/eric7/Plugins/CheckerPlugins/CodeStyleChecker/Unused/translations.py

Mon, 24 Feb 2025 15:11:18 +0100

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Mon, 24 Feb 2025 15:11:18 +0100
branch
eric7
changeset 11147
dee6e106b4d3
parent 11090
f5f5f5803935
child 11148
15e30f0c76a8
permissions
-rw-r--r--

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).

# -*- coding: utf-8 -*-

# Copyright (c) 2023 - 2025 Detlev Offenbach <detlev@die-offenbachs.de>
#

"""
Module implementing message translations for the code style plugin (unused part).
"""

from PyQt6.QtCore import QCoreApplication

_unusedMessages = {
    ## Unused Arguments
    "U-100": QCoreApplication.translate("UnusedChecker", "Unused argument '{0}'"),
    "U-101": QCoreApplication.translate("UnusedChecker", "Unused argument '{0}'"),
    ## Unused Globals
    "U-200": QCoreApplication.translate("UnusedChecker", "Unused global variable '{0}'"),
}

_unusedMessagesSampleArgs = {
    ## Unused Arguments
    "U-100": ["foo_arg"],
    "U-101": ["_bar_arg"],
    ## Unused Globals
    "U-200": ["FOO"],
}

eric ide

mercurial