numaproj / numaflow

Kubernetes-native platform to run massively parallel data/streaming jobs
https://numaflow.numaproj.io/
Apache License 2.0
1.05k stars 106 forks source link

Find unreachable functions with deadcode if any #1524

Open KeranYang opened 6 months ago

KeranYang commented 6 months ago

https://go.dev/blog/deadcode

Run the tool under the cmd folder to identify. Look for opportunities to clean up.

rishhavv commented 6 months ago

@KeranYang we only want do deadcode lookup on cmd folder?

KeranYang commented 6 months ago

Hey @rishhavv , thanks for looking at the issue. I think cmd folder is the entrance of the platform(container). The tool always starts checking from the main function. Starting from cmd it should be able to cover most of the pkgs.