From d7edaa4534e6f59099abbc02252d466c1bfa9833 Mon Sep 17 00:00:00 2001 From: Solal Pirelli <168633181+SolalPirelli-Sonar@users.noreply.github.com> Date: Mon, 10 Jun 2024 13:51:49 +0200 Subject: [PATCH] COBOL S1289 (`COBOL.UnusedDataItem`): Ignore `EXTERNAL` data items Companion PR for ticket [COBOL-1701](https://sonarsource.atlassian.net/browse/SONARCOBOL-1701): data items marked as `EXTERNAL` should not be marked as "unused data item". --- rules/S1289/cobol/rule.adoc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/rules/S1289/cobol/rule.adoc b/rules/S1289/cobol/rule.adoc index cdfd4781c08..f8feae4e26e 100644 --- a/rules/S1289/cobol/rule.adoc +++ b/rules/S1289/cobol/rule.adoc @@ -30,6 +30,8 @@ MOVE "John" TO FIRST_NAME. ``++FILLER++`` top level data items and top level data items which have sub data items with a ``++VALUE++`` clause are not checked by this rule. +``++EXTERNAL++`` data items are not checked by this rule. + ifdef::env-github,rspecator-view[] '''