cocoapods-clang-format-hook:轻松设置一个 git pre-commit 钩子来验证你的代码

时间:2021-06-13 01:51:39
【文件属性】:
文件名称:cocoapods-clang-format-hook:轻松设置一个 git pre-commit 钩子来验证你的代码
文件大小:7KB
文件格式:ZIP
更新时间:2021-06-13 01:51:39
Ruby cocoapods-clang-format-h​​ook 一个 CocoaPods 插件,可以轻松设置 git pre-commit hook 以使用验证您的代码。 建议您在项目根目录上提交.clang-format 。 警告:此插件替换任何先前配置的预提交挂钩。 安装 clang-format $ brew update && brew install clang-format 如果你还没有安装 ,你应该安装。 安装 $ gem install cocoapods-clang-format-hook 用法 只需将plugin 'cocoapods-clang-format-hook'到您的 Podfile 中: source 'https://github.com/CocoaPods/Specs' platform :ios , '8.0' pod
【文件预览】:
cocoapods-clang-format-hook-master
----Rakefile(214B)
----cocoapods-clang-format-hook.gemspec(1KB)
----Gemfile(172B)
----spec()
--------command()
--------spec_helper.rb(929B)
----.gitignore(21B)
----lib()
--------cocoapods_plugin.rb(435B)
--------cocoapods-clang-format-hook.rb(50B)
--------cocoapods-clang-format-hook()
----README.md(979B)
----LICENSE.txt(1KB)

网友评论