From fe25b590ef862d3b7cfa9ce63eb069ac7a1007f0 Mon Sep 17 00:00:00 2001 From: Ilya Vlasov Date: Fri, 27 Aug 2021 12:21:49 +0500 Subject: [PATCH 1/2] Added output examples with --group-by-difficulty --- README.md | 95 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 95 insertions(+) diff --git a/README.md b/README.md index a20f8978..cea8acb2 100644 --- a/README.md +++ b/README.md @@ -168,6 +168,101 @@ The output examples: } ``` +3. Json `old format` (with **‑‑group‑by‑difficulty** argument): + +```json +{ + "quality": { + "EASY": { + "code": "BAD", + "text": "Code quality (beta): BAD" + }, + "MEDIUM": { + "code": "BAD", + "text": "Code quality (beta): BAD" + }, + "HARD": { + "code": "BAD", + "text": "Code quality (beta): BAD" + } + }, + "issues": [ + { + "code": "C002", + "text": "Too long function. Try to split it into smaller functions / methods.It will make your code easy to understand and less error prone.", + "line": "", + "line_number": 54, + "column_number": 0, + "category": "FUNC_LEN", + "difficulty": "EASY", + "influence_on_penalty": { + "EASY": 0, + "MEDIUM": 0, + "HARD": 0 + } + }, + ... + ] +} +``` + +4. Json `new format` (with **‑‑group‑by‑difficulty** argument) + +```json +{ + "quality": { + "EASY": { + "code": "BAD", + "text": "Code quality (beta): BAD" + }, + "MEDIUM": { + "code": "BAD", + "text": "Code quality (beta): BAD" + }, + "HARD": { + "code": "BAD", + "text": "Code quality (beta): BAD" + } + }, + "file_review_results": [ + { + "file_name": "", + "quality": { + "EASY": { + "code": "BAD", + "text": "Code quality (beta): BAD" + }, + "MEDIUM": { + "code": "BAD", + "text": "Code quality (beta): BAD" + }, + "HARD": { + "code": "BAD", + "text": "Code quality (beta): BAD" + } + }, + "issues": [ + { + "code": "W0703", + "text": "Catching too general exception Exception", + "line": "", + "line_number": 174, + "column_number": 12, + "category": "BEST_PRACTICES", + "difficulty": "MEDIUM", + "influence_on_penalty": { + "EASY": 0, + "MEDIUM": 0, + "HARD": 0 + } + }, + ... + ] + } + ] +} +``` + 3. Text format: ```text From 2bd54a141e4442685c514382f9366c1e787f6827 Mon Sep 17 00:00:00 2001 From: Ilya Vlasov Date: Fri, 27 Aug 2021 12:24:13 +0500 Subject: [PATCH 2/2] typo fix --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index cea8acb2..b6070181 100644 --- a/README.md +++ b/README.md @@ -263,7 +263,7 @@ The output examples: } ``` -3. Text format: +5. Text format: ```text Review of (N violations)