[test] for swf_tasks
[test] better code climate

(hopefully, as it requires a login for free trial)