【发布时间】:2017-02-01 14:38:57
【问题描述】:
我试图在我的 .swiftlint.yml 文件中做这样的事情:
force_cast:
severity: warning # explicitly
excluded:
- Dog.swift
我有这段代码,但我不喜欢我收到的 force_try 警告:
let cell = tableView.dequeueReusableCellWithIdentifier(Constants.dogViewCellReuseIdentifier,
forIndexPath: indexPath) as! DogViewCell
我想通过从规则中排除这个文件来禁止这个文件的警告。
有没有办法做到这一点?
【问题讨论】:
标签: swiftlint