--- a/src/eric7/Plugins/CheckerPlugins/CodeStyleChecker/PathLib/PathlibChecker.py Sun Feb 23 12:42:47 2025 +0100 +++ b/src/eric7/Plugins/CheckerPlugins/CodeStyleChecker/PathLib/PathlibChecker.py Mon Feb 24 15:11:18 2025 +0100 @@ -45,71 +45,71 @@ Codes = [ ## Replacements for the os module functions - "P101", - "P102", - "P103", - "P104", - "P105", - "P106", - "P107", - "P108", - "P109", - "P110", - "P111", - "P112", - "P113", - "P114", + "P-101", + "P-102", + "P-103", + "P-104", + "P-105", + "P-106", + "P-107", + "P-108", + "P-109", + "P-110", + "P-111", + "P-112", + "P-113", + "P-114", ## Replacements for the os.path module functions - "P201", - "P202", - "P203", - "P204", - "P205", - "P206", - "P207", - "P208", - "P209", - "P210", - "P211", - "P212", - "P213", + "P-201", + "P-202", + "P-203", + "P-204", + "P-205", + "P-206", + "P-207", + "P-208", + "P-209", + "P-210", + "P-211", + "P-212", + "P-213", ## Replacements for some Python standard library functions - "P301", + "P-301", ## Replacements for py.path.local - "P401", + "P-401", ] # map functions to be replaced to error codes Function2Code = { - "os.chmod": "P101", - "os.mkdir": "P102", - "os.makedirs": "P103", - "os.rename": "P104", - "os.replace": "P105", - "os.rmdir": "P106", - "os.remove": "P107", - "os.unlink": "P108", - "os.getcwd": "P109", - "os.readlink": "P110", - "os.stat": "P111", - "os.listdir": "P112", - "os.link": "P113", - "os.symlink": "P114", - "os.path.abspath": "P201", - "os.path.exists": "P202", - "os.path.expanduser": "P203", - "os.path.isdir": "P204", - "os.path.isfile": "P205", - "os.path.islink": "P206", - "os.path.isabs": "P207", - "os.path.join": "P208", - "os.path.basename": "P209", - "os.path.dirname": "P210", - "os.path.samefile": "P211", - "os.path.splitext": "P212", - "os.path.relpath": "P213", - "open": "P301", - "py.path.local": "P401", + "os.chmod": "P-101", + "os.mkdir": "P-102", + "os.makedirs": "P-103", + "os.rename": "P-104", + "os.replace": "P-105", + "os.rmdir": "P-106", + "os.remove": "P-107", + "os.unlink": "P-108", + "os.getcwd": "P-109", + "os.readlink": "P-110", + "os.stat": "P-111", + "os.listdir": "P-112", + "os.link": "P-113", + "os.symlink": "P-114", + "os.path.abspath": "P-201", + "os.path.exists": "P-202", + "os.path.expanduser": "P-203", + "os.path.isdir": "P-204", + "os.path.isfile": "P-205", + "os.path.islink": "P-206", + "os.path.isabs": "P-207", + "os.path.join": "P-208", + "os.path.basename": "P-209", + "os.path.dirname": "P-210", + "os.path.samefile": "P-211", + "os.path.splitext": "P-212", + "os.path.relpath": "P-213", + "open": "P-301", + "py.path.local": "P-401", } def __init__(self, source, filename, tree, selected, ignored, expected, repeat):