package-analysis
package-analysis copied to clipboard
Refactor analysis.go and worker.go to reduce duplicated code
cmd/worker is used in docker-compose and production, while cmd/analyze is used for the one-shot local analysis. However, they both share the same container and contain duplicated code. This could use some refactoring.
A possible refactoring strategy (from @calebbrown)
- internal/analysis renamed to internal/dynamicanalysis
- internal/analysis becomes new generalized API for all analysis
- internal/staticanalysis is new static analysis work
There is still common code to be refactored
Fixed by #429