phase2 / rig

Outrigger command line tool
MIT License
11 stars 8 forks source link

Reduce cyclomatic complexity of ProjectConfig.ValidateProjectScripts() #105

Open febbraro opened 7 years ago

febbraro commented 7 years ago

Our new static analysis tooling identified ProjectConfig.ValidateProjectScripts as failing on cyclomatic complexity. That's a fancy phrase for "too much nesting of logic/too much code in one function".

HELP WANTED This issue is a great opportunity to learn Golang, the contribution workflow of rig, and incidentally improve rig!

Notes

Adding a Library docker-compose run --rm base dep ensure --add github.com/awesome/lib

Testing

grayside commented 6 years ago

Expanded the initial note into a full new contributor orientation.

grayside commented 6 years ago

Note that #90 points out a problem with the current error logging: namely that it can interference with the output of completely unrelated commands. That is not necessarily in scope here but refactoring should keep in mind that we'd prefer to give the caller more control over when & how this logging happens.