cnescatlab / cnescatlab/i-CodeCNES
Fortran 77 Comment Parsing Issue with Initial 'C' Character
- Dominant language
- Fortran
- Stars
- 63
- Forks
- 18
- PR merge metrics
- No merged PRs in 30d
Description
**Describe the bug**
Hello i-CodeCNES team,
I've encountered an issue with the Fortran 77 analysis in i-CodeCNES where lines starting with the `C` character are not recognized as comments. This happens even when explicitly specifying the language using the command:
```batch
icode.bat --checked-languages "Fortran 77"
```
**Expected behavior**
In Fortran 77, any line starting with a `C` or `c` in the first column should be treated as a comment. ([reference](https://docs.oracle.com/cd/E19957-01/805-4939/z40007332024/index.html))
**Current Behavior:**
Lines starting with `C` are not considered comments by the analyzer, leading to potential misinterpretation of the code structure.
**Temporary Workaround:**
A temporary workaround is to replace all starting `C` characters with `!` to ensure they are recognized as comments by i-CodeCNES.
**Suggested Fix:**
It would be beneficial to update i-CodeCNES to correctly recognize lines starting with `C` as comments when analyzing Fortran 77 code.
Contributor guide
Assessment
This issue has not been assessed yet.