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

Mon, 24 Feb 2025 15:43:49 +0100

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

Adjusted the code to the modified issue codes.

# -*- 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