summaryrefslogtreecommitdiff
path: root/tests/functional/n/name
diff options
context:
space:
mode:
authorMatus Valo <matusvalo@users.noreply.github.com>2021-05-27 20:33:43 +0200
committerGitHub <noreply@github.com>2021-05-27 20:33:43 +0200
commit6d449f94525f47e7d3e8a72f326ff5c41e89337f (patch)
treeca87f8eced9e989930c230fb2e4b7a01a9a4e3a9 /tests/functional/n/name
parent5805a7398f5762eda8851aee434599bf440a2952 (diff)
downloadpylint-git-6d449f94525f47e7d3e8a72f326ff5c41e89337f.tar.gz
Added deprecated decorators check (#4513)
* Added deprecated decorators check * Updated Changelog and whatsnew Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
Diffstat (limited to 'tests/functional/n/name')
-rw-r--r--tests/functional/n/name/name_styles.py3
-rw-r--r--tests/functional/n/name/name_styles.txt6
2 files changed, 5 insertions, 4 deletions
diff --git a/tests/functional/n/name/name_styles.py b/tests/functional/n/name/name_styles.py
index 4b53ebd76..a9d74356c 100644
--- a/tests/functional/n/name/name_styles.py
+++ b/tests/functional/n/name/name_styles.py
@@ -111,7 +111,8 @@ class FooClass(object):
"""Ignored."""
pass
- @abc.abstractproperty
+ @property
+ @abc.abstractmethod
def ABSTRACT_PROPERTY_NAME(self): # [invalid-name]
"""Ignored."""
pass
diff --git a/tests/functional/n/name/name_styles.txt b/tests/functional/n/name/name_styles.txt
index ced66a74c..0a82e6084 100644
--- a/tests/functional/n/name/name_styles.txt
+++ b/tests/functional/n/name/name_styles.txt
@@ -12,6 +12,6 @@ invalid-name:84:0::"Class name ""NEXT_BAD_NAME_FOR_CLASS"" doesn't conform to Pa
invalid-name:91:0::"Class name ""NOT_CORRECT"" doesn't conform to PascalCase naming style"
invalid-name:97:4:test_globals:"Constant name ""AlsoCorrect"" doesn't conform to UPPER_CASE naming style"
invalid-name:110:4:FooClass.PROPERTY_NAME:"Attribute name ""PROPERTY_NAME"" doesn't conform to snake_case naming style":INFERENCE
-invalid-name:115:4:FooClass.ABSTRACT_PROPERTY_NAME:"Attribute name ""ABSTRACT_PROPERTY_NAME"" doesn't conform to snake_case naming style":INFERENCE
-invalid-name:120:4:FooClass.PROPERTY_NAME_SETTER:"Attribute name ""PROPERTY_NAME_SETTER"" doesn't conform to snake_case naming style":INFERENCE
-invalid-name:151:4:FooEnum:"Class constant name ""bad_enum_name"" doesn't conform to UPPER_CASE naming style"
+invalid-name:116:4:FooClass.ABSTRACT_PROPERTY_NAME:"Attribute name ""ABSTRACT_PROPERTY_NAME"" doesn't conform to snake_case naming style":INFERENCE
+invalid-name:121:4:FooClass.PROPERTY_NAME_SETTER:"Attribute name ""PROPERTY_NAME_SETTER"" doesn't conform to snake_case naming style":INFERENCE
+invalid-name:152:4:FooEnum:"Class constant name ""bad_enum_name"" doesn't conform to UPPER_CASE naming style"