如何安装phpcodesniffer引擎以与CodeClimate CLI配合使用?

如何安装phpcodesniffer引擎以与CodeClimate CLI配合使用?,php,command-line-interface,code-climate,Php,Command Line Interface,Code Climate,我只是想用它在本地分析我的代码。我正在使用MacOSX10.10.3,我正在使用 到目前为止一切都很好。我运行codecclimate init生成.codecclimate.yml文件并对其进行了调整。看起来是这样的: --- engines: phpcodesniffer: enabled: true coffeelint: enabled: true eslint: enabled: true csslint: enabled: true r

我只是想用它在本地分析我的代码。我正在使用MacOSX10.10.3,我正在使用

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

---
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/**/*
之后,我运行
code气候引擎:安装
,这是我的输出:

Pulling docker images.
WARNING: unknown engine name: phpcodesniffer
...
最后,
codeclimate引擎:列出输出:


可用发动机:
-bundler审计:bundler的补丁级别验证
-coffeelint:CoffeeScript的样式检查器
-csslint:级联样式表的自动筛选
-eslint:一个JavaScript/JSX linting实用程序
-gofmt:gofmt
-古林特:古林特
-govet:govet
-rubocop:一个基于社区Ruby风格指南的Ruby静态代码分析器。
-rubymotion:特定于rubymotion的rubocop检查
-沃森:一位年轻的恩伯医生来帮你修复代码。

我做错了什么?我应该如何安装这个引擎

非常感谢

我们(代码环境)最近刚刚发布了phpcodesniffer引擎,您的本地代码环境CLI版本可能需要更新才能了解它


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

只是为了确认,我今天早上做了
brew更新和&brew升级codeclimate
,但没有工作。它现在起作用了,并将codeclimate升级为
codeclimate/formulas/codeclimate 0.0.8
。codecurimate工作得很好。感谢
code Climate CLI
如果没有列出声称支持的发动机,则需要更新。要更新,您可以提取最新的docker映像
$docker pull codecclimate/codecclimate
,或者更新您的本地git-repo-of-CC并从那里构建映像,然后执行make,即
sudo-make安装