-
Notifications
You must be signed in to change notification settings - Fork 16
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
Modified behaviour for several rules with FNAME #137
Comments
valid), tests updated accordingly. Updated extra test file that had CR+LF Windows style end of lines and could not be analyzed by i-Code.
remains valid), tests updated accordingly. Updated extra test file that had CR+LF Windows style end of lines and could not be analyzed by i-Code.
(including case-esac). Tests updated accordingly. Issue #137 remains valid).
failing after introducing FNAME. The issue was solved by removing \space from the SPACE token.
COM.TYPE.Expression had the same problem. It was solved by removing the \space in the SPACE token. This might be the cause of the modified behaviour of the other rules, that also use SPACE in other tokens. |
remaining rules not yet having FNAME
COM.FLOW.Recursion no longer needed to take FNAME into account in the scope of this issue as it had been localized since raising this issue, and it was already done. \space was at the root of the issue: \space contains \n, causing rules to detect SPACE (containing \space) in unwanted places. |
(overlooked in previous treatment of the issue)
…scatlab#137 remains valid), tests updated accordingly. Updated extra test file that had CR+LF Windows style end of lines and could not be analyzed by i-Code.
…tion (issue cnescatlab#137 remains valid), tests updated accordingly. Updated extra test file that had CR+LF Windows style end of lines and could not be analyzed by i-Code.
… localization (including case-esac). Tests updated accordingly. Issue cnescatlab#137 remains valid).
…e automatic tests were failing after introducing FNAME. The issue was solved by removing \space from the SPACE token.
…viour for remaining rules not yet having FNAME
…l rules (overlooked in previous treatment of the issue)
valid), tests updated accordingly. Updated extra test file that had CR+LF Windows style end of lines and could not be analyzed by i-Code.
remains valid), tests updated accordingly. Updated extra test file that had CR+LF Windows style end of lines and could not be analyzed by i-Code.
(including case-esac). Tests updated accordingly. Issue #137 remains valid).
failing after introducing FNAME. The issue was solved by removing \space from the SPACE token.
(overlooked in previous treatment of the issue)
Expected behavior
Using FNAME in FUNCT instead of VAR should not change the expected behaviour of the rule
Actual behavior
When using FNAME, the rules failed their automatic tests, either just on one on on both the tests.
Steps to reproduce behavior
Replace the FUNCT definition using VAR with the one using FNAME, change VAR to FNAME in the naming state (can be found in most rules).
The following rules are the ones concerned with the issue:
COM.FLOW.Recursion
COM.INST.CodeComment
COM.INST.Line
COM.PRES.Indent
SH.MET.PipeLine
SH.FLOW.CheckCodeReturn
Detection version
3.1.0-dev
The text was updated successfully, but these errors were encountered: