codefactor-io / codefactor

Automated static analysis for C#, C++, Java, CSS, JS, Go, Python, Ruby, TypeScript, Scala, CoffeeScript, Groovy, C, SCSS, Less, PHP, Dockerfile, Bash, YAML and Swift.
https://www.codefactor.io
62 stars 31 forks source link

ability to factor todos as code debt #47

Open GuyARoss opened 2 years ago

GuyARoss commented 2 years ago

Add support to automatically detect "todos".

cordis-dev commented 2 years ago

@GuyARoss thanks for reporting. We do support "todos" for some languages. E.g. for Python we use Pylint linter which includes related rule - https://github.com/PyCQA/pylint/blob/main/pylint/checkers/misc.py#L81. Go, for example, is linted using Vet - https://pkg.go.dev/cmd/vet - which does not have something similar, so we'd have to create something custom.

We'll consider adding this feature for missing languages.

GuyARoss commented 2 years ago

@cordis-dev is there any way that I can contribute this feature for go?

cordis-dev commented 2 years ago

@GuyARoss there does not seem to be any related issues at https://github.com/golang/go/issues?page=9&q=is%3Aissue+is%3Aopen+cmd%2Fvet, but that would be one way of adding this check for go vet.

Alternatively, if any other related linters like https://staticcheck.io/docs/checks or https://revive.run/r will include this check in the future, we'd consider adding it to our tool-set.

Hope it helps.