codeclimate for resource.js