# \#cobol

**URL:** https://community.sonarsource.com/tag/cobol/7.md

[Latest](https://community.sonarsource.com/latest.md) · [Categories](https://community.sonarsource.com/categories.md) · [Tags](https://community.sonarsource.com/tags.md)

---

## [Micro Focus COBOL parser fails on valid OPEN ... WITH LOCK syntax](https://community.sonarsource.com/t/micro-focus-cobol-parser-fails-on-valid-open-with-lock-syntax/188679)

<div class="topic-metadata">

**Author:** [@Dolf\_Delft](https://community.sonarsource.com/u/Dolf_Delft)\
**Replies:** 2\
**Last updated:** [October 26, 2026, 7:58am UTC](https://community.sonarsource.com/t/micro-focus-cobol-parser-fails-on-valid-open-with-lock-syntax/188679 "2026-10-26T07:58:26Z")

</div>

Hi, We are using SonarQube Cloud to analyse a Micro Focus COBOL codebase and are seeing parser errors on valid Micro Focus COBOL syntax. Product SonarQube Cloud CI: Azure DevOps Language COBOL - Micro Focus COBOL Ou…

---

## [581 How can we adjust or make these analyses and reports from sonarcloud.io more flexible?](https://community.sonarsource.com/t/581-how-can-we-adjust-or-make-these-analyses-and-reports-from-sonarcloud-io-more-flexible/179687)

<div class="topic-metadata">

**Author:** [@mcarmen-miatech-net](https://community.sonarsource.com/u/mcarmen-miatech-net)\
**Replies:** 2\
**Last updated:** [July 27, 2026, 3:19pm UTC](https://community.sonarsource.com/t/581-how-can-we-adjust-or-make-these-analyses-and-reports-from-sonarcloud-io-more-flexible/179687 "2026-07-27T15:19:28Z")

</div>

We have an Enterprise subscription to SonarCloud.io. And we’ve encountered several questions about how SonarCloud Enterprise considers errors or improvements in COBOL code, and in general with the languages ​​we use. F…

---

## [Properly analyze CopyBooks in a CobolCheck for Custom Checks](https://community.sonarsource.com/t/properly-analyze-copybooks-in-a-cobolcheck-for-custom-checks/180205)

<div class="topic-metadata">

**Author:** [@Timorius](https://community.sonarsource.com/u/Timorius)\
**Replies:** 2\
**Last updated:** [March 24, 2026, 2:25pm UTC](https://community.sonarsource.com/t/properly-analyze-copybooks-in-a-cobolcheck-for-custom-checks/180205 "2026-03-24T14:25:00Z")

</div>

Hello Community, I am currently working on custom cobol checks - some new ones and some build on top of existing ones with exemptions - and one of them is focused on copybooks which has me struggling quite a bit. The ru…

---

## [Cobol analysis on VSCODE with Zowe Explorer V3](https://community.sonarsource.com/t/cobol-analysis-on-vscode-with-zowe-explorer-v3/134026)

<div class="topic-metadata">

**Author:** [@RichardSGFR](https://community.sonarsource.com/u/RichardSGFR)\
**Replies:** 9\
**Last updated:** [September 30, 2025, 9:39am UTC](https://community.sonarsource.com/t/cobol-analysis-on-vscode-with-zowe-explorer-v3/134026 "2025-09-30T09:39:58Z")

</div>

Operating system: Windows 11 SonarQube for VS Code plugin version: v4.15.0 Programming language you’re coding in: Cobol Is connected mode used: Sonarqube Server v9.9.2 Hello, As mentionned on the documentation ( Requi…

---

## [NullPointer in Sonar while developing custom cobol Rule](https://community.sonarsource.com/t/nullpointer-in-sonar-while-developing-custom-cobol-rule/144294)

<div class="topic-metadata">

**Author:** [@dstein](https://community.sonarsource.com/u/dstein)\
**Replies:** 2\
**Last updated:** [August 11, 2025, 12:12pm UTC](https://community.sonarsource.com/t/nullpointer-in-sonar-while-developing-custom-cobol-rule/144294 "2025-08-11T12:12:40Z")

</div>

Hello I’ve developed a custom COBOL rule for the company i work for. We are using sonarqube enterprise. I used the COBOL custom rules project from GitHub as a basis. \<sonar.version\>8.2.0.32929\</sonar.version\> \<s…

---

## [\[ibm-enterprise-cobol\] Unable to parse PERFORM UNTIL EXIT clause](https://community.sonarsource.com/t/ibm-enterprise-cobol-unable-to-parse-perform-until-exit-clause/136165)

<div class="topic-metadata">

**Author:** [@rr88](https://community.sonarsource.com/u/rr88)\
**Replies:** 5\
**Last updated:** [April 1, 2025, 3:46pm UTC](https://community.sonarsource.com/t/ibm-enterprise-cobol-unable-to-parse-perform-until-exit-clause/136165 "2025-04-01T15:46:42Z")

</div>

Dear community managers, I’ve noticed that the PERFORM UNTIL EXIT seems to be unknown to SonarScanner and cannot be parsed. While all other variations of PERFORM loops work, the relatively new EXIT keyword does not. Thi…

---

## [Code limit in Too many lines of code in a program?](https://community.sonarsource.com/t/code-limit-in-too-many-lines-of-code-in-a-program/136581)

<div class="topic-metadata">

**Author:** [@Dushyant\_Aneja](https://community.sonarsource.com/u/Dushyant_Aneja)\
**Replies:** 1\
**Last updated:** [March 12, 2025, 1:51pm UTC](https://community.sonarsource.com/t/code-limit-in-too-many-lines-of-code-in-a-program/136581 "2025-03-12T13:51:01Z")

</div>

Hi, I am working on a custom SonarQube plugin designed for the Natural mainframe language, and I need to implement a rule to enforce a lines of code (LOC) threshold for detecting “Too Many Lines of Code” in a program. I…

---

## [COBOL support for SonarLint extension for VS Code](https://community.sonarsource.com/t/cobol-support-for-sonarlint-extension-for-vs-code/43950)

<div class="topic-metadata">

**Author:** [@GregHep](https://community.sonarsource.com/u/GregHep)\
**Replies:** 18\
**Last updated:** [July 6, 2023, 8:26am UTC](https://community.sonarsource.com/t/cobol-support-for-sonarlint-extension-for-vs-code/43950 "2023-07-06T08:26:32Z")

</div>

Hello, we want to use the SonarLint to improve code quality in our projects. We’re using mostly COBOL for our in-house development and are trialing proof of concept on both VS Code and Topaz workbench, is there an ETA o…

---

## [COBOL analysis with expanded copybooks](https://community.sonarsource.com/t/cobol-analysis-with-expanded-copybooks/124756)

<div class="topic-metadata">

**Author:** [@franciscocarvajal](https://community.sonarsource.com/u/franciscocarvajal)\
**Replies:** 1\
**Last updated:** [September 10, 2024, 12:47pm UTC](https://community.sonarsource.com/t/cobol-analysis-with-expanded-copybooks/124756 "2024-09-10T12:47:58Z")

</div>

Hello, We are trying to improve our COBOL code analysis integration. Currently, we have a directory that contains all the copybooks that we have and another directory in which only the program(s) that we need to analyze…

---

## [Some SonarQube COBOL rules aren't working on VSCode sonarlint](https://community.sonarsource.com/t/some-sonarqube-cobol-rules-arent-working-on-vscode-sonarlint/118412)

<div class="topic-metadata">

**Author:** [@ldebonnet](https://community.sonarsource.com/u/ldebonnet)\
**Replies:** 6\
**Last updated:** [August 6, 2024, 6:22am UTC](https://community.sonarsource.com/t/some-sonarqube-cobol-rules-arent-working-on-vscode-sonarlint/118412 "2024-08-06T06:22:44Z")

</div>

Please provide Operating system: Windows 11 SonarLint plugin version: 4.7.0 Programming language you’re coding in: COBOL Is connected mode used: Yes Connected to SonarCloud or SonarQube (and which version): SonarQube …

---

## [Sonarlint 10.0.1 with eclipse for cobol analysis - not working](https://community.sonarsource.com/t/sonarlint-10-0-1-with-eclipse-for-cobol-analysis-not-working/115707)

<div class="topic-metadata">

**Author:** [@kmura86](https://community.sonarsource.com/u/kmura86)\
**Replies:** 2\
**Last updated:** [June 17, 2024, 7:35am UTC](https://community.sonarsource.com/t/sonarlint-10-0-1-with-eclipse-for-cobol-analysis-not-working/115707 "2024-06-17T07:35:28Z")

</div>

Please provide Operating system: Windows 10 SonarLint plugin version: 10.0.1 Programming language you’re coding in: COBOL Is connected mode used: Yes Connected to SonarCloud or SonarQube (and which version): SonarQube …

---

## [SonarLint for Eclipse 10.2 - COBOL support improvements](https://community.sonarsource.com/t/sonarlint-for-eclipse-10-2-cobol-support-improvements/116638)

<div class="topic-metadata">

**Author:** [@alexander.rage](https://community.sonarsource.com/u/alexander.rage)\
**Replies:** 0\
**Last updated:** [June 4, 2024, 3:52pm UTC](https://community.sonarsource.com/t/sonarlint-for-eclipse-10-2-cobol-support-improvements/116638 "2024-06-04T15:52:27Z")

</div>

Dear Eclipse users, I’m happy to announce the new version 10.2 of SonarLint for Eclipse! :sonarlint: In this new version, we improved the support of COBOL and COBOL IDEs. Indeed, with recent changes in JDT, it now has …

---

## [SUPPRESS WHEN LOW-VALUES Syntax not recognized in Cobol code](https://community.sonarsource.com/t/suppress-when-low-values-syntax-not-recognized-in-cobol-code/115899)

<div class="topic-metadata">

**Author:** [@kiran2k](https://community.sonarsource.com/u/kiran2k)\
**Replies:** 4\
**Last updated:** [May 31, 2024, 3:59pm UTC](https://community.sonarsource.com/t/suppress-when-low-values-syntax-not-recognized-in-cobol-code/115899 "2024-05-31T15:59:33Z")

</div>

Sonarqube scanning is unable to recognize the below syntax in Cobol code during JSON Generate. This also causes Sonarlint to not show any results for modules having this syntax- SUPPRESS WHEN LOW-VALUES

---

## [Error in the reporting of unused files](https://community.sonarsource.com/t/error-in-the-reporting-of-unused-files/109445)

<div class="topic-metadata">

**Author:** [@Jos\_Abrahams](https://community.sonarsource.com/u/Jos_Abrahams)\
**Replies:** 3\
**Last updated:** [March 25, 2024, 4:52pm UTC](https://community.sonarsource.com/t/error-in-the-reporting-of-unused-files/109445 "2024-03-25T16:52:19Z")

</div>

We are scanning AcuCobol sources. We see an error in the reporting of unused files: The error occurs under the following conditions: The ‘SELECT’ of a file is in a separate copymember AND this copymember is added int…

---

## [Cobol rule cobol:COBOL.UnusedDataItem should not take into account EXTERNAL variables](https://community.sonarsource.com/t/cobol-rule-cobol-cobol-unuseddataitem-should-not-take-into-account-external-variables/107200)

<div class="topic-metadata">

**Author:** [@Steurs](https://community.sonarsource.com/u/Steurs)\
**Replies:** 5\
**Last updated:** [March 22, 2024, 5:07pm UTC](https://community.sonarsource.com/t/cobol-rule-cobol-cobol-unuseddataitem-should-not-take-into-account-external-variables/107200 "2024-03-22T17:07:16Z")

</div>

Must-share information (formatted with Markdown): Enterprise Edition Version 9.9.1 (build 69595) how is SonarQube deployed: no idea (on https://web.sonarqube.axa.be/) exclude EXTERNAL variables from that rule reading …

---

## [Wrong file reported when issue is found on cobol:S1764](https://community.sonarsource.com/t/wrong-file-reported-when-issue-is-found-on-cobol-s1764/109763)

<div class="topic-metadata">

**Author:** [@Jos\_Abrahams](https://community.sonarsource.com/u/Jos_Abrahams)\
**Replies:** 3\
**Last updated:** [March 21, 2024, 1:33pm UTC](https://community.sonarsource.com/t/wrong-file-reported-when-issue-is-found-on-cobol-s1764/109763 "2024-03-21T13:33:10Z")

</div>

We are scanning AcuCobol sources. We see an error in the reporting of rule cobol:S1764: Identical expressions should not be used on both sides of a binary operator. The error occurs under the following conditions: T…

---

## [SonarLint COBOL scan via Topaz IDE fails when including a copybook](https://community.sonarsource.com/t/sonarlint-cobol-scan-via-topaz-ide-fails-when-including-a-copybook/102894)

<div class="topic-metadata">

**Author:** [@jofersonic](https://community.sonarsource.com/u/jofersonic)\
**Replies:** 27\
**Last updated:** [March 5, 2024, 1:13pm UTC](https://community.sonarsource.com/t/sonarlint-cobol-scan-via-topaz-ide-fails-when-including-a-copybook/102894 "2024-03-05T13:13:40Z")

</div>

Please provide Operating system: SonarLint plugin version: 6.2.0.37299 Programming language you’re coding in: COBOL Is connected mode used: Connected to SonarQube Version 8.9.6 LTS: And a thorough description of th…

---

## [FP on cobol:S3921 when accessing an array of which the size is defined by a 78-level field](https://community.sonarsource.com/t/fp-on-cobol-s3921-when-accessing-an-array-of-which-the-size-is-defined-by-a-78-level-field/104257)

<div class="topic-metadata">

**Author:** [@Jos\_Abrahams](https://community.sonarsource.com/u/Jos_Abrahams)\
**Replies:** 4\
**Last updated:** [March 1, 2024, 10:05pm UTC](https://community.sonarsource.com/t/fp-on-cobol-s3921-when-accessing-an-array-of-which-the-size-is-defined-by-a-78-level-field/104257 "2024-03-01T22:05:38Z")

</div>

We are scanning Acucobol sources. When a program contains an array of which the size is defined with a 78-level variable, the size of the array is not calculated correctly. The value of the OCCURS clause is taken as 1. …

---

## [FP on rule cobol:S1966 when moving an alpha field to a numeric field with conversion](https://community.sonarsource.com/t/fp-on-rule-cobol-s1966-when-moving-an-alpha-field-to-a-numeric-field-with-conversion/109050)

<div class="topic-metadata">

**Author:** [@Jos\_Abrahams](https://community.sonarsource.com/u/Jos_Abrahams)\
**Replies:** 1\
**Last updated:** [March 1, 2024, 4:38pm UTC](https://community.sonarsource.com/t/fp-on-rule-cobol-s1966-when-moving-an-alpha-field-to-a-numeric-field-with-conversion/109050 "2024-03-01T16:38:55Z")

</div>

We are scanning Cobol sources. When we move an alphanumeric field to a numeric field WITH CONVERSION we get a (false) positive on rule cobol:S1966: … is a numeric field; … cannot be safely moved into it. However, as …

---

## [FP on rule COBOL.DataValueClauseLinkageSectionCheck](https://community.sonarsource.com/t/fp-on-rule-cobol-datavalueclauselinkagesectioncheck/109047)

<div class="topic-metadata">

**Author:** [@Jos\_Abrahams](https://community.sonarsource.com/u/Jos_Abrahams)\
**Replies:** 1\
**Last updated:** [February 26, 2024, 4:04pm UTC](https://community.sonarsource.com/t/fp-on-rule-cobol-datavalueclauselinkagesectioncheck/109047 "2024-02-26T16:04:28Z")

</div>

We are scanning Cobol sources. When we have a 78-level field in a LINKAGE section we get a remark about a data-value being used in linkage: ‘A data value clause should not be defined in a linkage section’ However, a …

---

## [FP on rule S1728 when indenting 88-level condition names](https://community.sonarsource.com/t/fp-on-rule-s1728-when-indenting-88-level-condition-names/105277)

<div class="topic-metadata">

**Author:** [@Jos\_Abrahams](https://community.sonarsource.com/u/Jos_Abrahams)\
**Replies:** 3\
**Last updated:** [February 19, 2024, 1:50pm UTC](https://community.sonarsource.com/t/fp-on-rule-s1728-when-indenting-88-level-condition-names/105277 "2024-02-19T13:50:06Z")

</div>

Hi Pierre Yves, Sorry to come back on an already closed issue. I was checking up on which issues I reported are fixed, and which ones aren’t. When I looked at SONARCOBOL-1675 I noticed that in hindsight I don’t agree …

---

## [Internal error occurred during: “Update SonarLint binding data for project ‘my-project-name’](https://community.sonarsource.com/t/internal-error-occurred-during-update-sonarlint-binding-data-for-project-my-project-name/104176)

<div class="topic-metadata">

**Author:** [@ellianmg1](https://community.sonarsource.com/u/ellianmg1)\
**Replies:** 15\
**Last updated:** [January 9, 2024, 2:54pm UTC](https://community.sonarsource.com/t/internal-error-occurred-during-update-sonarlint-binding-data-for-project-my-project-name/104176 "2024-01-09T14:54:11Z")

</div>

Please provide Operating system: Windows 10 SonarLint plugin version: 9.0.0.81302 Programming language you’re coding in: COBOL Is connected mode used: Yes Connected to SonarCloud or SonarQube (and which version): Sona…

---

## [IllegalArgumentException when scanning Cobol sources](https://community.sonarsource.com/t/illegalargumentexception-when-scanning-cobol-sources/104255)

<div class="topic-metadata">

**Author:** [@Jos\_Abrahams](https://community.sonarsource.com/u/Jos_Abrahams)\
**Replies:** 6\
**Last updated:** [January 12, 2024, 4:50pm UTC](https://community.sonarsource.com/t/illegalargumentexception-when-scanning-cobol-sources/104255 "2024-01-12T16:50:00Z")

</div>

When scanning Acucobol sources we get the following exception: ERROR: Error during SonarScanner execution java.lang.IllegalArgumentException: Line 31 is out of range for file C/IO/MEOPRHDR. File has 30 lines. at org.so…

---

## [SonarLint - Cobol Analysis](https://community.sonarsource.com/t/sonarlint-cobol-analysis/102427)

<div class="topic-metadata">

**Author:** [@Krithix](https://community.sonarsource.com/u/Krithix)\
**Replies:** 5\
**Last updated:** [January 2, 2024, 8:41am UTC](https://community.sonarsource.com/t/sonarlint-cobol-analysis/102427 "2024-01-02T08:41:13Z")

</div>

Please provide Operating system: Windows 10 SonarLint plugin version: SonarLint for Eclipse 6.0.0.34779 Programming language you’re coding in: Cobol Is connected mode used: Connected to SonarCloud or SonarQube (and w…

---

## [Undesirable hit on cobol:S1303 (Sections should not be empty)](https://community.sonarsource.com/t/undesirable-hit-on-cobol-s1303-sections-should-not-be-empty/104245)

<div class="topic-metadata">

**Author:** [@Jos\_Abrahams](https://community.sonarsource.com/u/Jos_Abrahams)\
**Replies:** 1\
**Last updated:** [November 28, 2023, 12:51pm UTC](https://community.sonarsource.com/t/undesirable-hit-on-cobol-s1303-sections-should-not-be-empty/104245 "2023-11-28T12:51:11Z")

</div>

We are scanning Cobol code, and we get undesirable hits on rule S1303 (Sections should not be empty). The problem is that the sections that trigger the issue are performed from within a copymember. We have copymembers …

---

## [FP on cobol:S1461 (Unused sections should be removed)](https://community.sonarsource.com/t/fp-on-cobol-s1461-unused-sections-should-be-removed/104227)

<div class="topic-metadata">

**Author:** [@Jos\_Abrahams](https://community.sonarsource.com/u/Jos_Abrahams)\
**Replies:** 1\
**Last updated:** [November 17, 2023, 4:27pm UTC](https://community.sonarsource.com/t/fp-on-cobol-s1461-unused-sections-should-be-removed/104227 "2023-11-17T16:27:17Z")

</div>

We are scanning Cobol code, and we see false positives on rule S1461 (Unused sections should be removed). The problem is that the sections that trigger the FP are used in a SCREEN SECTION. Apparently this invocation is…

---

## [Is there an extra cost to support Cobol on Sonar Lint?](https://community.sonarsource.com/t/is-there-an-extra-cost-to-support-cobol-on-sonar-lint/99175)

<div class="topic-metadata">

**Author:** [@MTHJR](https://community.sonarsource.com/u/MTHJR)\
**Replies:** 1\
**Last updated:** [September 13, 2023, 6:42am UTC](https://community.sonarsource.com/t/is-there-an-extra-cost-to-support-cobol-on-sonar-lint/99175 "2023-09-13T06:42:59Z")

</div>

Is there an extra cost to support Cobol on Sonar Lint?

---

## [FP on Cobol:S1728 (Alignment of data-item declarations) (AcuCobol)](https://community.sonarsource.com/t/fp-on-cobol-s1728-alignment-of-data-item-declarations-acucobol/95392)

<div class="topic-metadata">

**Author:** [@Jos\_Abrahams](https://community.sonarsource.com/u/Jos_Abrahams)\
**Replies:** 1\
**Last updated:** [August 9, 2023, 2:06pm UTC](https://community.sonarsource.com/t/fp-on-cobol-s1728-alignment-of-data-item-declarations-acucobol/95392 "2023-08-09T14:06:52Z")

</div>

We are scanning Cobol sources. When we have a 01-level field with an 88-level condition, followed by a 78-level constant definition, we get 2 code-smell warnings about ‘fields with the same level not being aligned’. M…

---

## [False positive on cobol:S2583 (AcuCobol)](https://community.sonarsource.com/t/false-positive-on-cobol-s2583-acucobol/94790)

<div class="topic-metadata">

**Author:** [@Jos\_Abrahams](https://community.sonarsource.com/u/Jos_Abrahams)\
**Replies:** 5\
**Last updated:** [August 9, 2023, 10:37am UTC](https://community.sonarsource.com/t/false-positive-on-cobol-s2583-acucobol/94790 "2023-08-09T10:37:30Z")

</div>

We are scanning Cobol sources. When there is codethat changes the setting of a condition inside an ‘IF’ statement that tests the condition, and later on the same condition is tested again, the last test leads to a fals…

---

## [Code Smells listed in SonarQube but not in SonalLint for VS Code](https://community.sonarsource.com/t/code-smells-listed-in-sonarqube-but-not-in-sonallint-for-vs-code/96854)

<div class="topic-metadata">

**Author:** [@SteveH](https://community.sonarsource.com/u/SteveH)\
**Replies:** 2\
**Last updated:** [August 4, 2023, 11:16am UTC](https://community.sonarsource.com/t/code-smells-listed-in-sonarqube-but-not-in-sonallint-for-vs-code/96854 "2023-08-04T11:16:53Z")

</div>

Windows 10 Enterprise: SonarLint plugin version: v3.20.2 Programming language you’re coding in: COBOL Is connected mode used: Connected to SonarQube Enterprise Edition 9.4: I noticed that scanning the code in SonarQ…

[Next page](https://community.sonarsource.com/tag/cobol/7.md?match_all_tags=true&page=1&tags%5B%5D=cobol)
