首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >oclint:错误:没有加载规则

oclint:错误:没有加载规则
EN

Stack Overflow用户
提问于 2014-09-10 11:16:18
回答 1查看 1.2K关注 0票数 1

我试图从命令行获取警告、错误、语法编码约定和圈复杂度的列表。我发现奥林石可以用于我的目的。但后来我遇到了一个问题

我想做的事。

代码语言:javascript
复制
xcodebuild -project testing.xcodeproj -target "testing" -configuration "Debug" -destination "platform=iOS Simulator,name=iPad" -sdk "iphonesimulator7.0" -IDEBuildOperationMaxNumberOfConcurrentCompileTasks=8 clean
xcodebuild -project testing.xcodeproj -target "testing" -configuration "Debug" -destination "platform=iOS Simulator,name=iPad" -sdk "iphonesimulator7.0" -IDEBuildOperationMaxNumberOfConcurrentCompileTasks=8 build |tee xcodebuild.log

oclint-xcodebuild xcodebuild.log

在此之前,一切都很顺利,甚至compile_commands.json的创建也是正确的。

但是当我运行oclint-json-compilation-database时,我会得到这个错误。

我从这里中读到,在上面的命令成功后,我必须使用oclint [-enable-clang-static-analyzer]

如果有人知道如何解决这个问题,或者对我的需求有更好的解决方案,请告诉我。

编辑:如果我使用clint [-enable-clang-static-analyzer -R /usr/lib/oclint/rules ],那么我就得到了错误oclint: error: cannot find dynamic library for report type: text

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2014-09-11 10:28:22

发现了我的问题。发布解决方案,因为它可以帮助某人。

我的问题是,我克隆了存储库,并手动将脚本文件粘贴到usr/local/lib中,这在某种程度上是不对的!我所做的是删除这些,并做了一个啤酒安装。

这是命令

代码语言:javascript
复制
brew install https://raw.github.com/ryuichisaito6/homebrew/f12a21dd274899ef9ab14cd97e45f315dd982cf6/Library/Formula/oclint.rb 

谢谢

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

https://stackoverflow.com/questions/25763974

复制
相关文章

相似问题

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