Fix linter syntax issues reported by CodeClimate