用户:
tq_xyy查看:8 回复:12 评论:8 创建时间:2020-08-04T23:14:03
最近我掀起了一股对代码风格的热潮,在我认真地阅读了一遍PEP8编码规范后,我此时心里万马奔腾……

这是什么鬼啊!
于是我开始在网上查有什么自动检查的工具。
然后我发现有好多文章都推荐 Pylint 这个工具,然后我一顿pip安装。
pip install pylint
然后我随便挑了一个来试试效果怎么样。
这里声明一下:那个文件有两千多行!
然后我运行了pylint,结果很悲剧!
这还是人吗?
你品、你品、你细细地品:


啥玩意?什么情况?
下面就让你们体会一下:
************* Module graphical
graphical.py:62:0: C0103: Constant name "formula" doesn't conform to UPPER_CASE naming style (invalid-name)
graphical.py:63:0: C0103: Constant name "args" doesn't conform to UPPER_CASE naming style (invalid-name)
graphical.py:喵:0: C0103: Constant name "extension" doesn't conform to UPPER_CASE naming style (invalid-name)
graphical.py:67:0: C0413: Import "import argparse" should be placed at the top of the module (wrong-import-position)
graphical.py:68:0: C0413: Import "import ast" should be placed at the top of the module (wrong-import-position)
graphical.py:69:0: C0413: Import "import fractions" should be placed at the top of the module (wrong-import-position)
graphical.py:70:0: C0413: Import "import re" should be placed at the top of the module (wrong-import-position)
graphical.py:71:0: C0413: Import "import sys" should be placed at the top of the module (wrong-import-position)
graphical.py:72:0: C0413: Import "from decimal import Decimal" should be placed at the top of the module (wrong-import-position)
graphical.py:73:0: C0413: Import "from enum import Enum, unique" should be placed at the top of the module (wrong-import-position)
graphical.py:74:0: C0413: Import "from json import dumps, loads" should be placed at the top of the module (wrong-import-position)
graphical.py:158:15: W0123: Use of eval (eval-used)
graphical.py:1喵:8: C0103: Class name "eval_visit" doesn't conform to PascalCase naming style (invalid-name)
graphical.py:171:12: C0103: Method name "visit_BinOp" doesn't conform to snake_case naming style (invalid-name)
graphical.py:213:12: C0415: Import outside toplevel (warnings) (import-outside-toplevel)
graphical.py:226:11: W0123: Use of eval (eval-used)
graphical.py:137:0: R0911: Too many return statements (7/6) (too-many-return-statements)
graphical.py:228:0: C0103: Class name "Graphical_metaclass" doesn't conform to PascalCase naming style (invalid-name)
graphical.py:239:8: W0621: Redefining name 'formula' from outer scope (line 62) (redefined-outer-name)
graphical.py:230:4: R0912: Too many branches (13/12) (too-many-branches)
graphical.py:287:0: R0205: Class 'Graphical' inherits from object, can be safely removed from bases in python3 (useless-object-inheritance)
graphical.py:309:26: E1101: Instance of 'Graphical' has no '_args' member (no-member)
graphical.py:316:24: E1101: Instance of 'Graphical' has no 'formula' member; maybe '_formula'? (no-member)
graphical.py:320:50: E1101: Instance of 'Graphical' has no 'extension' member (no-member)
graphical.py:332:4: C0103: Method name "buildtoJSON" doesn't conform to snake_case naming style (invalid-name)
graphical.py:338:22: E1101: Class 'Graphical' has no 'formula' member; maybe '_formula'? (no-member)
graphical.py:339:24: E1101: Class 'Graphical' has no '_args' member (no-member)
graphical.py:351:0: R0205: Class 'Extension' inherits from object, can be safely removed from bases in python3 (useless-object-inheritance)
graphical.py:367:4: C0116: Missing function or method docstring (missing-function-docstring)
graphical.py:370:4: C0116: Missing function or method docstring (missing-function-docstring)
graphical.py:373:0: W0621: Redefining name 'args' from outer scope (line 63) (redefined-outer-name)
graphical.py:404:0: C0103: Class name "Integrated_Graphical" doesn't conform to PascalCase naming style (invalid-name)
graphical.py:404:0: R0205: Class 'Integrated_Graphical' inherits from object, can be safely removed from bases in python3 (useless-object-inheritance)
graphical.py:463:8: R1705: Unnecessary "else" after "return" (no-else-return)
graphical.py:465:19: E1120: No value for argument 'name' in method call (no-value-for-parameter)
graphical.py:471:0: C0103: Function name "loadfromJSON" doesn't conform to snake_case naming style (invalid-name)
graphical.py:494:0: C0103: Class name "喵_area" doesn't conform to PascalCase naming style (invalid-name)
graphical.py:494:0: R0903: Too few public methods (1/2) (too-few-public-methods)
graphical.py:500:0: C0103: Class name "喵_perimeter" doesn't conform to PascalCase naming style (invalid-name)
graphical.py:500:0: R0903: Too few public methods (1/2) (too-few-public-methods)
graphical.py:506:0: C0103: Class name "喵" doesn't conform to PascalCase naming style (invalid-name)
graphical.py:513:4: C0144: Class attribute name "面积" contains a non-ASCII unicode character (non-ascii-name)
graphical.py:515:4: C0144: Class attribute name "周长" contains a non-ASCII unicode character (non-ascii-name)
graphical.py:518:8: R1705: Unnecessary "elif" after "return" (no-else-return)
graphical.py:518:12: R1714: Consider merging these comparisons with "in" to "name in ('area', '面积')" (consider-using-in)
graphical.py:520:14: R1714: Consider merging these comparisons with "in" to "name in ('perimeter', '周长')" (consider-using-in)
graphical.py:506:0: R0903: Too few public methods (1/2) (too-few-public-methods)
graphical.py:526:0: C0103: Class name "rectangle_area" doesn't conform to PascalCase naming style (invalid-name)
graphical.py:526:0: R0903: Too few public methods (1/2) (too-few-public-methods)
graphical.py:532:0: C0103: Class name "rectangle_perimeter" doesn't conform to PascalCase naming style (invalid-name)
graphical.py:532:0: R0903: Too few public methods (1/2) (too-few-public-methods)
graphical.py:538:0: C0103: Class name "rectangle" doesn't conform to PascalCase naming style (invalid-name)
graphical.py:546:4: C0144: Class attribute name "面积" contains a non-ASCII unicode character (non-ascii-name)
graphical.py:548:4: C0144: Class attribute name "周长" contains a non-ASCII unicode character (non-ascii-name)
graphical.py:551:8: R1705: Unnecessary "elif" after "return" (no-else-return)
graphical.py:551:12: R1714: Consider merging these comparisons with "in" to "name in ('area', '面积')" (consider-using-in)
graphical.py:553:14: R1714: Consider merging these comparisons with "in" to "name in ('perimeter', '周长')" (consider-using-in)
graphical.py:538:0: R0903: Too few public methods (1/2) (too-few-public-methods)
graphical.py:561:0: C0103: Class name "triangle_area" doesn't conform to PascalCase naming style (invalid-name)
graphical.py:561:0: R0903: Too few public methods (1/2) (too-few-public-methods)
graphical.py:567:0: C0103: Class name "triangle" doesn't conform to PascalCase naming style (invalid-name)
graphical.py:575:4: C0144: Class attribute name "面积" contains a non-ASCII unicode character (non-ascii-name)
graphical.py:578:8: R1705: Unnecessary "else" after "return" (no-else-return)
graphical.py:578:12: R1714: Consider merging these comparisons with "in" to "name in ('area', '面积')" (consider-using-in)
graphical.py:567:0: R0903: Too few public methods (1/2) (too-few-public-methods)
graphical.py:585:0: C0103: Class name "trapezoid_area" doesn't conform to PascalCase naming style (invalid-name)
graphical.py:585:0: R0903: Too few public methods (1/2) (too-few-public-methods)
graphical.py:591:0: C0103: Class name "trapezoid" doesn't conform to PascalCase naming style (invalid-name)
graphical.py:600:4: C0144: Class attribute name "面积" contains a non-ASCII unicode character (non-ascii-name)
graphical.py:603:8: R1705: Unnecessary "else" after "return" (no-else-return)
graphical.py:603:12: R1714: Consider merging these comparisons with "in" to "name in ('area', '面积')" (consider-using-in)
graphical.py:591:0: R0903: Too few public methods (1/2) (too-few-public-methods)
graphical.py:609:0: C0103: Class name "parallelogram_area" doesn't conform to PascalCase naming style (invalid-name)
graphical.py:609:0: R0903: Too few public methods (1/2) (too-few-public-methods)
graphical.py:615:0: C0103: Class name "parallelogram_perimeter" doesn't conform to PascalCase naming style (invalid-name)
graphical.py:615:0: R0903: Too few public methods (1/2) (too-few-public-methods)
graphical.py:621:0: C0103: Class name "parallelogram" doesn't conform to PascalCase naming style (invalid-name)
graphical.py:629:4: C0144: Class attribute name "面积" contains a non-ASCII unicode character (non-ascii-name)
graphical.py:631:4: C0144: Class attribute name "周长" contains a non-ASCII unicode character (non-ascii-name)
graphical.py:634:8: R1705: Unnecessary "elif" after "return" (no-else-return)
graphical.py:634:12: R1714: Consider merging these comparisons with "in" to "name in ('area', '面积')" (consider-using-in)
graphical.py:636:14: R1714: Consider merging these comparisons with "in" to "name in ('perimeter', '周长')" (consider-using-in)
graphical.py:621:0: R0903: Too few public methods (1/2) (too-few-public-methods)
graphical.py:喵3:0: C0103: Class name "cuboid_volume" doesn't conform to PascalCase naming style (invalid-name)
graphical.py:喵3:0: R0903: Too few public methods (1/2) (too-few-public-methods)
graphical.py:喵9:0: C0103: Class name "cuboid_surface_area" doesn't conform to PascalCase naming style (invalid-name)
graphical.py:喵9:0: R0903: Too few public methods (1/2) (too-few-public-methods)
graphical.py:655:0: C0103: Class name "sum_of_cuboid_edges" doesn't conform to PascalCase naming style (invalid-name)
graphical.py:655:0: R0903: Too few public methods (1/2) (too-few-public-methods)
graphical.py:661:0: C0103: Class name "cuboid" doesn't conform to PascalCase naming style (invalid-name)
graphical.py:670:4: C0144: Class attribute name "面积" contains a non-ASCII unicode character (non-ascii-name)
graphical.py:672:4: C0144: Class attribute name "表面积" contains a non-ASCII unicode character (non-ascii-name)
graphical.py:674:4: C0144: Class attribute name "棱长总和" contains a non-ASCII unicode character (non-ascii-name)
graphical.py:677:8: R1705: Unnecessary "elif" after "return" (no-else-return)
graphical.py:677:12: R1714: Consider merging these comparisons with "in" to "name in ('volume', '体积')" (consider-using-in)
graphical.py:679:14: R1714: Consider merging these comparisons with "in" to "name in ('surface_area', '表面积')" (consider-using-in)
graphical.py:681:14: R1714: Consider merging these comparisons with "in" to "name in ('total_length', '棱长总和')" (consider-using-in)
graphical.py:661:0: R0903: Too few public methods (1/2) (too-few-public-methods)
graphical.py:688:0: C0103: Class name "cube_surface_area" doesn't conform to PascalCase naming style (invalid-name)
graphical.py:688:0: R0903: Too few public methods (1/2) (too-few-public-methods)
graphical.py:694:0: C0103: Class name "cube_volume" doesn't conform to PascalCase naming style (invalid-name)
graphical.py:694:0: R0903: Too few public methods (1/2) (too-few-public-methods)
graphical.py:700:0: C0103: Class name "sum_of_cube_edges" doesn't conform to PascalCase naming style (invalid-name)
graphical.py:700:0: R0903: Too few public methods (1/2) (too-few-public-methods)
graphical.py:706:0: C0103: Class name "cube" doesn't conform to PascalCase naming style (invalid-name)
graphical.py:713:4: C0144: Class attribute name "面积" contains a non-ASCII unicode character (non-ascii-name)
graphical.py:715:4: C0144: Class attribute name "表面积" contains a non-ASCII unicode character (non-ascii-name)
graphical.py:717:4: C0144: Class attribute name "棱长总和" contains a non-ASCII unicode character (non-ascii-name)
graphical.py:720:8: R1705: Unnecessary "elif" after "return" (no-else-return)
graphical.py:720:12: R1714: Consider merging these comparisons with "in" to "name in ('volume', '体积')" (consider-using-in)
graphical.py:722:14: R1714: Consider merging these comparisons with "in" to "name in ('surface_area', '表面积')" (consider-using-in)
graphical.py:724:14: R1714: Consider merging these comparisons with "in" to "name in ('total_length', '棱长总和')" (consider-using-in)
graphical.py:706:0: R0903: Too few public methods (1/2) (too-few-public-methods)
graphical.py:734:0: C0103: Class name "_lazy_property" doesn't conform to PascalCase naming style (invalid-name)
graphical.py:734:0: R0205: Class '_lazy_property' inherits from object, can be safely removed from bases in python3 (useless-object-inheritance)
graphical.py:734:0: R0903: Too few public methods (1/2) (too-few-public-methods)
graphical.py:747:0: C0103: Class name "circle_perimeter" doesn't conform to PascalCase naming style (invalid-name)
graphical.py:747:0: R0903: Too few public methods (1/2) (too-few-public-methods)
graphical.py:754:0: C0103: Class name "circle_area" doesn't conform to PascalCase naming style (invalid-name)
graphical.py:754:0: R0903: Too few public methods (1/2) (too-few-public-methods)
graphical.py:761:0: C0103: Class name "circle" doesn't conform to PascalCase naming style (invalid-name)
graphical.py:772:4: C0116: Missing function or method docstring (missing-function-docstring)
graphical.py:777:4: C0116: Missing function or method docstring (missing-function-docstring)
graphical.py:782:8: R1705: Unnecessary "elif" after "return" (no-else-return)
graphical.py:782:12: R1714: Consider merging these comparisons with "in" to "name in ('perimeter', '周长')" (consider-using-in)
graphical.py:784:14: R1714: Consider merging these comparisons with "in" to "name in ('area', '面积')" (consider-using-in)
graphical.py:798:0: C0144: Class name "正方形" contains a non-ASCII unicode character (non-ascii-name)
graphical.py:799:0: C0144: Class name "正方形面积" contains a non-ASCII unicode character (non-ascii-name)
graphical.py:800:0: C0144: Class name "正方形周长" contains a non-ASCII unicode character (non-ascii-name)
graphical.py:803:0: C0144: Class name "长方形" contains a non-ASCII unicode character (non-ascii-name)
graphical.py:804:0: C0144: Class name "长方形面积" contains a non-ASCII unicode character (non-ascii-name)
graphical.py:805:0: C0144: Class name "长方形周长" contains a non-ASCII unicode character (non-ascii-name)
graphical.py:808:0: C0144: Class name "三角形" contains a non-ASCII unicode character (non-ascii-name)
graphical.py:809:0: C0144: Class name "三角形面积" contains a non-ASCII unicode character (non-ascii-name)
graphical.py:812:0: C0144: Class name "梯形" contains a non-ASCII unicode character (non-ascii-name)
graphical.py:813:0: C0144: Class name "梯形面积" contains a non-ASCII unicode character (non-ascii-name)
graphical.py:816:0: C0144: Class name "平行四边形" contains a non-ASCII unicode character (non-ascii-name)
graphical.py:817:0: C0144: Class name "平行四边形面积" contains a non-ASCII unicode character (non-ascii-name)
graphical.py:818:0: C0144: Class name "平行四边形周长" contains a non-ASCII unicode character (non-ascii-name)
graphical.py:821:0: C0144: Class name "正方体" contains a non-ASCII unicode character (non-ascii-name)
graphical.py:822:0: C0144: Class name "正方体表面积" contains a non-ASCII unicode character (non-ascii-name)
graphical.py:823:0: C0144: Class name "正方体体积" contains a non-ASCII unicode character (non-ascii-name)
graphical.py:824:0: C0144: Class name "正方体棱长总和" contains a non-ASCII unicode character (non-ascii-name)
graphical.py:827:0: C0144: Class name "长方体" contains a non-ASCII unicode character (non-ascii-name)
graphical.py:828:0: C0144: Class name "长方体表面积" contains a non-ASCII unicode character (non-ascii-name)
graphical.py:829:0: C0144: Class name "长方体体积" contains a non-ASCII unicode character (non-ascii-name)
graphical.py:830:0: C0144: Class name "长方体棱长总和" contains a non-ASCII unicode character (non-ascii-name)
graphical.py:833:0: C0144: Class name "圆形" contains a non-ASCII unicode character (non-ascii-name)
graphical.py:834:0: C0144: Class name "圆形周长" contains a non-ASCII unicode character (non-ascii-name)
graphical.py:835:0: C0144: Class name "圆形面积" contains a non-ASCII unicode character (non-ascii-name)
graphical.py:861:0: C0103: Class name "Graphical_str_compose" doesn't conform to PascalCase naming style (invalid-name)
graphical.py:863:4: C0116: Missing function or method docstring (missing-function-docstring)
graphical.py:866:4: W0231: __init__ method from base class 'Graphical' is not called (super-init-not-called)
graphical.py:870:4: C0116: Missing function or method docstring (missing-function-docstring)
graphical.py:871:24: E1101: Instance of 'Graphical_str_compose' has no 'formula' member; maybe '_formula'? (no-member)
graphical.py:873:29: E1101: Instance of 'Graphical_str_compose' has no '_args' member (no-member)
graphical.py:880:4: C0116: Missing function or method docstring (missing-function-docstring)
graphical.py:898:0: W0125: Using a conditional statement with a constant value (using-constant-test)
graphical.py:900:8: W0105: String statement has no effect (pointless-string-statement)
graphical.py:907:8: R0205: Class '_Fraction' inherits from object, can be safely removed from bases in python3 (useless-object-inheritance)
graphical.py:914:20: C0103: Variable name "v" doesn't conform to snake_case naming style (invalid-name)
graphical.py:922:23: W0123: Use of eval (eval-used)
graphical.py:924:8: C0103: Class name "Graphical_fraction" doesn't conform to PascalCase naming style (invalid-name)
graphical.py:926:12: C0116: Missing function or method docstring (missing-function-docstring)
graphical.py:931:16: E1101: Class 'Graphical' has no '__check' member (no-member)
graphical.py:935:38: E1101: Instance of 'Graphical_fraction' has no 'formula' member; maybe '_formula'? (no-member)
graphical.py:937:20: E1101: Instance of 'Graphical_fraction' has no 'extension' member (no-member)
graphical.py:938:57: E1101: Instance of 'Graphical_fraction' has no 'extension' member (no-member)
graphical.py:935:16: W0201: Attribute 'frac' defined outside __init__ (attribute-defined-outside-init)
graphical.py:955:12: R1724: Unnecessary "elif" after "continue" (no-else-continue)
graphical.py:989:4: C0103: Method name "assertEqual" doesn't conform to snake_case naming style (invalid-name)
graphical.py:1004:8: R1705: Unnecessary "else" after "return" (no-else-return)
graphical.py:989:4: R0201: Method could be a function (no-self-use)
graphical.py:1009:4: C0103: Method name "assertTrue" doesn't conform to snake_case naming style (invalid-name)
graphical.py:1019:4: C0103: Method name "assertFalse" doesn't conform to snake_case naming style (invalid-name)
graphical.py:1029:4: C0103: Class name "assertError" doesn't conform to PascalCase naming style (invalid-name)
graphical.py:1054:27: W0622: Redefining built-in 'type' (redefined-builtin)
graphical.py:1056:12: R1705: Unnecessary "else" after "return" (no-else-return)
graphical.py:1065:29: E1101: Instance of 'TestCase' has no '_tests_list' member (no-member)
graphical.py:1083:23: W0622: Redefining built-in 'type' (redefined-builtin)
graphical.py:1085:8: R1705: Unnecessary "elif" after "return" (no-else-return)
graphical.py:1066:12: W0201: Attribute '_func_name' defined outside __init__ (attribute-defined-outside-init)
graphical.py:1127:4: C0103: Variable name "ok" doesn't conform to snake_case naming style (invalid-name)
graphical.py:1138:8: C0103: Variable name "ok" doesn't conform to snake_case naming style (invalid-name)
graphical.py:1147:0: R0914: Too many local variables (29/15) (too-many-locals)
graphical.py:1150:4: C0103: Class name "Square_AreaTest" doesn't conform to PascalCase naming style (invalid-name)
graphical.py:1150:4: C0115: Missing class docstring (missing-class-docstring)
graphical.py:1151:8: C0116: Missing function or method docstring (missing-function-docstring)
graphical.py:1153:29: W0212: Access to a protected member _value of a client class (protected-access)
graphical.py:1155:29: W0212: Access to a protected member _value of a client class (protected-access)
graphical.py:1157:29: W0212: Access to a protected member _value of a client class (protected-access)
graphical.py:1160:4: C0103: Class name "Square_PerimeterTest" doesn't conform to PascalCase naming style (invalid-name)
graphical.py:1160:4: C0115: Missing class docstring (missing-class-docstring)
graphical.py:1161:8: C0116: Missing function or method docstring (missing-function-docstring)
graphical.py:1163:29: W0212: Access to a protected member _value of a client class (protected-access)
graphical.py:1165:29: W0212: Access to a protected member _value of a client class (protected-access)
graphical.py:1167:29: W0212: Access to a protected member _value of a client class (protected-access)
graphical.py:1170:4: C0103: Class name "Rectangle_AreaTest" doesn't conform to PascalCase naming style (invalid-name)
graphical.py:1170:4: C0115: Missing class docstring (missing-class-docstring)
graphical.py:1171:8: C0116: Missing function or method docstring (missing-function-docstring)
graphical.py:1173:29: W0212: Access to a protected member _value of a client class (protected-access)
graphical.py:1175:29: W0212: Access to a protected member _value of a client class (protected-access)
graphical.py:1177:29: W0212: Access to a protected member _value of a client class (protected-access)
graphical.py:1180:4: C0103: Class name "Rectangle_PerimeterTest" doesn't conform to PascalCase naming style (invalid-name)
graphical.py:1180:4: C0115: Missing class docstring (missing-class-docstring)
graphical.py:1181:8: C0116: Missing function or method docstring (missing-function-docstring)
graphical.py:1183:29: W0212: Access to a protected member _value of a client class (protected-access)
graphical.py:1185:29: W0212: Access to a protected member _value of a client class (protected-access)
graphical.py:1187:29: W0212: Access to a protected member _value of a client class (protected-access)
graphical.py:1190:4: C0103: Class name "Triangle_AreaTest" doesn't conform to PascalCase naming style (invalid-name)
graphical.py:1190:4: C0115: Missing class docstring (missing-class-docstring)
graphical.py:1191:8: C0116: Missing function or method docstring (missing-function-docstring)
graphical.py:1193:29: W0212: Access to a protected member _value of a client class (protected-access)
graphical.py:1195:29: W0212: Access to a protected member _value of a client class (protected-access)
graphical.py:1197:29: W0212: Access to a protected member _value of a client class (protected-access)
graphical.py:1200:4: C0103: Class name "Trapezoid_AreaTest" doesn't conform to PascalCase naming style (invalid-name)
graphical.py:1200:4: C0115: Missing class docstring (missing-class-docstring)
graphical.py:1201:8: C0116: Missing function or method docstring (missing-function-docstring)
graphical.py:1203:29: W0212: Access to a protected member _value of a client class (protected-access)
graphical.py:1205:29: W0212: Access to a protected member _value of a client class (protected-access)
graphical.py:1207:29: W0212: Access to a protected member _value of a client class (protected-access)
graphical.py:1210:4: C0103: Class name "Parallelogram_AreaTest" doesn't conform to PascalCase naming style (invalid-name)
graphical.py:1210:4: C0115: Missing class docstring (missing-class-docstring)
graphical.py:1211:8: C0116: Missing function or method docstring (missing-function-docstring)
graphical.py:1213:29: W0212: Access to a protected member _value of a client class (protected-access)
graphical.py:1215:29: W0212: Access to a protected member _value of a client class (protected-access)
graphical.py:1217:29: W0212: Access to a protected member _value of a client class (protected-access)
graphical.py:1220:4: C0103: Class name "Parallelogram_PerimeterTest" doesn't conform to PascalCase naming style (invalid-name)
graphical.py:1220:4: C0115: Missing class docstring (missing-class-docstring)
graphical.py:1221:8: C0116: Missing function or method docstring (missing-function-docstring)
graphical.py:1223:29: W0212: Access to a protected member _value of a client class (protected-access)
graphical.py:1225:29: W0212: Access to a protected member _value of a client class (protected-access)
graphical.py:1227:29: W0212: Access to a protected member _value of a client class (protected-access)
graphical.py:1230:4: C0103: Class name "Cube_Surface_AreaTest" doesn't conform to PascalCase naming style (invalid-name)
graphical.py:1230:4: C0115: Missing class docstring (missing-class-docstring)
graphical.py:1231:8: C0116: Missing function or method docstring (missing-function-docstring)
graphical.py:1233:29: W0212: Access to a protected member _value of a client class (protected-access)
graphical.py:1235:29: W0212: Access to a protected member _value of a client class (protected-access)
graphical.py:1237:29: W0212: Access to a protected member _value of a client class (protected-access)
graphical.py:1240:4: C0103: Class name "Cube_VolumeTest" doesn't conform to PascalCase naming style (invalid-name)
graphical.py:1240:4: C0115: Missing class docstring (missing-class-docstring)
graphical.py:1241:8: C0116: Missing function or method docstring (missing-function-docstring)
graphical.py:1243:29: W0212: Access to a protected member _value of a client class (protected-access)
graphical.py:1245:29: W0212: Access to a protected member _value of a client class (protected-access)
graphical.py:1247:29: W0212: Access to a protected member _value of a client class (protected-access)
graphical.py:1250:4: C0103: Class name "Sum_Of_Cube_EdgesTest" doesn't conform to PascalCase naming style (invalid-name)
graphical.py:1250:4: C0115: Missing class docstring (missing-class-docstring)
graphical.py:1251:8: C0116: Missing function or method docstring (missing-function-docstring)
graphical.py:1253:29: W0212: Access to a protected member _value of a client class (protected-access)
graphical.py:1255:29: W0212: Access to a protected member _value of a client class (protected-access)
graphical.py:1257:29: W0212: Access to a protected member _value of a client class (protected-access)
graphical.py:1260:4: C0103: Class name "Cuboid_Surface_AreaTest" doesn't conform to PascalCase naming style (invalid-name)
graphical.py:1260:4: C0115: Missing class docstring (missing-class-docstring)
graphical.py:1261:8: C0116: Missing function or method docstring (missing-function-docstring)
graphical.py:1263:29: W0212: Access to a protected member _value of a client class (protected-access)
graphical.py:1265:29: W0212: Access to a protected member _value of a client class (protected-access)
graphical.py:1267:29: W0212: Access to a protected member _value of a client class (protected-access)
graphical.py:1270:4: C0103: Class name "Cuboid_VolumeTest" doesn't conform to PascalCase naming style (invalid-name)
graphical.py:1270:4: C0115: Missing class docstring (missing-class-docstring)
graphical.py:1271:8: C0116: Missing function or method docstring (missing-function-docstring)
graphical.py:1273:29: W0212: Access to a protected member _value of a client class (protected-access)
graphical.py:1275:29: W0212: Access to a protected member _value of a client class (protected-access)
graphical.py:1277:29: W0212: Access to a protected member _value of a client class (protected-access)
graphical.py:1280:4: C0103: Class name "Sum_Of_Cuboid_EdgesTest" doesn't conform to PascalCase naming style (invalid-name)
graphical.py:1280:4: C0115: Missing class docstring (missing-class-docstring)
graphical.py:1281:8: C0116: Missing function or method docstring (missing-function-docstring)
graphical.py:1283:29: W0212: Access to a protected member _value of a client class (protected-access)
graphical.py:1285:29: W0212: Access to a protected member _value of a client class (protected-access)
graphical.py:1287:29: W0212: Access to a protected member _value of a client class (protected-access)
graphical.py:1290:4: C0103: Class name "Circle_PerimeterTest" doesn't conform to PascalCase naming style (invalid-name)
graphical.py:1290:4: C0115: Missing class docstring (missing-class-docstring)
graphical.py:1291:8: C0116: Missing function or method docstring (missing-function-docstring)
graphical.py:1294:40: W0212: Access to a protected member _value of a client class (protected-access)
graphical.py:1296:40: W0212: Access to a protected member _value of a client class (protected-access)
graphical.py:1298:40: W0212: Access to a protected member _value of a client class (protected-access)
graphical.py:1301:4: C0103: Class name "Circle_AreaTest" doesn't conform to PascalCase naming style (invalid-name)
graphical.py:1301:4: C0115: Missing class docstring (missing-class-docstring)
graphical.py:1302:8: C0116: Missing function or method docstring (missing-function-docstring)
graphical.py:1305:40: W0212: Access to a protected member _value of a client class (protected-access)
graphical.py:1307:40: W0212: Access to a protected member _value of a client class (protected-access)
graphical.py:1309:40: W0212: Access to a protected member _value of a client class (protected-access)
graphical.py:1312:4: C0115: Missing class docstring (missing-class-docstring)
graphical.py:1313:8: C0116: Missing function or method docstring (missing-function-docstring)
graphical.py:1344:8: C0103: Variable name "a" doesn't conform to snake_case naming style (invalid-name)
graphical.py:1346:8: C0103: Variable name "b" doesn't conform to snake_case naming style (invalid-name)
graphical.py:1349:8: C0103: Variable name "t" doesn't conform to snake_case naming style (invalid-name)
graphical.py:1351:8: C0103: Variable name "d" doesn't conform to snake_case naming style (invalid-name)
graphical.py:1353:8: C0103: Variable name "f" doesn't conform to snake_case naming style (invalid-name)
graphical.py:1357:8: E0102: class already defined line 1346 (function-redefined)
graphical.py:1357:8: C0103: Class name "b" doesn't conform to PascalCase naming style (invalid-name)
graphical.py:1357:8: C0115: Missing class docstring (missing-class-docstring)
graphical.py:1357:8: R0903: Too few public methods (1/2) (too-few-public-methods)
graphical.py:1366:8: E0102: class already defined line 1344 (function-redefined)
graphical.py:1366:8: C0103: Class name "a" doesn't conform to PascalCase naming style (invalid-name)
graphical.py:1366:8: C0115: Missing class docstring (missing-class-docstring)
graphical.py:1367:12: R1710: Either all return statements in a function should return an expression, or none of them should. (inconsistent-return-statements)
graphical.py:1366:8: R0903: Too few public methods (1/2) (too-few-public-methods)
graphical.py:1370:8: C0103: Variable name "e" doesn't conform to snake_case naming style (invalid-name)
graphical.py:1391:8: E0102: class already defined line 1344 (function-redefined)
graphical.py:1391:8: C0103: Class name "a" doesn't conform to PascalCase naming style (invalid-name)
graphical.py:1391:8: C0115: Missing class docstring (missing-class-docstring)
graphical.py:1392:12: C0116: Missing function or method docstring (missing-function-docstring)
graphical.py:1394:12: C0103: Method name "c" doesn't conform to snake_case naming style (invalid-name)
graphical.py:1394:12: C0116: Missing function or method docstring (missing-function-docstring)
graphical.py:1394:12: E0211: Method has no argument (no-method-argument)
graphical.py:1394:12: R0201: Method could be a function (no-self-use)
graphical.py:1399:8: C0103: Variable name "a" doesn't conform to snake_case naming style (invalid-name)
graphical.py:1147:0: R0915: Too many statements (155/50) (too-many-statements)
graphical.py:1424:0: C0103: Class name "formula_enum" doesn't conform to PascalCase naming style (invalid-name)
graphical.py:1424:0: C0115: Missing class docstring (missing-class-docstring)
graphical.py:1426:4: C0144: Class attribute name "正方形面积" contains a non-ASCII unicode character (non-ascii-name)
graphical.py:1427:4: C0144: Class attribute name "正方形周长" contains a non-ASCII unicode character (non-ascii-name)
graphical.py:1428:4: C0144: Class attribute name "长方形面积" contains a non-ASCII unicode character (non-ascii-name)
graphical.py:1429:4: C0144: Class attribute name "长方形周长" contains a non-ASCII unicode character (non-ascii-name)
graphical.py:1430:4: C0144: Class attribute name "三角形面积" contains a non-ASCII unicode character (non-ascii-name)
graphical.py:1431:4: C0144: Class attribute name "梯形面积" contains a non-ASCII unicode character (non-ascii-name)
graphical.py:1432:4: C0144: Class attribute name "平行四边形面积" contains a non-ASCII unicode character (non-ascii-name)
graphical.py:1433:4: C0144: Class attribute name "平行四边形周长" contains a non-ASCII unicode character (non-ascii-name)
graphical.py:1434:4: C0144: Class attribute name "正方体表面积" contains a non-ASCII unicode character (non-ascii-name)
graphical.py:1435:4: C0144: Class attribute name "正方体体积" contains a non-ASCII unicode character (non-ascii-name)
graphical.py:1436:4: C0144: Class attribute name "正方体棱长总和" contains a non-ASCII unicode character (non-ascii-name)
graphical.py:1437:4: C0144: Class attribute name "长方体表面积" contains a non-ASCII unicode character (non-ascii-name)
graphical.py:1438:4: C0144: Class attribute name "长方体体积" contains a non-ASCII unicode character (non-ascii-name)
graphical.py:1439:4: C0144: Class attribute name "长方体棱长总和" contains a non-ASCII unicode character (non-ascii-name)
graphical.py:1440:4: C0144: Class attribute name "圆形周长" contains a non-ASCII unicode character (non-ascii-name)
graphical.py:1441:4: C0144: Class attribute name "圆形面积" contains a non-ASCII unicode character (non-ascii-name)
graphical.py:1442:4: C0144: Class attribute name "营销号生成器" contains a non-ASCII unicode character (non-ascii-name)
graphical.py:1527:0: C0103: Class name "printlist_metaclass" doesn't conform to PascalCase naming style (invalid-name)
graphical.py:1534:12: R1724: Unnecessary "elif" after "continue" (no-else-continue)
graphical.py:1547:0: C0103: Class name "printlist" doesn't conform to PascalCase naming style (invalid-name)
graphical.py:1547:0: R0205: Class 'printlist' inherits from object, can be safely removed from bases in python3 (useless-object-inheritance)
graphical.py:1561:25: E1101: Instance of 'printlist' has no 'key' member (no-member)
graphical.py:1566:4: R0201: Method could be a function (no-self-use)
graphical.py:1591:4: C0116: Missing function or method docstring (missing-function-docstring)
graphical.py:1616:4: C0103: Class name "formula_object" doesn't conform to PascalCase naming style (invalid-name)
graphical.py:1616:4: C0115: Missing class docstring (missing-class-docstring)
graphical.py:1617:8: C0144: Class attribute name "圆形ID" contains a non-ASCII unicode character (non-ascii-name)
graphical.py:1618:8: C0144: Class attribute name "对应的公式" contains a non-ASCII unicode character (non-ascii-name)
graphical.py:1651:4: C0103: Class name "window" doesn't conform to PascalCase naming style (invalid-name)
graphical.py:1688:16: W0621: Redefining name 'formula' from outer scope (line 62) (redefined-outer-name)
graphical.py:1694:20: W0612: Unused variable 'char' (unused-variable)
graphical.py:1719:0: R0205: Class 'Cmd' inherits from object, can be safely removed from bases in python3 (useless-object-inheritance)
graphical.py:1762:8: W0107: Unnecessary pass statement (unnecessary-pass)
graphical.py:1767:8: W0107: Unnecessary pass statement (unnecessary-pass)
graphical.py:1769:4: R0201: Method could be a function (no-self-use)
graphical.py:1777:8: W0107: Unnecessary pass statement (unnecessary-pass)
graphical.py:1782:8: W0107: Unnecessary pass statement (unnecessary-pass)
graphical.py:1792:12: R1724: Unnecessary "elif" after "continue" (no-else-continue)
graphical.py:1784:4: R0201: Method could be a function (no-self-use)
graphical.py:1810:8: W0621: Redefining name 'args' from outer scope (line 63) (redefined-outer-name)
graphical.py:1813:8: R1705: Unnecessary "else" after "return" (no-else-return)
graphical.py:1813:11: W0143: Comparing against a callable, did you omit the parenthesis? (comparison-with-callable)
graphical.py:1824:0: W0621: Redefining name 'args' from outer scope (line 63) (redefined-outer-name)
graphical.py:1832:19: C0103: Variable name "v" doesn't conform to snake_case naming style (invalid-name)
graphical.py:1860:16: R1724: Unnecessary "else" after "continue" (no-else-continue)
graphical.py:1882:0: C0103: Class name "shell" doesn't conform to PascalCase naming style (invalid-name)
graphical.py:1889:0: W0613: Unused argument 'arg' (unused-argument)
graphical.py:1889:4: R0201: Method could be a function (no-self-use)
graphical.py:1903:12: W0612: Unused variable 'char' (unused-variable)
graphical.py:1894:4: R0201: Method could be a function (no-self-use)
graphical.py:1911:0: W0613: Unused argument 'arg' (unused-argument)
graphical.py:1911:4: R0201: Method could be a function (no-self-use)
graphical.py:1922:4: W0221: Parameters differ from overridden 'unknown_command' method (arguments-differ)
graphical.py:1927:0: W0613: Unused argument 'arg' (unused-argument)
graphical.py:1945:8: C0103: Variable name "a" doesn't conform to snake_case naming style (invalid-name)
graphical.py:1968:0: R1710: Either all return statements in a function should return an expression, or none of them should. (inconsistent-return-statements)
graphical.py:2027:12: W0612: Unused variable 'char' (unused-variable)
graphical.py:2035:0: C0103: Class name "main" doesn't conform to PascalCase naming style (invalid-name)
graphical.py:2035:0: R0205: Class 'main' inherits from object, can be safely removed from bases in python3 (useless-object-inheritance)
graphical.py:2045:8: W0621: Redefining name 'parameter' from outer scope (line 373) (redefined-outer-name)
graphical.py:2058:24: W0212: Access to a protected member _parse of a client class (protected-access)
graphical.py:2065:12: C0415: Import outside toplevel (tkinter) (import-outside-toplevel)
graphical.py:2066:12: C0415: Import outside toplevel (tkinter.ttk) (import-outside-toplevel)
graphical.py:2073:12: C0415: Import outside toplevel (warnings) (import-outside-toplevel)
graphical.py:2048:16: W0201: Attribute 'file_name' defined outside __init__ (attribute-defined-outside-init)
------------------------------------------------------------------
Your code has been rated at 2.28/10 (previous run: 2.28/10, +0.00)
注:这里缩减了一部分
(完)
流熙墨晨nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn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