From 4f0f68b4b902477c1f3e7e4fb72a58f0b3888e00 Mon Sep 17 00:00:00 2001 From: didebughu Date: Mon, 15 May 2023 16:31:40 +0800 Subject: [PATCH 1/2] =?UTF-8?q?:art:=20iwyu.json=E6=A0=BC=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../apps/scan_conf/management/commands/open_source/iwyu.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/projects/main/apps/scan_conf/management/commands/open_source/iwyu.json b/server/projects/main/apps/scan_conf/management/commands/open_source/iwyu.json index b8689a1cf..f01317141 100644 --- a/server/projects/main/apps/scan_conf/management/commands/open_source/iwyu.json +++ b/server/projects/main/apps/scan_conf/management/commands/open_source/iwyu.json @@ -1,4 +1,4 @@ - +[ { "name": "iwyu", "display_name": "include-what-you-use", @@ -56,4 +56,4 @@ "virtual_name": "215", "show_display_name": true } -] \ No newline at end of file +] From c4fe207f91bd502daa96c13a39c1feb60c5278f8 Mon Sep 17 00:00:00 2001 From: didebughu Date: Mon, 15 May 2023 16:37:43 +0800 Subject: [PATCH 2/2] :art: add rule for iwyu --- .../management/commands/open_source/iwyu.json | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/server/projects/main/apps/scan_conf/management/commands/open_source/iwyu.json b/server/projects/main/apps/scan_conf/management/commands/open_source/iwyu.json index f01317141..84de48be2 100644 --- a/server/projects/main/apps/scan_conf/management/commands/open_source/iwyu.json +++ b/server/projects/main/apps/scan_conf/management/commands/open_source/iwyu.json @@ -49,6 +49,23 @@ "labels": [], "description": "should remove", "disable": false + }, + { + "real_name": "iwyu-note", + "display_name": "iwyu-note", + "severity": "info", + "category": "other", + "rule_title": "#includes/fwd-decls are correct", + "rule_params": null, + "custom": false, + "languages": [ + "cpp" + ], + "solution": "#includes/fwd-decls are correct", + "owner": null, + "labels": [], + "description": "#includes/fwd-decls are correct", + "disable": false } ], "open_user": true,