StoryboardLint:UIStoryboard 的 lint 工具,用于查找错误的类和错误的 storyboardseguereuse 标识符

时间:2021-06-29 22:26:08
【文件属性】:
文件名称:StoryboardLint:UIStoryboard 的 lint 工具,用于查找错误的类和错误的 storyboardseguereuse 标识符
文件大小:38KB
文件格式:ZIP
更新时间:2021-06-29 22:26:08
Ruby 故事板皮棉 UIStoryboard 的 lint 工具,用于查找错误的类和错误的故事板/segue/重用标识符。 背景 在 iOS 开发中,UIStoryboards 使用起来很痛苦, 。 两个很大的原因是: 您只能使用字符串文字作为 Storyboard 中视图控制器和 segue 的标识符。 在引用 Storyboard 中的任何内容时,您的源代码中再次需要这些相同的字符串文字:因此,您的 ID 位于两个或多个位置,并且无法知道您在代码中使用的 ID 是否确实存在于您的 Storyboard 中。 您无法知道您的 Storyboard 是否引用了源代码中不存在的类(不再存在)。 不要怕! 使用 StoryboardLint,您最终可以确保您的代码和故事板同步(至少在一定程度上)。 StoryboardLint 执行以下操作: 确保您的UITableViewCell和UICo
【文件预览】:
StoryboardLint-master
----.travis.yml(40B)
----bin()
--------storyboardlint(154B)
----storyboardlint.gemspec(4KB)
----Rakefile(1KB)
----LICENSE(1KB)
----Gemfile(316B)
----Gemfile.lock(1KB)
----VERSION(6B)
----.rspec(26B)
----spec()
--------source_scanner_spec.rb(5KB)
--------matcher_spec.rb(5KB)
--------storyboard_scanner_spec.rb(2KB)
--------linter_spec.rb(871B)
--------spec_helper.rb(760B)
--------fixtures()
----.gitignore(170B)
----CHANGELOG.md(838B)
----lib()
--------storyboardlint.rb(12KB)
----README.md(4KB)

网友评论