Replies: 3 comments 1 reply
-
In case you'd like to test how many syntax errrors you'd get, here is a snapshot of the OE plugin, based on the 2.15.0: https://ci.rssw.eu/job/sonar-openedge/job/feature%252FNoEOF/3/artifact/openedge-plugin/target/sonar-openedge-plugin-2.16.0-SNAPSHOT.jar See next comment, it might be easier to execute the parser with a command-line rather than with a full SonarQube context. |
Beta Was this translation helpful? Give feedback.
-
You can execute the parser on your codebase with those two JAR files: version 2.15 and version 2.16-SNAPSHOT where functionality is removed. Can be executed with:
You can reuse the same values as the ones of your code analysis. The last lines of the log output mention the files where a syntax error occured. |
Beta Was this translation helpful? Give feedback.
-
@gquerret I voted would accept syntax error on condition that Sonarlint-on-the-fly will display those errors. Currently, sonarlint does not show anything for failing analysis. |
Beta Was this translation helpful? Give feedback.
-
In an ABL procedure or class, the last
END
statement or last.
is optional, so this kind of code can be executed without any issue:In my opinion, that's ugly and should never have been accepted, but it works...
For multiple reasons that would be a bit too long to explain here, removing this functionality from the grammar would make things much easier when dealing with code completion (for the upcoming OpenEdge plugin for VSCode). Maintaining two versions require a significant amount of time, so we'd like to have your input on the removal of this code.
9 votes ·
Beta Was this translation helpful? Give feedback.
All reactions