用Homebrew安裝Oclint是快速且有用的解決方案。 打開終端和安裝自制第一:
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
與該命令安裝Oclint 0.11.1
brew install https://gist.github.com/TonyAnhTran/e1522b93853c5a456b74/raw/2f440240fe99634771a3f2353c0c53a43c2d0fb2/oclint.rb
要在終端創建的.bash_profile:
Type "cd ~/" to go to your home folder
Type "touch .bash_profile" to create your new file.
Edit .bash_profile with your favorite editor (or you can just type "open -e .bash_profile" to open it in TextEdit.
Type ". .bash_profile" to reload .bash_profile and update any functions you add.
更新上31-Jul-資料2017:
before_install:
- 釀造的桶裝卸載oclint
- 沖泡自來水oclint /公式
- 釀造安裝oclint
「OCLint是運行在一個獨立的工具Linux和Mac OS X平臺。「 =>是什麼使它成爲一個編程問題? –