提交 0b561d1e 编写于 作者: N Nicholas Maccharoli 提交者: GitHub

Merge pull request #5 from Nirma/swiftlint_warnings

Silence swiftlint warning and update rules
disabled_rules:
- type_body_length
- cyclomatic_complexity
- compiler_protocol_init
- force_cast
......
......@@ -23,7 +23,7 @@ enum FontCase {
func createEnumNamesAndCases() -> [FontCase] {
var fontData = [FontCase]()
for family in UIFont.familyNames where UIFont.fontNames(forFamilyName: family).count > 0 {
for family in UIFont.familyNames where !UIFont.fontNames(forFamilyName: family).isEmpty {
fontData += [FontCase.family(family)]
for font in UIFont.fontNames(forFamilyName: family) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册