Created
July 5, 2019 04:15
-
-
Save patarapolw/5ec832805907b2bf5e46d837ef055223 to your computer and use it in GitHub Desktop.
Pylint example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
************* Module src.test.test_search | |
src/test/test_search.py:1:0: C0111: Missing module docstring (missing-docstring) | |
src/test/test_search.py:4:0: C0111: Missing function docstring (missing-docstring) | |
src/test/test_search.py:8:0: C0111: Missing function docstring (missing-docstring) | |
************* Module src.python.server | |
src/python/server.py:1:0: C0111: Missing module docstring (missing-docstring) | |
src/python/server.py:17:0: C0103: Constant name "app" doesn't conform to UPPER_CASE naming style (invalid-name) | |
src/python/server.py:18:0: C0103: Constant name "socketio" doesn't conform to UPPER_CASE naming style (invalid-name) | |
src/python/server.py:28:0: C0111: Missing function docstring (missing-docstring) | |
src/python/server.py:33:0: C0111: Missing function docstring (missing-docstring) | |
src/python/server.py:40:0: C0103: Argument name "e" doesn't conform to snake_case naming style (invalid-name) | |
src/python/server.py:40:0: C0111: Missing function docstring (missing-docstring) | |
src/python/server.py:46:0: C0111: Missing function docstring (missing-docstring) | |
src/python/server.py:50:0: C0111: Missing function docstring (missing-docstring) | |
src/python/server.py:9:0: W0611: Unused gevent imported from engineio.async_drivers (unused-import) | |
src/python/server.py:5:0: C0411: standard import "import sqlite3" should be placed before "from flask import Flask, jsonify, redirect" (wrong-import-order) | |
src/python/server.py:6:0: C0411: standard import "import traceback" should be placed before "from flask import Flask, jsonify, redirect" (wrong-import-order) | |
************* Module src.python.shared | |
src/python/shared.py:23:0: C0301: Line too long (109/100) (line-too-long) | |
src/python/shared.py:1:0: C0111: Missing module docstring (missing-docstring) | |
src/python/shared.py:15:0: C0111: Missing function docstring (missing-docstring) | |
src/python/shared.py:20:0: C0111: Missing class docstring (missing-docstring) | |
src/python/shared.py:20:0: R0903: Too few public methods (0/2) (too-few-public-methods) | |
src/python/shared.py:2:0: C0411: standard import "import os" should be placed before "import appdirs" (wrong-import-order) | |
src/python/shared.py:3:0: C0411: standard import "from pathlib import Path" should be placed before "import appdirs" (wrong-import-order) | |
src/python/shared.py:4:0: C0411: standard import "import atexit" should be placed before "import appdirs" (wrong-import-order) | |
src/python/shared.py:5:0: C0411: standard import "import shutil" should be placed before "import appdirs" (wrong-import-order) | |
************* Module src.python.api.quiz | |
src/python/api/quiz.py:104:0: C0301: Line too long (102/100) (line-too-long) | |
src/python/api/quiz.py:1:0: C0111: Missing module docstring (missing-docstring) | |
src/python/api/quiz.py:9:0: C0103: Constant name "api_quiz" doesn't conform to UPPER_CASE naming style (invalid-name) | |
src/python/api/quiz.py:13:0: C0111: Missing function docstring (missing-docstring) | |
src/python/api/quiz.py:18:16: C0103: Variable name "c" doesn't conform to snake_case naming style (invalid-name) | |
src/python/api/quiz.py:46:4: C0103: Variable name "db" doesn't conform to snake_case naming style (invalid-name) | |
src/python/api/quiz.py:55:8: C0103: Variable name "d" doesn't conform to snake_case naming style (invalid-name) | |
src/python/api/quiz.py:63:8: C0103: Variable name "d" doesn't conform to snake_case naming style (invalid-name) | |
src/python/api/quiz.py:71:0: C0111: Missing function docstring (missing-docstring) | |
src/python/api/quiz.py:72:4: C0103: Variable name "r" doesn't conform to snake_case naming style (invalid-name) | |
src/python/api/quiz.py:103:4: C0103: Variable name "db" doesn't conform to snake_case naming style (invalid-name) | |
src/python/api/quiz.py:110:0: C0111: Missing function docstring (missing-docstring) | |
src/python/api/quiz.py:111:4: C0103: Variable name "db" doesn't conform to snake_case naming style (invalid-name) | |
src/python/api/quiz.py:112:4: C0103: Variable name "c" doesn't conform to snake_case naming style (invalid-name) | |
src/python/api/quiz.py:118:0: C0111: Missing function docstring (missing-docstring) | |
src/python/api/quiz.py:120:4: C0103: Variable name "db" doesn't conform to snake_case naming style (invalid-name) | |
src/python/api/quiz.py:127:0: C0111: Missing function docstring (missing-docstring) | |
src/python/api/quiz.py:129:4: C0103: Variable name "db" doesn't conform to snake_case naming style (invalid-name) | |
src/python/api/quiz.py:2:0: C0411: standard import "from datetime import datetime" should be placed before "from flask import Blueprint, request, jsonify" (wrong-import-order) | |
src/python/api/quiz.py:3:0: C0411: standard import "from typing import List" should be placed before "from flask import Blueprint, request, jsonify" (wrong-import-order) | |
************* Module src.python.api.media | |
src/python/api/media.py:1:0: C0111: Missing module docstring (missing-docstring) | |
src/python/api/media.py:6:0: C0103: Constant name "api_media" doesn't conform to UPPER_CASE naming style (invalid-name) | |
src/python/api/media.py:10:0: C0111: Missing function docstring (missing-docstring) | |
src/python/api/media.py:11:4: C0103: Variable name "db" doesn't conform to snake_case naming style (invalid-name) | |
src/python/api/media.py:12:10: C0103: Variable name "b" doesn't conform to snake_case naming style (invalid-name) | |
src/python/api/media.py:22:0: C0103: Argument name "p" doesn't conform to snake_case naming style (invalid-name) | |
src/python/api/media.py:22:0: C0111: Missing function docstring (missing-docstring) | |
src/python/api/media.py:27:0: C0111: Missing function docstring (missing-docstring) | |
src/python/api/media.py:2:0: C0411: standard import "from io import BytesIO" should be placed before "from flask import Blueprint, send_file, jsonify, send_from_directory" (wrong-import-order) | |
************* Module src.python.api.io | |
src/python/api/io.py:73:0: C0301: Line too long (120/100) (line-too-long) | |
src/python/api/io.py:1:0: C0111: Missing module docstring (missing-docstring) | |
src/python/api/io.py:12:0: C0103: Constant name "api_io" doesn't conform to UPPER_CASE naming style (invalid-name) | |
src/python/api/io.py:18:0: C0111: Missing function docstring (missing-docstring) | |
src/python/api/io.py:19:4: C0103: Variable name "f" doesn't conform to snake_case naming style (invalid-name) | |
src/python/api/io.py:29:0: C0111: Missing function docstring (missing-docstring) | |
src/python/api/io.py:43:4: C0103: Variable name "e" doesn't conform to snake_case naming style (invalid-name) | |
src/python/api/io.py:51:0: C0111: Missing function docstring (missing-docstring) | |
src/python/api/io.py:53:8: R1705: Unnecessary "else" after "return" (no-else-return) | |
src/python/api/io.py:64:4: C0103: Variable name "db" doesn't conform to snake_case naming style (invalid-name) | |
src/python/api/io.py:3:0: C0411: standard import "from uuid import uuid4" should be placed before "from flask import Blueprint, request, jsonify, send_file" (wrong-import-order) | |
************* Module src.python.api.editor | |
src/python/api/editor.py:41:0: C0301: Line too long (111/100) (line-too-long) | |
src/python/api/editor.py:1:0: C0111: Missing module docstring (missing-docstring) | |
src/python/api/editor.py:8:0: C0103: Constant name "api_editor" doesn't conform to UPPER_CASE naming style (invalid-name) | |
src/python/api/editor.py:12:0: C0111: Missing function docstring (missing-docstring) | |
src/python/api/editor.py:12:0: R0914: Too many local variables (16/15) (too-many-locals) | |
src/python/api/editor.py:13:4: C0103: Variable name "r" doesn't conform to snake_case naming style (invalid-name) | |
src/python/api/editor.py:14:4: C0103: Variable name "db" doesn't conform to snake_case naming style (invalid-name) | |
src/python/api/editor.py:16:4: R1705: Unnecessary "elif" after "return" (no-else-return) | |
src/python/api/editor.py:46:16: C0103: Variable name "v" doesn't conform to snake_case naming style (invalid-name) | |
src/python/api/editor.py:79:12: R1705: Unnecessary "else" after "return" (no-else-return) | |
src/python/api/editor.py:12:0: R0912: Too many branches (28/12) (too-many-branches) | |
src/python/api/editor.py:12:0: R0915: Too many statements (60/50) (too-many-statements) | |
src/python/api/editor.py:110:0: C0111: Missing function docstring (missing-docstring) | |
src/python/api/editor.py:111:4: C0103: Variable name "d" doesn't conform to snake_case naming style (invalid-name) | |
src/python/api/editor.py:118:0: C0111: Missing function docstring (missing-docstring) | |
src/python/api/editor.py:119:4: C0103: Variable name "d" doesn't conform to snake_case naming style (invalid-name) | |
src/python/api/editor.py:2:0: C0411: standard import "from random import shuffle" should be placed before "from flask import Blueprint, request, Response, jsonify" (wrong-import-order) | |
************* Module src.python.engine.db | |
src/python/engine/db.py:261:0: C0301: Line too long (104/100) (line-too-long) | |
src/python/engine/db.py:310:0: C0330: Wrong hanging indentation before block (add 4 spaces). | |
"nextReview", "created", "modified", | |
^ | (bad-continuation) | |
src/python/engine/db.py:311:0: C0330: Wrong hanging indentation before block (add 4 spaces). | |
"front", "back", "mnemonic", "srsLevel" | |
^ | (bad-continuation) | |
src/python/engine/db.py:446:0: C0301: Line too long (108/100) (line-too-long) | |
src/python/engine/db.py:472:0: C0301: Line too long (111/100) (line-too-long) | |
src/python/engine/db.py:1:0: C0111: Missing module docstring (missing-docstring) | |
src/python/engine/db.py:14:0: C0111: Missing class docstring (missing-docstring) | |
src/python/engine/db.py:80:4: C0111: Missing method docstring (missing-docstring) | |
src/python/engine/db.py:87:4: C0103: Method name "insertMany" doesn't conform to snake_case naming style (invalid-name) | |
src/python/engine/db.py:87:4: C0111: Missing method docstring (missing-docstring) | |
src/python/engine/db.py:90:8: C0103: Variable name "deckNameToId" doesn't conform to snake_case naming style (invalid-name) | |
src/python/engine/db.py:94:8: C0103: Variable name "sourceHToId" doesn't conform to snake_case naming style (invalid-name) | |
src/python/engine/db.py:95:8: C0103: Variable name "sourceSet" doesn't conform to snake_case naming style (invalid-name) | |
src/python/engine/db.py:96:12: C0103: Variable name "e" doesn't conform to snake_case naming style (invalid-name) | |
src/python/engine/db.py:111:8: C0103: Variable name "templateKeyToId" doesn't conform to snake_case naming style (invalid-name) | |
src/python/engine/db.py:112:12: C0103: Variable name "e" doesn't conform to snake_case naming style (invalid-name) | |
src/python/engine/db.py:137:8: C0103: Variable name "noteKeyToId" doesn't conform to snake_case naming style (invalid-name) | |
src/python/engine/db.py:138:12: C0103: Variable name "e" doesn't conform to snake_case naming style (invalid-name) | |
src/python/engine/db.py:141:20: C0103: Variable name "noteId" doesn't conform to snake_case naming style (invalid-name) | |
src/python/engine/db.py:150:20: C0103: Variable name "noteId" doesn't conform to snake_case naming style (invalid-name) | |
src/python/engine/db.py:160:8: C0103: Variable name "cardIds" doesn't conform to snake_case naming style (invalid-name) | |
src/python/engine/db.py:161:12: C0103: Variable name "e" doesn't conform to snake_case naming style (invalid-name) | |
src/python/engine/db.py:162:12: C0103: Variable name "cardId" doesn't conform to snake_case naming style (invalid-name) | |
src/python/engine/db.py:180:20: C0103: Variable name "t" doesn't conform to snake_case naming style (invalid-name) | |
src/python/engine/db.py:202:4: C0103: Method name "getAll" doesn't conform to snake_case naming style (invalid-name) | |
src/python/engine/db.py:202:4: C0111: Missing method docstring (missing-docstring) | |
src/python/engine/db.py:203:8: C0103: Variable name "c" doesn't conform to snake_case naming style (invalid-name) | |
src/python/engine/db.py:235:12: C0103: Variable name "r" doesn't conform to snake_case naming style (invalid-name) | |
src/python/engine/db.py:249:4: C0103: Method name "getOrCreateDeck" doesn't conform to snake_case naming style (invalid-name) | |
src/python/engine/db.py:249:4: C0111: Missing method docstring (missing-docstring) | |
src/python/engine/db.py:261:4: C0103: Method name "transformCreateOrUpdate" doesn't conform to snake_case naming style (invalid-name) | |
src/python/engine/db.py:261:4: C0103: Argument name "cId" doesn't conform to snake_case naming style (invalid-name) | |
src/python/engine/db.py:261:4: C0103: Argument name "u" doesn't conform to snake_case naming style (invalid-name) | |
src/python/engine/db.py:261:4: C0111: Missing method docstring (missing-docstring) | |
src/python/engine/db.py:294:4: C0103: Argument name "cId" doesn't conform to snake_case naming style (invalid-name) | |
src/python/engine/db.py:294:4: C0103: Argument name "u" doesn't conform to snake_case naming style (invalid-name) | |
src/python/engine/db.py:294:4: C0103: Argument name "doCommit" doesn't conform to snake_case naming style (invalid-name) | |
src/python/engine/db.py:294:4: C0111: Missing method docstring (missing-docstring) | |
src/python/engine/db.py:301:15: C0103: Variable name "v" doesn't conform to snake_case naming style (invalid-name) | |
src/python/engine/db.py:303:16: C0103: Variable name "deckId" doesn't conform to snake_case naming style (invalid-name) | |
src/python/engine/db.py:314:20: C0103: Variable name "v" doesn't conform to snake_case naming style (invalid-name) | |
src/python/engine/db.py:338:16: C0103: Variable name "prevTags" doesn't conform to snake_case naming style (invalid-name) | |
src/python/engine/db.py:342:16: C0103: Variable name "v" doesn't conform to snake_case naming style (invalid-name) | |
src/python/engine/db.py:351:20: C0103: Variable name "vn" doesn't conform to snake_case naming style (invalid-name) | |
src/python/engine/db.py:352:20: C0103: Variable name "isNew" doesn't conform to snake_case naming style (invalid-name) | |
src/python/engine/db.py:353:27: C0103: Variable name "d" doesn't conform to snake_case naming style (invalid-name) | |
src/python/engine/db.py:356:28: C0103: Variable name "isNew" doesn't conform to snake_case naming style (invalid-name) | |
src/python/engine/db.py:366:20: C0103: Variable name "noteId" doesn't conform to snake_case naming style (invalid-name) | |
src/python/engine/db.py:294:4: R0912: Too many branches (17/12) (too-many-branches) | |
src/python/engine/db.py:388:4: C0103: Method name "updateMany" doesn't conform to snake_case naming style (invalid-name) | |
src/python/engine/db.py:388:4: C0103: Argument name "cIds" doesn't conform to snake_case naming style (invalid-name) | |
src/python/engine/db.py:388:4: C0103: Argument name "u" doesn't conform to snake_case naming style (invalid-name) | |
src/python/engine/db.py:388:4: C0111: Missing method docstring (missing-docstring) | |
src/python/engine/db.py:392:12: C0103: Variable name "cId" doesn't conform to snake_case naming style (invalid-name) | |
src/python/engine/db.py:397:4: C0103: Method name "getFront" doesn't conform to snake_case naming style (invalid-name) | |
src/python/engine/db.py:397:4: C0103: Argument name "cId" doesn't conform to snake_case naming style (invalid-name) | |
src/python/engine/db.py:397:4: C0111: Missing method docstring (missing-docstring) | |
src/python/engine/db.py:403:12: C0103: Variable name "tFront" doesn't conform to snake_case naming style (invalid-name) | |
src/python/engine/db.py:417:4: C0103: Method name "getData" doesn't conform to snake_case naming style (invalid-name) | |
src/python/engine/db.py:417:4: C0103: Argument name "cId" doesn't conform to snake_case naming style (invalid-name) | |
src/python/engine/db.py:417:4: C0111: Missing method docstring (missing-docstring) | |
src/python/engine/db.py:423:4: C0103: Argument name "cId" doesn't conform to snake_case naming style (invalid-name) | |
src/python/engine/db.py:423:4: C0111: Missing method docstring (missing-docstring) | |
src/python/engine/db.py:430:4: C0103: Method name "deleteMany" doesn't conform to snake_case naming style (invalid-name) | |
src/python/engine/db.py:430:4: C0103: Argument name "cIds" doesn't conform to snake_case naming style (invalid-name) | |
src/python/engine/db.py:430:4: C0111: Missing method docstring (missing-docstring) | |
src/python/engine/db.py:437:4: C0103: Method name "getTags" doesn't conform to snake_case naming style (invalid-name) | |
src/python/engine/db.py:437:4: C0103: Argument name "cId" doesn't conform to snake_case naming style (invalid-name) | |
src/python/engine/db.py:437:4: C0111: Missing method docstring (missing-docstring) | |
src/python/engine/db.py:446:4: C0103: Method name "addTags" doesn't conform to snake_case naming style (invalid-name) | |
src/python/engine/db.py:446:4: C0103: Argument name "cId" doesn't conform to snake_case naming style (invalid-name) | |
src/python/engine/db.py:446:4: C0103: Argument name "doCommit" doesn't conform to snake_case naming style (invalid-name) | |
src/python/engine/db.py:446:4: C0103: Argument name "prevTags" doesn't conform to snake_case naming style (invalid-name) | |
src/python/engine/db.py:446:4: C0111: Missing method docstring (missing-docstring) | |
src/python/engine/db.py:450:12: C0103: Variable name "t" doesn't conform to snake_case naming style (invalid-name) | |
src/python/engine/db.py:472:4: C0103: Method name "removeTags" doesn't conform to snake_case naming style (invalid-name) | |
src/python/engine/db.py:472:4: C0103: Argument name "cId" doesn't conform to snake_case naming style (invalid-name) | |
src/python/engine/db.py:472:4: C0103: Argument name "doCommit" doesn't conform to snake_case naming style (invalid-name) | |
src/python/engine/db.py:472:4: C0103: Argument name "prevTags" doesn't conform to snake_case naming style (invalid-name) | |
src/python/engine/db.py:472:4: C0111: Missing method docstring (missing-docstring) | |
src/python/engine/db.py:476:12: C0103: Variable name "t" doesn't conform to snake_case naming style (invalid-name) | |
src/python/engine/db.py:490:4: C0103: Method name "parseCond" doesn't conform to snake_case naming style (invalid-name) | |
src/python/engine/db.py:490:4: C0111: Missing method docstring (missing-docstring) | |
src/python/engine/db.py:496:19: C0103: Variable name "v" doesn't conform to snake_case naming style (invalid-name) | |
src/python/engine/db.py:502:8: C0103: Variable name "sortBy" doesn't conform to snake_case naming style (invalid-name) | |
src/python/engine/db.py:504:12: C0103: Variable name "sortBy" doesn't conform to snake_case naming style (invalid-name) | |
src/python/engine/db.py:506:12: C0103: Variable name "sortBy" doesn't conform to snake_case naming style (invalid-name) | |
src/python/engine/db.py:516:12: C0103: Variable name "sortKey" doesn't conform to snake_case naming style (invalid-name) | |
src/python/engine/db.py:518:8: C0103: Variable name "allCards" doesn't conform to snake_case naming style (invalid-name) | |
src/python/engine/db.py:520:12: C0103: Variable name "endPoint" doesn't conform to snake_case naming style (invalid-name) | |
src/python/engine/db.py:522:12: C0103: Variable name "endPoint" doesn't conform to snake_case naming style (invalid-name) | |
src/python/engine/db.py:529:4: C0103: Argument name "cardId" doesn't conform to snake_case naming style (invalid-name) | |
src/python/engine/db.py:529:4: C0111: Missing method docstring (missing-docstring) | |
src/python/engine/db.py:530:8: C0103: Variable name "c" doesn't conform to snake_case naming style (invalid-name) | |
src/python/engine/db.py:558:4: C0103: Method name "markRight" doesn't conform to snake_case naming style (invalid-name) | |
src/python/engine/db.py:558:4: C0103: Argument name "cardId" doesn't conform to snake_case naming style (invalid-name) | |
src/python/engine/db.py:558:4: C0111: Missing method docstring (missing-docstring) | |
src/python/engine/db.py:561:4: C0103: Method name "markWrong" doesn't conform to snake_case naming style (invalid-name) | |
src/python/engine/db.py:561:4: C0103: Argument name "cardId" doesn't conform to snake_case naming style (invalid-name) | |
src/python/engine/db.py:561:4: C0111: Missing method docstring (missing-docstring) | |
src/python/engine/db.py:564:4: C0103: Method name "_updateCard" doesn't conform to snake_case naming style (invalid-name) | |
src/python/engine/db.py:564:4: C0103: Argument name "dSrsLevel" doesn't conform to snake_case naming style (invalid-name) | |
src/python/engine/db.py:564:4: C0103: Argument name "cardId" doesn't conform to snake_case naming style (invalid-name) | |
src/python/engine/db.py:565:8: C0103: Variable name "srsLevel" doesn't conform to snake_case naming style (invalid-name) | |
src/python/engine/db.py:576:12: C0103: Variable name "srsLevel" doesn't conform to snake_case naming style (invalid-name) | |
src/python/engine/db.py:583:8: C0103: Variable name "srsLevel" doesn't conform to snake_case naming style (invalid-name) | |
src/python/engine/db.py:586:12: C0103: Variable name "srsLevel" doesn't conform to snake_case naming style (invalid-name) | |
src/python/engine/db.py:589:12: C0103: Variable name "srsLevel" doesn't conform to snake_case naming style (invalid-name) | |
src/python/engine/db.py:592:12: C0103: Variable name "nextReview" doesn't conform to snake_case naming style (invalid-name) | |
src/python/engine/db.py:594:12: C0103: Variable name "nextReview" doesn't conform to snake_case naming style (invalid-name) | |
************* Module src.python.engine.quiz | |
src/python/engine/quiz.py:1:0: C0111: Missing module docstring (missing-docstring) | |
src/python/engine/quiz.py:3:0: C0103: Constant name "srsMap" doesn't conform to UPPER_CASE naming style (invalid-name) | |
src/python/engine/quiz.py:15:0: C0103: Function name "getNextReview" doesn't conform to snake_case naming style (invalid-name) | |
src/python/engine/quiz.py:15:0: C0111: Missing function docstring (missing-docstring) | |
src/python/engine/quiz.py:22:0: C0103: Function name "repeatReview" doesn't conform to snake_case naming style (invalid-name) | |
src/python/engine/quiz.py:22:0: C0111: Missing function docstring (missing-docstring) | |
************* Module src.python.engine.anki | |
src/python/engine/anki.py:41:0: C0301: Line too long (104/100) (line-too-long) | |
src/python/engine/anki.py:1:0: C0111: Missing module docstring (missing-docstring) | |
src/python/engine/anki.py:23:8: C0103: Attribute name "cb" doesn't conform to snake_case naming style (invalid-name) | |
src/python/engine/anki.py:18:0: C0111: Missing class docstring (missing-docstring) | |
src/python/engine/anki.py:19:4: R0914: Too many local variables (16/15) (too-many-locals) | |
src/python/engine/anki.py:25:35: C0103: Variable name "zf" doesn't conform to snake_case naming style (invalid-name) | |
src/python/engine/anki.py:26:12: C0103: Variable name "fs" doesn't conform to snake_case naming style (invalid-name) | |
src/python/engine/anki.py:28:19: C0103: Variable name "f" doesn't conform to snake_case naming style (invalid-name) | |
src/python/engine/anki.py:73:12: C0103: Variable name "d" doesn't conform to snake_case naming style (invalid-name) | |
src/python/engine/anki.py:81:12: C0103: Variable name "m" doesn't conform to snake_case naming style (invalid-name) | |
src/python/engine/anki.py:92:16: C0103: Variable name "t" doesn't conform to snake_case naming style (invalid-name) | |
src/python/engine/anki.py:99:4: C0111: Missing method docstring (missing-docstring) | |
src/python/engine/anki.py:103:4: C0103: Argument name "db" doesn't conform to snake_case naming style (invalid-name) | |
src/python/engine/anki.py:103:4: C0111: Missing method docstring (missing-docstring) | |
src/python/engine/anki.py:103:4: R0914: Too many local variables (21/15) (too-many-locals) | |
src/python/engine/anki.py:132:12: C0103: Variable name "h" doesn't conform to snake_case naming style (invalid-name) | |
src/python/engine/anki.py:152:8: C0103: Variable name "ts" doesn't conform to snake_case naming style (invalid-name) | |
src/python/engine/anki.py:158:15: C0103: Variable name "t" doesn't conform to snake_case naming style (invalid-name) | |
src/python/engine/anki.py:179:8: C0103: Variable name "ns" doesn't conform to snake_case naming style (invalid-name) | |
src/python/engine/anki.py:196:15: C0103: Variable name "n" doesn't conform to snake_case naming style (invalid-name) | |
src/python/engine/anki.py:204:12: C0103: Variable name "vs" doesn't conform to snake_case naming style (invalid-name) | |
src/python/engine/anki.py:205:12: C0103: Variable name "ks" doesn't conform to snake_case naming style (invalid-name) | |
src/python/engine/anki.py:238:4: C0103: Argument name "s" doesn't conform to snake_case naming style (invalid-name) | |
************* Module src.python.engine.util | |
src/python/engine/util.py:1:0: C0111: Missing module docstring (missing-docstring) | |
src/python/engine/util.py:7:0: C0103: Function name "ankiMustache" doesn't conform to snake_case naming style (invalid-name) | |
src/python/engine/util.py:7:0: C0103: Argument name "s" doesn't conform to snake_case naming style (invalid-name) | |
src/python/engine/util.py:7:0: C0103: Argument name "d" doesn't conform to snake_case naming style (invalid-name) | |
src/python/engine/util.py:7:0: C0111: Missing function docstring (missing-docstring) | |
************* Module src.python.engine.search | |
src/python/engine/search.py:35:0: C0330: Wrong hanging indentation before block (add 4 spaces). | |
self._remove_brackets, | |
^ | (bad-continuation) | |
src/python/engine/search.py:36:0: C0330: Wrong hanging indentation before block (add 4 spaces). | |
self._parse_sep(" OR "), | |
^ | (bad-continuation) | |
src/python/engine/search.py:37:0: C0330: Wrong hanging indentation before block (add 4 spaces). | |
self._parse_sep(" "), | |
^ | (bad-continuation) | |
src/python/engine/search.py:38:0: C0330: Wrong hanging indentation before block (add 4 spaces). | |
self._parse_neg, | |
^ | (bad-continuation) | |
src/python/engine/search.py:39:0: C0330: Wrong hanging indentation before block (add 4 spaces). | |
self._parse_full_expr, | |
^ | (bad-continuation) | |
src/python/engine/search.py:40:0: C0330: Wrong hanging indentation before block (add 4 spaces). | |
self._parse_partial_expr | |
^ | (bad-continuation) | |
src/python/engine/search.py:257:0: C0301: Line too long (115/100) (line-too-long) | |
src/python/engine/search.py:258:0: C0330: Wrong continued indentation (add 24 spaces). | |
if desc else pre_cmp(dot_getter(x, sort_by, False), dot_getter(y, sort_by, False))) | |
^ | (bad-continuation) | |
src/python/engine/search.py:1:0: C0111: Missing module docstring (missing-docstring) | |
src/python/engine/search.py:15:0: C0111: Missing class docstring (missing-docstring) | |
src/python/engine/search.py:22:4: C0103: Argument name "q" doesn't conform to snake_case naming style (invalid-name) | |
src/python/engine/search.py:22:4: C0111: Missing method docstring (missing-docstring) | |
src/python/engine/search.py:33:4: C0103: Argument name "q" doesn't conform to snake_case naming style (invalid-name) | |
src/python/engine/search.py:44:12: C0103: Variable name "e" doesn't conform to snake_case naming style (invalid-name) | |
src/python/engine/search.py:49:4: C0103: Argument name "q" doesn't conform to snake_case naming style (invalid-name) | |
src/python/engine/search.py:58:8: C0103: Argument name "m" doesn't conform to snake_case naming style (invalid-name) | |
src/python/engine/search.py:63:8: C0103: Argument name "q" doesn't conform to snake_case naming style (invalid-name) | |
src/python/engine/search.py:67:19: C0103: Variable name "t" doesn't conform to snake_case naming style (invalid-name) | |
src/python/engine/search.py:68:23: C0103: Variable name "v" doesn't conform to snake_case naming style (invalid-name) | |
src/python/engine/search.py:73:16: R1705: Unnecessary "elif" after "return" (no-else-return) | |
src/python/engine/search.py:85:4: C0103: Argument name "q" doesn't conform to snake_case naming style (invalid-name) | |
src/python/engine/search.py:87:12: C0103: Variable name "kw" doesn't conform to snake_case naming style (invalid-name) | |
src/python/engine/search.py:97:4: C0103: Argument name "q" doesn't conform to snake_case naming style (invalid-name) | |
src/python/engine/search.py:98:8: C0103: Variable name "m" doesn't conform to snake_case naming style (invalid-name) | |
src/python/engine/search.py:100:15: C0103: Variable name "op" doesn't conform to snake_case naming style (invalid-name) | |
src/python/engine/search.py:100:19: C0103: Variable name "v" doesn't conform to snake_case naming style (invalid-name) | |
src/python/engine/search.py:103:16: C0103: Variable name "v" doesn't conform to snake_case naming style (invalid-name) | |
src/python/engine/search.py:105:16: C0103: Variable name "m1" doesn't conform to snake_case naming style (invalid-name) | |
src/python/engine/search.py:107:20: C0103: Variable name "v" doesn't conform to snake_case naming style (invalid-name) | |
src/python/engine/search.py:112:20: C0103: Variable name "op" doesn't conform to snake_case naming style (invalid-name) | |
src/python/engine/search.py:113:20: C0103: Variable name "v" doesn't conform to snake_case naming style (invalid-name) | |
src/python/engine/search.py:116:20: C0103: Variable name "op" doesn't conform to snake_case naming style (invalid-name) | |
src/python/engine/search.py:117:20: C0103: Variable name "v" doesn't conform to snake_case naming style (invalid-name) | |
src/python/engine/search.py:120:20: C0103: Variable name "v" doesn't conform to snake_case naming style (invalid-name) | |
src/python/engine/search.py:123:20: C0103: Variable name "op" doesn't conform to snake_case naming style (invalid-name) | |
src/python/engine/search.py:124:20: C0103: Variable name "v" doesn't conform to snake_case naming style (invalid-name) | |
src/python/engine/search.py:131:16: C0103: Variable name "op" doesn't conform to snake_case naming style (invalid-name) | |
src/python/engine/search.py:133:16: C0103: Variable name "op" doesn't conform to snake_case naming style (invalid-name) | |
src/python/engine/search.py:146:20: C0103: Variable name "v" doesn't conform to snake_case naming style (invalid-name) | |
src/python/engine/search.py:149:28: C0103: Variable name "op" doesn't conform to snake_case naming style (invalid-name) | |
src/python/engine/search.py:151:28: C0103: Variable name "op" doesn't conform to snake_case naming style (invalid-name) | |
src/python/engine/search.py:157:20: C0103: Variable name "v" doesn't conform to snake_case naming style (invalid-name) | |
src/python/engine/search.py:159:16: C0103: Variable name "v" doesn't conform to snake_case naming style (invalid-name) | |
src/python/engine/search.py:161:16: C0103: Variable name "v" doesn't conform to snake_case naming style (invalid-name) | |
src/python/engine/search.py:163:16: C0103: Variable name "v" doesn't conform to snake_case naming style (invalid-name) | |
src/python/engine/search.py:165:16: C0103: Variable name "v" doesn't conform to snake_case naming style (invalid-name) | |
src/python/engine/search.py:167:16: C0103: Variable name "v" doesn't conform to snake_case naming style (invalid-name) | |
src/python/engine/search.py:97:4: R0912: Too many branches (26/12) (too-many-branches) | |
src/python/engine/search.py:97:4: R0915: Too many statements (60/50) (too-many-statements) | |
src/python/engine/search.py:174:4: C0103: Argument name "q" doesn't conform to snake_case naming style (invalid-name) | |
src/python/engine/search.py:177:16: C0103: Variable name "a" doesn't conform to snake_case naming style (invalid-name) | |
src/python/engine/search.py:15:0: R0903: Too few public methods (1/2) (too-few-public-methods) | |
src/python/engine/search.py:190:0: C0111: Missing function docstring (missing-docstring) | |
src/python/engine/search.py:196:15: C0103: Variable name "v" doesn't conform to snake_case naming style (invalid-name) | |
src/python/engine/search.py:198:16: R1705: Unnecessary "elif" after "return" (no-else-return) | |
src/python/engine/search.py:207:16: R1705: Unnecessary "elif" after "return" (no-else-return) | |
src/python/engine/search.py:195:4: R0911: Too many return statements (7/6) (too-many-return-statements) | |
src/python/engine/search.py:220:0: C0103: Argument name "s" doesn't conform to snake_case naming style (invalid-name) | |
src/python/engine/search.py:220:0: C0111: Missing function docstring (missing-docstring) | |
src/python/engine/search.py:224:4: C0103: Variable name "m" doesn't conform to snake_case naming style (invalid-name) | |
src/python/engine/search.py:226:8: R1705: Unnecessary "elif" after "return" (no-else-return) | |
src/python/engine/search.py:220:0: R0911: Too many return statements (7/6) (too-many-return-statements) | |
src/python/engine/search.py:242:0: C0111: Missing function docstring (missing-docstring) | |
src/python/engine/search.py:243:4: C0103: Argument name "a" doesn't conform to snake_case naming style (invalid-name) | |
src/python/engine/search.py:243:4: C0103: Argument name "b" doesn't conform to snake_case naming style (invalid-name) | |
src/python/engine/search.py:244:8: C0103: Variable name "m" doesn't conform to snake_case naming style (invalid-name) | |
src/python/engine/search.py:245:8: C0103: Variable name "n" doesn't conform to snake_case naming style (invalid-name) | |
src/python/engine/search.py:248:12: R1705: Unnecessary "elif" after "return" (no-else-return) | |
src/python/engine/search.py:248:15: C0123: Using type() instead of isinstance() for a typecheck. (unidiomatic-typecheck) | |
src/python/engine/search.py:261:0: C0103: Argument name "d" doesn't conform to snake_case naming style (invalid-name) | |
src/python/engine/search.py:261:0: C0111: Missing function docstring (missing-docstring) | |
src/python/engine/search.py:265:4: C0103: Variable name "v" doesn't conform to snake_case naming style (invalid-name) | |
src/python/engine/search.py:267:8: C0103: Variable name "kn" doesn't conform to snake_case naming style (invalid-name) | |
src/python/engine/search.py:270:16: C0103: Variable name "v" doesn't conform to snake_case naming style (invalid-name) | |
src/python/engine/search.py:272:16: C0103: Variable name "v" doesn't conform to snake_case naming style (invalid-name) | |
src/python/engine/search.py:275:16: C0103: Variable name "v" doesn't conform to snake_case naming style (invalid-name) | |
src/python/engine/search.py:277:16: C0103: Variable name "v" doesn't conform to snake_case naming style (invalid-name) | |
src/python/engine/search.py:282:31: C1801: Do not use `len(SEQUENCE)` to determine if a sequence is empty (len-as-condition) | |
src/python/engine/search.py:283:8: C0103: Variable name "v" doesn't conform to snake_case naming style (invalid-name) | |
src/python/engine/search.py:291:24: C0103: Variable name "v" doesn't conform to snake_case naming style (invalid-name) | |
src/python/engine/search.py:293:24: C0103: Variable name "v" doesn't conform to snake_case naming style (invalid-name) | |
src/python/engine/search.py:295:24: C0103: Variable name "v" doesn't conform to snake_case naming style (invalid-name) | |
src/python/engine/search.py:298:24: C0103: Variable name "v" doesn't conform to snake_case naming style (invalid-name) | |
src/python/engine/search.py:300:24: C0103: Variable name "v" doesn't conform to snake_case naming style (invalid-name) | |
src/python/engine/search.py:302:24: C0103: Variable name "v" doesn't conform to snake_case naming style (invalid-name) | |
src/python/engine/search.py:304:16: C0103: Variable name "v" doesn't conform to snake_case naming style (invalid-name) | |
src/python/engine/search.py:261:0: R0912: Too many branches (20/12) (too-many-branches) | |
src/python/engine/search.py:309:0: C0103: Argument name "d" doesn't conform to snake_case naming style (invalid-name) | |
src/python/engine/search.py:309:0: C0111: Missing function docstring (missing-docstring) | |
src/python/engine/search.py:313:8: R1705: Unnecessary "else" after "return" (no-else-return) | |
src/python/engine/search.py:316:16: C0103: Variable name "v0" doesn't conform to snake_case naming style (invalid-name) | |
src/python/engine/search.py:325:0: C0103: Argument name "v" doesn't conform to snake_case naming style (invalid-name) | |
src/python/engine/search.py:326:8: C0103: Variable name "op" doesn't conform to snake_case naming style (invalid-name) | |
src/python/engine/search.py:326:12: C0103: Variable name "v0" doesn't conform to snake_case naming style (invalid-name) | |
src/python/engine/search.py:329:16: R1705: Unnecessary "else" after "return" (no-else-return) | |
src/python/engine/search.py:334:16: R1705: Unnecessary "else" after "return" (no-else-return) | |
src/python/engine/search.py:339:16: R1705: Unnecessary "else" after "return" (no-else-return) | |
src/python/engine/search.py:349:23: C0103: Variable name "v0" doesn't conform to snake_case naming style (invalid-name) | |
src/python/engine/search.py:353:16: R1705: Unnecessary "elif" after "return" (no-else-return) | |
src/python/engine/search.py:325:0: R0911: Too many return statements (12/6) (too-many-return-statements) | |
src/python/engine/search.py:325:0: R0912: Too many branches (18/12) (too-many-branches) | |
src/python/engine/search.py:367:0: C0103: Argument name "x" doesn't conform to snake_case naming style (invalid-name) | |
src/python/engine/search.py:368:4: R1705: Unnecessary "elif" after "return" (no-else-return) | |
************* Module src.python.engine.typing | |
src/python/engine/typing.py:1:0: C0111: Missing module docstring (missing-docstring) | |
src/python/engine/typing.py:6:0: C0111: Missing class docstring (missing-docstring) | |
src/python/engine/typing.py:11:0: C0111: Missing class docstring (missing-docstring) | |
src/python/engine/typing.py:16:0: C0111: Missing class docstring (missing-docstring) | |
src/python/engine/typing.py:20:0: C0111: Missing class docstring (missing-docstring) | |
src/python/engine/typing.py:45:0: C0111: Missing class docstring (missing-docstring) | |
src/python/engine/typing.py:53:0: C0111: Missing class docstring (missing-docstring) | |
src/python/engine/typing.py:58:0: C0111: Missing class docstring (missing-docstring) | |
src/python/engine/typing.py:58:0: R0903: Too few public methods (0/2) (too-few-public-methods) | |
src/python/engine/typing.py:3:0: C0411: standard import "import dataclasses as dc" should be placed before "from easydict import EasyDict" (wrong-import-order) | |
----------------------------------- | |
Your code has been rated at 6.42/10 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Of course,
snake_case
convention ignoring is intentional, as it conflicts with other programming language's convention (TypeScript).Still it does give insights, mostly about
shorter-than-3-char
variables, andmissing-docstring
.