-
-
Notifications
You must be signed in to change notification settings - Fork 745
commonlib: Add ANTLR #6168
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
base: main
Are you sure you want to change the base?
commonlib: Add ANTLR #6168
Conversation
0f24460 to
3b2ad77
Compare
|
Great job, no security vulnerabilities found in this Pull Request |
3b2ad77 to
77ed1aa
Compare
| tasks.named("generateGrammarSource") { | ||
| mustRunAfter(tasks.named("generateEffectiveLombokConfig")) | ||
| } |
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.
I have no idea if this is the best way to do this, it was the first way I found that worked.
77ed1aa to
be594d7
Compare
| import org.zaproxy.addon.commonlib.parserapi.impl.JavaScriptLexer; | ||
| import org.zaproxy.addon.commonlib.parserapi.impl.JavaScriptParser; | ||
|
|
||
| public class ParserApi { |
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.
This needs a proper API to extract/parse the JavaScript content. While this code might still be useful for more than one scan rule it needs to be cleaned up first.
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.
I guess we could remove the changelog entry and not bother announcing it until the other part is done? Or we can wait and expand it?I'm happy to push it further, just needed feedback. Do we need to start a doc?
Signed-off-by: kingthorin <[email protected]>
be594d7 to
c7a5236
Compare

Overview
Split from: #3838 as we have other potential uses.
Related Issues
Checklist
./gradlew spotlessApplyfor code formatting