-
Notifications
You must be signed in to change notification settings - Fork 0
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
Initial draft of CodeTF v3 #44
base: main
Are you sure you want to change the base?
Conversation
It's so hard for me to reason about a schema, can we make an example that shows all the fields in use? We could use that to validate the schema does what we want, as well. |
@@ -0,0 +1,181 @@ | |||
{ |
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.
Should this have this header?
"commandLine": "codemodder-python --verbose --dry-run --sonar /Users/example/sonar_juice-shop.json /Users/example/juice-shop", | ||
"directory": "/Users/example/juice-shop", | ||
"sarifs": [] | ||
}, |
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 would expect this to be a single fix
. I thought we liked the idea of fix orchestration being done upstream. This implies there should be some orchestration here.
This means callers would have to change how they call codemods -- with a single input, but that significantly de-scopes the codemodder implementations.
"findingMetadata": { | ||
"type": "object", | ||
"description": "Metadata about the finding being addressed", | ||
"properties": { |
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 think it's worth pointing out all this findingMetadata
should be from the tool itself -- which begs the question -- in the scope of a single issue being fixed, the caller already knows this -- so, do we need to send it back? Don't they already know it?
Before I push additional changes, let me try to summarize the proposed general direction:
|
This draft provides a starting point for the discussion about a new, remediation-focused version of CodeTF.
The previous version of CodeTF is oriented around batch changes to files. Our new architecture requires a format that is instead oriented around the remediation of individual findings, each of which may require changes to multiple files.
This version retains much of the metadata structures contained within v2 but reorganized to better reflect the realities of remediation.