-
Notifications
You must be signed in to change notification settings - Fork 23
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
Removed comments + added line highlight at position of keyword #268
base: main
Are you sure you want to change the base?
Removed comments + added line highlight at position of keyword #268
Conversation
@martinmladenov How should I rename the class ? Also should I write a separate test for removeComments method ? |
andy/src/main/java/nl/tudelft/cse1110/andy/execution/step/SourceCodeSecurityCheckStep.java
Show resolved
Hide resolved
return false; | ||
String[] lines = code.split("\\n"); | ||
// Split lines and search every line for keyword | ||
for (int lineNumber = 0; lineNumber < lines.length; lineNumber++) |
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.
Can we have a test showing what this should do? :)
Good question, I haven't thought about that. Maybe something like "SourceCodeCheckStep" would be suitable (but this could be misleading as people might think it has to do with code checks). If you think of anything more suitable, feel free to use that instead. @mauricioaniche Do you have any ideas? |
|
Closes #213
The aim of this Pull Request is to improve the SourceCodeSecurityCheckStep class.