many rubocop fixes
simplify build_resource in repo LWRP & disable cyclomatic complexity cop