From 1e376f0e2df318992a09f43e97193e383e1c16cf Mon Sep 17 00:00:00 2001 From: Mikhail Golubev Date: Tue, 12 Jan 2016 15:59:44 +0300 Subject: [PATCH] Fix broken test of Pep8NamingInspection - typo in inspection message --- .../jetbrains/python/inspections/PyPep8NamingInspection.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/python/src/com/jetbrains/python/inspections/PyPep8NamingInspection.java b/python/src/com/jetbrains/python/inspections/PyPep8NamingInspection.java index 7d2e4feebfa0..2c05267f846a 100644 --- a/python/src/com/jetbrains/python/inspections/PyPep8NamingInspection.java +++ b/python/src/com/jetbrains/python/inspections/PyPep8NamingInspection.java @@ -67,13 +67,14 @@ public class PyPep8NamingInspection extends PyInspection { private static final Pattern UPPERCASE_REGEX = Pattern.compile("[_\\p{javaUpperCase}][_\\p{javaUpperCase}0-9]*"); private static final Pattern MIXEDCASE_REGEX = Pattern.compile("_?_?[\\p{javaUpperCase}][\\p{javaLowerCase}\\p{javaUpperCase}0-9]*"); private static final String INSPECTION_SHORT_NAME = "PyPep8NamingInspection"; + // See error codes of the tool "pep8-naming" private static final Map ERROR_CODES_DESCRIPTION = ImmutableMap.builder() .put("N801", "Class names should use CamelCase convention") .put("N802", "Function name should be lowercase") .put("N803", "Argument name should be lowercase") .put("N806", "Variable in function should be lowercase") .put("N811", "Constant variable imported as non constant") - .put("N812", "Lowercase variable imported as non lowercase)") + .put("N812", "Lowercase variable imported as non lowercase") .put("N813", "CamelCase variable imported as lowercase") .put("N814", "CamelCase variable imported as constant") .build();