Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
drew2a opened this issue Jan 2, 2024 · 2 comments
Labels
jira-issue Issue tracked on JIRA

Comments

@drew2a
Copy link

drew2a commented Jan 2, 2024

➜ 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 github-actions bot added the jira-issue Issue tracked on JIRA label Jan 2, 2024
@github-actions github-actions bot changed the title The Python files from the ./src directory do not satisfy pylint rules. [TS-725] The Python files from the ./src directory do not satisfy pylint rules. Jan 2, 2024
Copy link

github-actions bot commented Jan 2, 2024

Internal ticket created : TS-725

@DMarinhoCodacy
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
jira-issue Issue tracked on JIRA
Projects
None yet
Development

No branches or pull requests

2 participants