首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >如何安装phpcodesniffer引擎以使用CodeClimate CLI?

如何安装phpcodesniffer引擎以使用CodeClimate CLI?
EN

Stack Overflow用户
提问于 2015-06-23 20:20:52
回答 1查看 245关注 0票数 2

我只是尝试使用[医]硬膜在本地分析我的代码。我使用的是MacOSX10.10.3,按照这里的建议,我使用的是boot2docker

目前一切都很好。我运行codeclimate init来生成.codeclimate.yml文件并对其进行调整。看起来是这样的:

代码语言:javascript
复制
---
engines:
  phpcodesniffer:
    enabled: true
  coffeelint:
    enabled: true
  eslint:
    enabled: true
  csslint:
    enabled: true
ratings:
  paths:
  - "**.php"
  - "**.coffee"
  - "**.js"
  - "**.jsx"
  - "**.css"
exclude_paths:
- node_modules/**/*
- vendor/**/*
- etc/**/*
- .vagrant/**/*

然后运行codeclimate engines:install,这是我的输出:

代码语言:javascript
复制
Pulling docker images.
WARNING: unknown engine name: phpcodesniffer
...

最后,codeclimate engines:list输出:

Available engines: - bundler-audit: Patch-level verification for Bundler - coffeelint: A style checker for CoffeeScript - csslint: Automated linting of Cascading Stylesheets - eslint: A JavaScript/JSX linting utility - gofmt: gofmt - golint: golint - govet: govet - rubocop: A Ruby static code analyzer, based on the community Ruby style guide. - rubymotion: Rubymotion-specific rubocop checks - watson: A young Ember Doctor to help you fix your code.

我做错了什么?我该如何安装这台发动机?

事先非常感谢

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2015-06-24 16:42:58

我们(Code )最近发布了phpcodesniffer引擎,您的本地Climate版本可能需要更新以了解它。

我刚刚更新了我们的文档,以解释如何运行更新:发动机

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/31012722

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档