codacy / codacy-pylint-python3

Pylint tool for Codacy
Other
0 stars 7 forks source link

[TS-725] The Python files from the `./src` directory do not satisfy pylint rules. #194

Closed drew2a closed 1 month ago

drew2a commented 8 months ago
➜ pylint ./src
************* Module codacy_pylint_test
src/codacy_pylint_test.py:40:0: C0301: Line too long (107/100) (line-too-long)
src/codacy_pylint_test.py:66:0: C0301: Line too long (132/100) (line-too-long)
src/codacy_pylint_test.py:67:0: C0303: Trailing whitespace (trailing-whitespace)
src/codacy_pylint_test.py:68:0: C0301: Line too long (105/100) (line-too-long)
src/codacy_pylint_test.py:69:0: C0303: Trailing whitespace (trailing-whitespace)
src/codacy_pylint_test.py:74:0: C0301: Line too long (116/100) (line-too-long)
src/codacy_pylint_test.py:77:0: C0301: Line too long (103/100) (line-too-long)
src/codacy_pylint_test.py:80:0: C0301: Line too long (111/100) (line-too-long)
src/codacy_pylint_test.py:95:0: C0301: Line too long (111/100) (line-too-long)
src/codacy_pylint_test.py:1:0: C0114: Missing module docstring (missing-module-docstring)
src/codacy_pylint_test.py:1:0: W0401: Wildcard import codacy_pylint (wildcard-import)
src/codacy_pylint_test.py:5:0: C0116: Missing function or method docstring (missing-function-docstring)
src/codacy_pylint_test.py:5:0: C0103: Function name "withConfigAndSources" doesn't conform to snake_case naming style (invalid-name)
src/codacy_pylint_test.py:7:8: C0103: Variable name "codacyrcPath" doesn't conform to snake_case naming style (invalid-name)
src/codacy_pylint_test.py:8:13: W1514: Using open without explicitly specifying an encoding (unspecified-encoding)
src/codacy_pylint_test.py:11:17: W1514: Using open without explicitly specifying an encoding (unspecified-encoding)
src/codacy_pylint_test.py:15:0: C0116: Missing function or method docstring (missing-function-docstring)
src/codacy_pylint_test.py:43:0: C0115: Missing class docstring (missing-class-docstring)
src/codacy_pylint_test.py:44:4: C0116: Missing function or method docstring (missing-function-docstring)
src/codacy_pylint_test.py:44:4: C0103: Method name "test_toJson" doesn't conform to snake_case naming style (invalid-name)
src/codacy_pylint_test.py:50:0: C0115: Missing class docstring (missing-class-docstring)
src/codacy_pylint_test.py:52:4: C0116: Missing function or method docstring (missing-function-docstring)
src/codacy_pylint_test.py:62:4: C0116: Missing function or method docstring (missing-function-docstring)
src/codacy_pylint_test.py:62:4: C0103: Method name "test_readConfiguration" doesn't conform to snake_case naming style (invalid-name)
src/codacy_pylint_test.py:64:12: C0103: Variable name "codacyrcPath" doesn't conform to snake_case naming style (invalid-name)
src/codacy_pylint_test.py:65:17: W1514: Using open without explicitly specifying an encoding (unspecified-encoding)
src/codacy_pylint_test.py:68:12: C0103: Variable name "expectedConfiguration" doesn't conform to snake_case naming style (invalid-name)
src/codacy_pylint_test.py:73:4: C0116: Missing function or method docstring (missing-function-docstring)
src/codacy_pylint_test.py:79:4: C0116: Missing function or method docstring (missing-function-docstring)
src/codacy_pylint_test.py:79:4: C0103: Method name "test_E0711" doesn't conform to snake_case naming style (invalid-name)
src/codacy_pylint_test.py:94:4: C0116: Missing function or method docstring (missing-function-docstring)
src/codacy_pylint_test.py:94:4: C0103: Method name "test_E1125" doesn't conform to snake_case naming style (invalid-name)
src/codacy_pylint_test.py:124:4: C0116: Missing function or method docstring (missing-function-docstring)
src/codacy_pylint_test.py:131:4: C0116: Missing function or method docstring (missing-function-docstring)
src/codacy_pylint_test.py:136:4: C0116: Missing function or method docstring (missing-function-docstring)
src/codacy_pylint_test.py:2:0: C0411: standard import "import unittest" should be placed before "from codacy_pylint import *" (wrong-import-order)
src/codacy_pylint_test.py:3:0: C0411: standard import "import tempfile" should be placed before "from codacy_pylint import *" (wrong-import-order)
src/codacy_pylint_test.py:1:0: W0614: Unused import(s) sys, json, jsonpickle, ast, glob, re, signal, traceback, timeout, readJsonFile, runPylint, isPython3, blacklist, parseResult, walkDirectory, parametersFromJson, parametersSections, pyconfigString, runPylintWith, resultsToJson, results, Popen, PIPE, groupby and contextmanager from wildcard import of codacy_pylint (unused-wildcard-import)
************* Module codacy_pylint
src/codacy_pylint.py:40:0: C0301: Line too long (130/100) (line-too-long)
src/codacy_pylint.py:96:0: C0301: Line too long (130/100) (line-too-long)
src/codacy_pylint.py:101:0: C0301: Line too long (105/100) (line-too-long)
src/codacy_pylint.py:211:0: C0301: Line too long (117/100) (line-too-long)
src/codacy_pylint.py:1:0: C0114: Missing module docstring (missing-module-docstring)
src/codacy_pylint.py:16:0: C0116: Missing function or method docstring (missing-function-docstring)
src/codacy_pylint.py:24:0: C0116: Missing function or method docstring (missing-function-docstring)
src/codacy_pylint.py:24:0: C0103: Function name "getTimeout" doesn't conform to snake_case naming style (invalid-name)
src/codacy_pylint.py:24:15: C0103: Argument name "timeoutString" doesn't conform to snake_case naming style (invalid-name)
src/codacy_pylint.py:29:0: C0115: Missing class docstring (missing-class-docstring)
src/codacy_pylint.py:33:8: C0103: Attribute name "patternId" doesn't conform to snake_case naming style (invalid-name)
src/codacy_pylint.py:30:42: C0103: Argument name "patternId" doesn't conform to snake_case naming style (invalid-name)
src/codacy_pylint.py:42:0: C0115: Missing class docstring (missing-class-docstring)
src/codacy_pylint.py:54:0: C0116: Missing function or method docstring (missing-function-docstring)
src/codacy_pylint.py:54:0: C0103: Function name "toJson" doesn't conform to snake_case naming style (invalid-name)
src/codacy_pylint.py:54:17: C0321: More than one statement on a single line (multiple-statements)
src/codacy_pylint.py:56:0: C0116: Missing function or method docstring (missing-function-docstring)
src/codacy_pylint.py:56:0: C0103: Function name "readJsonFile" doesn't conform to snake_case naming style (invalid-name)
src/codacy_pylint.py:57:9: W1514: Using open without explicitly specifying an encoding (unspecified-encoding)
src/codacy_pylint.py:61:0: C0116: Missing function or method docstring (missing-function-docstring)
src/codacy_pylint.py:61:0: C0103: Function name "runPylint" doesn't conform to snake_case naming style (invalid-name)
src/codacy_pylint.py:62:14: R1732: Consider using 'with' for resource-allocating operations (consider-using-with)
src/codacy_pylint.py:70:0: C0116: Missing function or method docstring (missing-function-docstring)
src/codacy_pylint.py:70:0: C0103: Function name "isPython3" doesn't conform to snake_case naming style (invalid-name)
src/codacy_pylint.py:83:11: W0718: Catching too general exception Exception (broad-exception-caught)
src/codacy_pylint.py:72:13: W1514: Using open without explicitly specifying an encoding (unspecified-encoding)
src/codacy_pylint.py:73:12: R1705: Unnecessary "else" after "return", remove the "else" and de-indent the code inside it (no-else-return)
src/codacy_pylint.py:88:0: C0116: Missing function or method docstring (missing-function-docstring)
src/codacy_pylint.py:88:0: C0103: Function name "parseMessage" doesn't conform to snake_case naming style (invalid-name)
src/codacy_pylint.py:94:0: C0116: Missing function or method docstring (missing-function-docstring)
src/codacy_pylint.py:94:0: C0103: Function name "parseResult" doesn't conform to snake_case naming style (invalid-name)
src/codacy_pylint.py:97:4: C0103: Function name "createResults" doesn't conform to snake_case naming style (invalid-name)
src/codacy_pylint.py:99:13: C0103: Variable name "patternId" doesn't conform to snake_case naming style (invalid-name)
src/codacy_pylint.py:104:0: C0116: Missing function or method docstring (missing-function-docstring)
src/codacy_pylint.py:104:0: C0103: Function name "walkDirectory" doesn't conform to snake_case naming style (invalid-name)
src/codacy_pylint.py:111:0: C0116: Missing function or method docstring (missing-function-docstring)
src/codacy_pylint.py:111:0: C0103: Function name "parametersFromJson" doesn't conform to snake_case naming style (invalid-name)
src/codacy_pylint.py:111:23: C0103: Argument name "jsonObject" doesn't conform to snake_case naming style (invalid-name)
src/codacy_pylint.py:192:0: C0116: Missing function or method docstring (missing-function-docstring)
src/codacy_pylint.py:192:0: C0103: Function name "pyconfigString" doesn't conform to snake_case naming style (invalid-name)
src/codacy_pylint.py:198:4: R1705: Unnecessary "else" after "return", remove the "else" and de-indent the code inside it (no-else-return)
src/codacy_pylint.py:203:0: C0116: Missing function or method docstring (missing-function-docstring)
src/codacy_pylint.py:203:0: C0103: Function name "readConfiguration" doesn't conform to snake_case naming style (invalid-name)
src/codacy_pylint.py:203:22: C0103: Argument name "configFile" doesn't conform to snake_case naming style (invalid-name)
src/codacy_pylint.py:203:34: C0103: Argument name "srcDir" doesn't conform to snake_case naming style (invalid-name)
src/codacy_pylint.py:204:4: C0103: Function name "allFiles" doesn't conform to snake_case naming style (invalid-name)
src/codacy_pylint.py:204:20: C0321: More than one statement on a single line (multiple-statements)
src/codacy_pylint.py:217:11: W0718: Catching too general exception Exception (broad-exception-caught)
src/codacy_pylint.py:222:0: C0116: Missing function or method docstring (missing-function-docstring)
src/codacy_pylint.py:225:0: C0116: Missing function or method docstring (missing-function-docstring)
src/codacy_pylint.py:225:0: C0103: Function name "runPylintWith" doesn't conform to snake_case naming style (invalid-name)
src/codacy_pylint.py:239:0: C0116: Missing function or method docstring (missing-function-docstring)
src/codacy_pylint.py:239:0: C0103: Function name "runTool" doesn't conform to snake_case naming style (invalid-name)
src/codacy_pylint.py:239:12: C0103: Argument name "configFile" doesn't conform to snake_case naming style (invalid-name)
src/codacy_pylint.py:239:24: C0103: Argument name "srcDir" doesn't conform to snake_case naming style (invalid-name)
src/codacy_pylint.py:246:17: W1514: Using open without explicitly specifying an encoding (unspecified-encoding)
src/codacy_pylint.py:251:8: C0103: Variable name "filesWithPath" doesn't conform to snake_case naming style (invalid-name)
src/codacy_pylint.py:259:0: C0116: Missing function or method docstring (missing-function-docstring)
src/codacy_pylint.py:259:0: C0103: Function name "resultsToJson" doesn't conform to snake_case naming style (invalid-name)
src/codacy_pylint.py:259:18: W0621: Redefining name 'results' from outer scope (line 265) (redefined-outer-name)
src/codacy_pylint.py:267:15: W0718: Catching too general exception Exception (broad-exception-caught)
src/codacy_pylint.py:5:0: C0411: standard import "from subprocess import Popen, PIPE" should be placed before "import jsonpickle" (wrong-import-order)
src/codacy_pylint.py:6:0: C0411: standard import "import ast" should be placed before "import jsonpickle" (wrong-import-order)
src/codacy_pylint.py:7:0: C0411: standard import "from itertools import groupby" should be placed before "import jsonpickle" (wrong-import-order)
src/codacy_pylint.py:8:0: C0411: standard import "import glob" should be placed before "import jsonpickle" (wrong-import-order)
src/codacy_pylint.py:9:0: C0411: standard import "import re" should be placed before "import jsonpickle" (wrong-import-order)
src/codacy_pylint.py:10:0: C0411: standard import "import signal" should be placed before "import jsonpickle" (wrong-import-order)
src/codacy_pylint.py:11:0: C0411: standard import "from contextlib import contextmanager" should be placed before "import jsonpickle" (wrong-import-order)
src/codacy_pylint.py:12:0: C0411: standard import "import tempfile" should be placed before "import jsonpickle" (wrong-import-order)
src/codacy_pylint.py:13:0: C0411: standard import "import traceback" should be placed before "import jsonpickle" (wrong-import-order)

-----------------------------------
Your code has been rated at 5.16/10
github-actions[bot] commented 8 months ago

Internal ticket created : TS-725

DMarinhoCodacy commented 1 month ago

Hello! Thanks for the information. We'll take into consideration your feedback. Don't hesitate to contact our Support team anytime.