-
-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Students are able to compile code that is longer than 80 columns with fixed-form #74
Comments
@0xE282B0 do you know if cobol-check has any options to maintain the column limit? |
We found out that the line limits are not hit because cobolcheck reformats the code. Before cobolcheck: IF FUNCTION MOD ( WS-YEAR, 4 ) = 0 AND FUNCTION MOD ( WS-YEAR, 100 ) > 0 OR FUNCTION MOD ( WS-YEAR, 400 ) = 0
MOVE 1 TO WS-RESULT
ELSE
MOVE 0 TO WS-RESULT. After cobolcheck: IF FUNCTION MOD ( WS-YEAR, 4 ) = 0 AND FUNCTION MOD (
WS-YEAR, 100 ) > 0 OR FUNCTION MOD ( WS-YEAR, 400 ) = 0
MOVE 1 TO WS-RESULT
ELSE
MOVE 0 TO WS-RESULT. |
@KTSnowy This behavior is not configurable, see: https://github.com/openmainframeproject/cobol-check/blob/main/src/main/java/org/openmainframeproject/cobolcheck/features/writer/CobolWriter.java#L36-L47 |
Would it be alright if you make a temporary fork to test it? |
Sure, just need to see when I can get to that. |
I thought that gnuCOBOL's default option maintained the fixed-form column length limit.
The text was updated successfully, but these errors were encountered: