Skip to content
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

Adding tests for rules 7-17 of dart language #716

Merged
merged 1 commit into from
Oct 27, 2021

Conversation

wiliansilvazup
Copy link
Contributor

@wiliansilvazup wiliansilvazup commented Oct 24, 2021

Note that in the HS-DART-8 rule, I increased the accuracy of the rule to only get logs that have string concatenation or string format.
Note too the HS-DART-15 rule was not working because there is no capitalized property so I added the option to include it in the entire regular expression.
Signed-off-by: wilian wilian.silva@zup.com.br

@wiliansilvazup wiliansilvazup force-pushed the feature/dart-rules-7-17 branch from 48eb025 to fe1933c Compare October 24, 2021 15:08
@wiliansilvazup wiliansilvazup self-assigned this Oct 24, 2021
@wiliansilvazup wiliansilvazup added the kind/improvement This issue is not a Bug nor a Feature label Oct 24, 2021
@wiliansilvazup wiliansilvazup linked an issue Oct 24, 2021 that may be closed by this pull request
@wiliansilvazup wiliansilvazup changed the title Adding tests for rules 1-17 of dart language Adding tests for rules 7-17 of dart language Oct 24, 2021
@wiliansilvazup wiliansilvazup force-pushed the feature/dart-rules-7-17 branch from fe1933c to 85c3ca1 Compare October 24, 2021 15:10
@wiliansilvazup wiliansilvazup force-pushed the feature/dart-rules-7-17 branch from 85c3ca1 to 2b06fef Compare October 25, 2021 15:14
@wiliansilvazup wiliansilvazup force-pushed the feature/dart-rules-7-17 branch from 2b06fef to 66c4dca Compare October 25, 2021 16:15
Note that in the HS-DART-8 rule, I increased the accuracy of the rule to only get logs that have string concatenation or string format.
Note too the HS-DART-15 rule was not working because there is no capitalized property so I added the option to include it in the entire regular expression.
Signed-off-by: wilian <wilian.silva@zup.com.br>
@wiliansilvazup wiliansilvazup force-pushed the feature/dart-rules-7-17 branch from 66c4dca to 4488f18 Compare October 25, 2021 16:24
Copy link
Contributor

@matheusalcantarazup matheusalcantarazup left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use rule id as suffix on code samples const names.

@wiliansilvazup
Copy link
Contributor Author

Use rule id as suffix on code samples const names.

i'll open other PR change all Constants names

@wiliansilvazup wiliansilvazup merged commit c1c754d into main Oct 27, 2021
@wiliansilvazup wiliansilvazup deleted the feature/dart-rules-7-17 branch October 27, 2021 18:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/improvement This issue is not a Bug nor a Feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

tests: create unit tests for rules of horusec-engine
5 participants