From 95842fd5b9f17c08c2589b2096745ab7d858c0cf Mon Sep 17 00:00:00 2001 From: Pablo Orviz Date: Mon, 18 Mar 2024 11:34:03 +0100 Subject: [PATCH 1/3] Add oclint --- tooling.json | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/tooling.json b/tooling.json index 2a0c78d..de10220 100644 --- a/tooling.json +++ b/tooling.json @@ -23,6 +23,31 @@ } } }, + "Dockerfile": { + "oclint": { + "version": "20.11", + "docs": "https://oclint.org/", + "docker": { + "image": "drakorgaur/oclint:3077181575", + "reviewed": "2024-03-18" + }, + "args": [ + { + "type": "positional", "description": "File/s to lint", "value": "", "selectable": false, "repeatable": true + }, + { + "type": "positional", "description": "Compiler flags", "value": "-- -c", "selectable": false, "repeatable": true + } + ], + "reporting": { + "validator": "jenkins_exit_status", + "subcriterion": "QC.Sty01", + "lang_name": "C++", + "tool_name": "oclint", + "requirement_level": "REQUIRED" + } + } + }, "Dockerfile": { "hadolint": { "version": "v2.8.0-0-g398770f-dirty", @@ -827,6 +852,7 @@ "docs": "https://indigo-dc.github.io/sqa-baseline/#code-style-qc.sty" }, "tools": { + "C++": ["oclint"], "Dockerfile": ["hadolint"], "JSON": ["jsonlint"], "Python": ["tox", "flake8", "pycodestyle"], From 7a47a0d1cffbc756b85aa7707e9742c79c0dd996 Mon Sep 17 00:00:00 2001 From: Pablo Orviz Date: Tue, 19 Mar 2024 16:22:54 +0100 Subject: [PATCH 2/3] Fix: C++ key --- tooling.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tooling.json b/tooling.json index de10220..e440815 100644 --- a/tooling.json +++ b/tooling.json @@ -23,7 +23,7 @@ } } }, - "Dockerfile": { + "C++": { "oclint": { "version": "20.11", "docs": "https://oclint.org/", From b5ab3a0ca21b0fdee2320ca250a6d78c5fd9397a Mon Sep 17 00:00:00 2001 From: Pablo Orviz Date: Tue, 19 Mar 2024 16:36:25 +0100 Subject: [PATCH 3/3] Enable 'explicit_paths' for oclint --- tooling.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tooling.json b/tooling.json index e440815..4c4635d 100644 --- a/tooling.json +++ b/tooling.json @@ -33,7 +33,7 @@ }, "args": [ { - "type": "positional", "description": "File/s to lint", "value": "", "selectable": false, "repeatable": true + "type": "positional", "description": "File/s to lint", "value": "", "selectable": false, "repeatable": true, "explicit_paths": true }, { "type": "positional", "description": "Compiler flags", "value": "-- -c", "selectable": false, "repeatable": true