an2linuxserver
an2linuxserver copied to clipboard
Linter pylint is unhappy with an2linuxserver.py
Here is the output of applying the pylint linter to an2linuxserver.py. Some of the output might be important. (I don't know because I do not know python.)
an2linuxserver.py: 1:1 warning pylint:C0111 Missing module docstring (missing-docstring) 13:1 warning pylint:C0103 Variable name "e" doesn't conform to snake_case naming style (invalid-name) 20:1 warning pylint:C0103 Variable name "e" doesn't conform to snake_case naming style (invalid-name) 27:1 warning pylint:C0103 Variable name "e" doesn't conform to snake_case naming style (invalid-name) 49:1 warning pylint:C0111 Missing function docstring (missing-docstring) 52:1 warning pylint:C0111 Missing class docstring (missing-docstring) 63:101 warning pylint:C0301 Line too long (104/100) (line-too-long) 66:101 warning pylint:C0301 Line too long (104/100) (line-too-long) 66:101 warning pylint:C0301 Line too long (104/100) (line-too-long) 78:1 warning pylint:C0111 Missing method docstring (missing-docstring) 79:36 error pylint:E1135 Value 'Notification.latest_notifications' doesn't support membership test (unsupported-membership-test) 80:28 error pylint:E1135 Value 'Notification.titles_that_ignore_latest' doesn't support membership test (unsupported-membership-test) 81:50 error pylint:E1133 Non-iterable value Notification.keywords_to_ignore is used in an iterating context (not-an-iterable) 84:18 warning pylint:W0201 Attribute 'notif' defined outside init (attribute-defined-outside-init) 91:13 warning pylint:C0103 Variable name "e" doesn't conform to snake_case naming style (invalid-name) 91:20 warning pylint:W0703 Catching too general exception Exception (broad-except) 93:41 warning pylint:W0301 Unnecessary semicolon (unnecessary-semicolon) 97:1 warning pylint:C0111 Missing method docstring (missing-docstring) 97:31 warning pylint:W0613 Unused argument 'notif_instance' (unused-argument) 102:1 warning pylint:C0111 Missing class docstring (missing-docstring) 115:17 warning pylint:C0103 Variable name "e" doesn't conform to snake_case naming style (invalid-name) 115:24 warning pylint:W0703 Catching too general exception Exception (broad-except) 121:17 warning pylint:C0103 Variable name "e" doesn't conform to snake_case naming style (invalid-name) 121:24 warning pylint:W0703 Catching too general exception Exception (broad-except) 123:9 warning pylint:C0103 Variable name "e" doesn't conform to snake_case naming style (invalid-name) 123:16 warning pylint:W0703 Catching too general exception Exception (broad-except) 126:1 warning pylint:C0111 Missing method docstring (missing-docstring) 126:5 warning pylint:R0915 Too many statements (52/50) (too-many-statements) 139:9 warning pylint:C0103 Variable name "ip" doesn't conform to snake_case naming style (invalid-name) 142:13 warning pylint:C0103 Variable name "ip" doesn't conform to snake_case naming style (invalid-name) 148:9 warning pylint:W0621 Redefining name 'sha256' from outer scope (line 804) (redefined-outer-name) 149:9 warning pylint:W0621 Redefining name 'sha256_format' from outer scope (line 805) (redefined-outer- name) 151:101 warning pylint:C0301 Line too long (115/100) (line-too-long) 160:14 warning pylint:W0201 Attribute 'server_allow_pair' defined outside init (attribute-defined- outside-init) 161:14 warning pylint:W0201 Attribute 'client_allow_pair' defined outside init (attribute-defined- outside-init) 165:16 warning pylint:W0703 Catching too general exception Exception (broad-except) 167:14 warning pylint:W0201 Attribute 'user_input_prompt' defined outside init (attribute-defined- outside-init) 177:26 warning pylint:W0201 Attribute 'server_allow_pair' defined outside init (attribute-defined- outside-init) 194:1 warning pylint:C0111 Missing method docstring (missing-docstring) 195:9 warning pylint:R1702 Too many nested blocks (7/5) (too-many-nested-blocks) 200:26 warning pylint:W0201 Attribute 'client_allow_pair' defined outside init (attribute-defined- outside-init) 205:101 warning pylint:C0301 Line too long (109/100) (line-too-long) 225:1 warning pylint:C0111 Missing method docstring (missing-docstring) 229:9 warning pylint:C0103 Variable name "e" doesn't conform to snake_case naming style (invalid-name) 229:16 warning pylint:W0703 Catching too general exception Exception (broad-except) 238:25 warning pylint:C0326 Exactly one space required before assignment 240:25 warning pylint:C0326 Exactly one space required before assignment 259:101 warning pylint:C0301 Line too long (111/100) (line-too-long) 261:20 warning pylint:W0703 Catching too general exception Exception (broad-except) 262:101 warning pylint:C0301 Line too long (111/100) (line-too-long) 264:101 warning pylint:C0301 Line too long (107/100) (line-too-long) 267:1 warning pylint:C0111 Missing class docstring (missing-docstring) 275:1 warning pylint:C0111 Missing class docstring (missing-docstring) 278:38 error pylint:E0602 Undefined variable 'BluetoothSocket' (undefined-variable) 278:54 error pylint:E0602 Undefined variable 'RFCOMM' (undefined-variable) 279:46 error pylint:E0602 Undefined variable 'PORT_ANY' (undefined-variable) 286:9 error pylint:E0602 Undefined variable 'advertise_service' (undefined-variable) 288:55 error pylint:E0602 Undefined variable 'SERIAL_PORT_CLASS' (undefined-variable) 289:37 error pylint:E0602 Undefined variable 'SERIAL_PORT_PROFILE' (undefined-variable) 293:1 warning pylint:C0111 Missing method docstring (missing-docstring) 298:101 warning pylint:C0301 Line too long (101/100) (line-too-long) 302:1 warning pylint:C0111 Missing method docstring (missing-docstring) 306:1 warning pylint:C0111 Missing class docstring (missing-docstring) 306:1 warning pylint:R0902 Too many instance attributes (8/7) (too-many-instance-attributes) 311:24 warning pylint:W0621 Redefining name 'socket' from outer scope (line 38) (redefined-outer-name) 319:1 warning pylint:C0111 Missing method docstring (missing-docstring) 327:17 warning pylint:C0103 Variable name "e" doesn't conform to snake_case naming style (invalid-name) 327:24 warning pylint:W0703 Catching too general exception Exception (broad-except) 333:17 warning pylint:C0103 Variable name "e" doesn't conform to snake_case naming style (invalid-name) 333:24 warning pylint:W0703 Catching too general exception Exception (broad-except) 335:9 warning pylint:C0103 Variable name "e" doesn't conform to snake_case naming style (invalid-name) 335:16 warning pylint:W0703 Catching too general exception Exception (broad-except) 340:1 warning pylint:C0111 Missing method docstring (missing-docstring) 367:1 warning pylint:C0111 Missing method docstring (missing-docstring) 375:1 warning pylint:C0111 Missing method docstring (missing-docstring) 379:1 warning pylint:C0111 Missing method docstring (missing-docstring) 383:1 warning pylint:C0111 Missing method docstring (missing-docstring) 383:1 warning pylint:R0912 Too many branches (13/12) (too-many-branches) 383:5 warning pylint:R0915 Too many statements (64/50) (too-many-statements) 397:101 warning pylint:C0301 Line too long (110/100) (line-too-long) 408:101 warning pylint:C0301 Line too long (104/100) (line-too-long) 414:9 warning pylint:W0621 Redefining name 'sha256' from outer scope (line 804) (redefined-outer-name) 415:9 warning pylint:W0621 Redefining name 'sha256_format' from outer scope (line 805) (redefined-outer- name) 417:101 warning pylint:C0301 Line too long (115/100) (line-too-long) 426:14 warning pylint:W0201 Attribute 'server_allow_pair' defined outside init (attribute-defined- outside-init) 427:14 warning pylint:W0201 Attribute 'client_allow_pair' defined outside init (attribute-defined- outside-init) 431:16 warning pylint:W0703 Catching too general exception Exception (broad-except) 433:14 warning pylint:W0201 Attribute 'user_input_prompt' defined outside init (attribute-defined- outside-init) 446:26 warning pylint:W0201 Attribute 'server_allow_pair' defined outside init (attribute-defined- outside-init) 466:1 warning pylint:C0111 Missing method docstring (missing-docstring) 466:1 warning pylint:R0912 Too many branches (14/12) (too-many-branches) 467:9 warning pylint:R1702 Too many nested blocks (7/5) (too-many-nested-blocks) 474:24 warning pylint:W0703 Catching too general exception Exception (broad-except) 479:26 warning pylint:W0201 Attribute 'client_allow_pair' defined outside init (attribute-defined- outside-init) 484:101 warning pylint:C0301 Line too long (109/100) (line-too-long) 491:40 error pylint:E0602 Undefined variable 'BluetoothError' (undefined-variable) 492:101 warning pylint:C0301 Line too long (106/100) (line-too-long) 507:1 warning pylint:C0111 Missing method docstring (missing-docstring) 507:1 warning pylint:R0914 Too many local variables (18/15) (too-many-locals) 513:101 warning pylint:C0301 Line too long (111/100) (line-too-long) 517:101 warning pylint:C0301 Line too long (119/100) (line-too-long) 519:9 warning pylint:C0103 Variable name "e" doesn't conform to snake_case naming style (invalid-name) 519:16 warning pylint:W0703 Catching too general exception Exception (broad-except) 530:25 warning pylint:C0326 Exactly one space required before assignment 532:25 warning pylint:C0326 Exactly one space required before assignment 553:101 warning pylint:C0301 Line too long (111/100) (line-too-long) 555:20 warning pylint:W0703 Catching too general exception Exception (broad-except) 556:101 warning pylint:C0301 Line too long (111/100) (line-too-long) 558:101 warning pylint:C0301 Line too long (107/100) (line-too-long) 561:1 warning pylint:C0111 Missing function docstring (missing-docstring) 571:1 warning pylint:C0111 Missing function docstring (missing-docstring) 576:1 warning pylint:C0111 Missing function docstring (missing-docstring) 577:101 warning pylint:C0301 Line too long (110/100) (line-too-long) 581:101 warning pylint:C0301 Line too long (111/100) (line-too-long) 592:1 warning pylint:C0111 Missing function docstring (missing-docstring) 592:1 warning pylint:C0103 Argument name "CERTIFICATE_PATH" doesn't conform to snake_case naming style (invalid-name) 592:1 warning pylint:C0103 Argument name "RSA_PRIVATE_KEY_PATH" doesn't conform to snake_case naming style (invalid-name) 592:49 warning pylint:W0621 Redefining name 'CERTIFICATE_PATH' from outer scope (line 794) (redefined-outer- name) 592:67 warning pylint:W0621 Redefining name 'RSA_PRIVATE_KEY_PATH' from outer scope (line 794) (redefined- outer-name) 593:101 warning pylint:C0301 Line too long (110/100) (line-too-long) 596:101 warning pylint:C0301 Line too long (111/100) (line-too-long) 608:1 warning pylint:C0111 Missing function docstring (missing-docstring) 610:50 warning pylint:C0103 Variable name "f" doesn't conform to snake_case naming style (invalid-name) 613:1 warning pylint:C0330 Wrong continued indentation (add 12 spaces). 615:101 warning pylint:C0301 Line too long (108/100) (line-too-long) 617:13 warning pylint:C0103 Variable name "e" doesn't conform to snake_case naming style (invalid-name) 617:20 warning pylint:W0703 Catching too general exception Exception (broad-except) 620:101 warning pylint:C0301 Line too long (109/100) (line-too-long) 628:1 warning pylint:C0111 Missing function docstring (missing-docstring) 629:5 warning pylint:W0621 Redefining name 'sha256' from outer scope (line 804) (redefined-outer-name) 630:5 warning pylint:W0621 Redefining name 'sha256_format' from outer scope (line 805) (redefined-outer- name) 632:51 warning pylint:C0103 Variable name "f" doesn't conform to snake_case naming style (invalid-name) 644:101 warning pylint:C0301 Line too long (115/100) (line-too-long) 646:101 warning pylint:C0301 Line too long (127/100) (line-too-long) 649:1 warning pylint:C0111 Missing function docstring (missing-docstring) 655:101 warning pylint:C0301 Line too long (115/100) (line-too-long) 657:101 warning pylint:C0301 Line too long (105/100) (line-too-long) 658:101 warning pylint:C0301 Line too long (102/100) (line-too-long) 659:101 warning pylint:C0301 Line too long (105/100) (line-too-long) 660:101 warning pylint:C0301 Line too long (103/100) (line-too-long) 663:101 warning pylint:C0301 Line too long (107/100) (line-too-long) 665:101 warning pylint:C0301 Line too long (111/100) (line-too-long) 667:101 warning pylint:C0301 Line too long (105/100) (line-too-long) 668:101 warning pylint:C0301 Line too long (111/100) (line-too-long) 671:101 warning pylint:C0301 Line too long (127/100) (line-too-long) 674:101 warning pylint:C0301 Line too long (145/100) (line-too-long) 675:101 warning pylint:C0301 Line too long (125/100) (line-too-long) 685:1 warning pylint:C0111 Missing function docstring (missing-docstring) 685:1 warning pylint:R1710 Either all return statements in a function should return an expression, or none of them should. (inconsistent-return-statements) 692:13 warning pylint:W0621 Redefining name 'tcp_server_enabled' from outer scope (line 796) (redefined- outer-name) 693:13 warning pylint:W0621 Redefining name 'tcp_port_number' from outer scope (line 796) (redefined-outer- name) 697:13 warning pylint:W0621 Redefining name 'bluetooth_server_enabled' from outer scope (line 796) (redefined-outer-name) 698:13 warning pylint:W0621 Redefining name 'notification_timeout_milliseconds' from outer scope (line 797) (redefined-outer-name) 698:101 warning pylint:C0301 Line too long (115/100) (line-too-long) 707:101 warning pylint:C0301 Line too long (118/100) (line-too-long) 708:101 warning pylint:C0301 Line too long (126/100) (line-too-long) 714:17 warning pylint:W0621 Redefining name 'bluetooth_support_kitkat' from outer scope (line 796) (redefined-outer-name) 714:101 warning pylint:C0301 Line too long (108/100) (line-too-long) 717:101 warning pylint:C0301 Line too long (109/100) (line-too-long) 719:101 warning pylint:C0301 Line too long (104/100) (line-too-long) 720:101 warning pylint:C0301 Line too long (117/100) (line-too-long) 721:101 warning pylint:C0301 Line too long (108/100) (line-too-long) 723:101 warning pylint:C0301 Line too long (118/100) (line-too-long) 725:101 warning pylint:C0301 Line too long (104/100) (line-too-long) 726:9 warning pylint:C0103 Variable name "e" doesn't conform to snake_case naming style (invalid-name) 732:20 warning pylint:W0703 Catching too general exception Exception (broad-except) 737:1 warning pylint:C0111 Missing function docstring (missing-docstring) 737:13 warning pylint:W0613 Unused argument 'signum' (unused-argument) 737:21 warning pylint:W0613 Unused argument 'frame' (unused-argument) 754:1 warning pylint:C0111 Missing function docstring (missing-docstring) 756:9 warning pylint:C0103 Variable name "XDG_CONFIG_HOME" doesn't conform to snake_case naming style (invalid-name) 758:9 warning pylint:C0103 Variable name "XDG_CONFIG_HOME" doesn't conform to snake_case naming style (invalid-name) 760:5 warning pylint:C0103 Variable name "CONF_DIR_PATH" doesn't conform to snake_case naming style (invalid-name) 761:5 warning pylint:W0621 Redefining name 'CONF_FILE_PATH' from outer scope (line 794) (redefined-outer- name) 761:5 warning pylint:C0103 Variable name "CONF_FILE_PATH" doesn't conform to snake_case naming style (invalid-name) 763:5 warning pylint:W0621 Redefining name 'CERTIFICATE_PATH' from outer scope (line 794) (redefined-outer- name) 763:5 warning pylint:C0103 Variable name "CERTIFICATE_PATH" doesn't conform to snake_case naming style (invalid-name) 764:5 warning pylint:W0621 Redefining name 'RSA_PRIVATE_KEY_PATH' from outer scope (line 794) (redefined- outer-name) 764:5 warning pylint:C0103 Variable name "RSA_PRIVATE_KEY_PATH" doesn't conform to snake_case naming style (invalid-name) 765:5 warning pylint:W0621 Redefining name 'AUTHORIZED_CERTS_PATH' from outer scope (line 794) (redefined- outer-name) 765:5 warning pylint:C0103 Variable name "AUTHORIZED_CERTS_PATH" doesn't conform to snake_case naming style (invalid-name) 766:5 warning pylint:W0621 Redefining name 'DHPARAM_PATH' from outer scope (line 794) (redefined-outer- name) 766:5 warning pylint:C0103 Variable name "DHPARAM_PATH" doesn't conform to snake_case naming style (invalid-name) 768:5 warning pylint:C0103 Variable name "TMP_DIR_BASE" doesn't conform to snake_case naming style (invalid-name) 769:5 warning pylint:W0621 Redefining name 'TMP_DIR_PATH' from outer scope (line 794) (redefined-outer- name) 769:5 warning pylint:C0103 Variable name "TMP_DIR_PATH" doesn't conform to snake_case naming style (invalid-name) 785:9 warning pylint:C0103 Variable name "e" doesn't conform to snake_case naming style (invalid-name) 786:101 warning pylint:C0301 Line too long (118/100) (line-too-long) 790:101 warning pylint:C0301 Line too long (116/100) (line-too-long) 794:101 warning pylint:C0301 Line too long (118/100) (line-too-long) 796:5 warning pylint:C0103 Constant name "tcp_server_enabled" doesn't conform to UPPER_CASE naming style (invalid-name) 796:25 warning pylint:C0103 Constant name "tcp_port_number" doesn't conform to UPPER_CASE naming style (invalid-name) 796:42 warning pylint:C0103 Constant name "bluetooth_server_enabled" doesn't conform to UPPER_CASE naming style (invalid-name) 796:68 warning pylint:C0103 Constant name "bluetooth_support_kitkat" doesn't conform to UPPER_CASE naming style (invalid-name) 797:9 warning pylint:C0103 Constant name "notification_timeout_milliseconds" doesn't conform to UPPER_CASE naming style (invalid-name) 800:101 warning pylint:C0301 Line too long (117/100) (line-too-long) 804:5 warning pylint:C0103 Constant name "sha256" doesn't conform to UPPER_CASE naming style (invalid-name) 805:5 warning pylint:C0103 Constant name "sha256_format" doesn't conform to UPPER_CASE naming style (invalid-name) 816:5 warning pylint:C0103 Constant name "notif_tls_ctx" doesn't conform to UPPER_CASE naming style (invalid-name) 826:13 warning pylint:C0103 Constant name "tcp_server" doesn't conform to UPPER_CASE naming style (invalid- name) 827:16 warning pylint:W0703 Catching too general exception Exception (broad-except) 828:101 warning pylint:C0301 Line too long (103/100) (line-too-long) 829:13 warning pylint:C0103 Constant name "tcp_server" doesn't conform to UPPER_CASE naming style (invalid- name) 835:28 warning pylint:W0401 Wildcard import bluetooth (wildcard-import) 843:21 warning pylint:C0103 Variable name "e" doesn't conform to snake_case naming style (invalid-name) 843:28 warning pylint:W0703 Catching too general exception Exception (broad-except) 844:101 warning pylint:C0301 Line too long (116/100) (line-too-long) 845:101 warning pylint:C0301 Line too long (103/100) (line-too-long) 847:17 warning pylint:C0103 Constant name "notif_tls_ctx_kitkat_bt" doesn't conform to UPPER_CASE naming style (invalid-name) 854:13 warning pylint:C0103 Constant name "bluetooth_server" doesn't conform to UPPER_CASE naming style (invalid-name) 858:9 warning pylint:C0103 Variable name "e" doesn't conform to snake_case naming style (invalid-name) 859:13 warning pylint:C0103 Constant name "bluetooth_server_enabled" doesn't conform to UPPER_CASE naming style (invalid-name) 864:5 warning pylint:C0103 Constant name "main_loop" doesn't conform to UPPER_CASE naming style (invalid- name)
thanks!