-
Notifications
You must be signed in to change notification settings - Fork 10
Add Static rules for invalid range expression #43
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
Add Static rules for invalid range expression #43
Conversation
MaryamZi
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can probably do something like this for int:range also. Can be a separate rule.
scan-command/src/main/java/io/ballerina/scan/internal/CoreRule.java
Outdated
Show resolved
Hide resolved
scan-command/src/main/java/io/ballerina/scan/internal/StaticCodeAnalyzer.java
Outdated
Show resolved
Hide resolved
scan-command/src/main/java/io/ballerina/scan/internal/StaticCodeAnalyzer.java
Outdated
Show resolved
Hide resolved
scan-command/src/main/java/io/ballerina/scan/internal/StaticCodeAnalyzer.java
Outdated
Show resolved
Hide resolved
scan-command/src/main/java/io/ballerina/scan/internal/StaticCodeAnalyzer.java
Outdated
Show resolved
Hide resolved
scan-command/src/main/java/io/ballerina/scan/internal/StaticCodeAnalyzer.java
Outdated
Show resolved
Hide resolved
scan-command/src/test/java/io/ballerina/scan/internal/Rule006Test.java
Outdated
Show resolved
Hide resolved
scan-command/src/test/resources/command-outputs/unix/print-rules-to-console.txt
Outdated
Show resolved
Hide resolved
scan-command/src/test/resources/test-resources/core-rules/rule006_invalid_range_expression.bal
Show resolved
Hide resolved
scan-command/src/test/resources/test-resources/core-rules/rule006_invalid_range_expression.bal
Show resolved
Hide resolved
Will create a issue and add that later |
…ode-analysis-tool into invalid_range_expression
…ode-analysis-tool into invalid_range_expression
|



Add static rule for https://docs.google.com/document/d/117SJltpBJU4lb5hzhTZQe2rTOig_5O97tqetRzHeyU8/edit?tab=t.0#heading=h.uefoxy928j7j