LoginSignup
0
1

More than 3 years have passed since last update.

Swiftlintで警告がでないようにする

Last updated at Posted at 2019-08-21

Swiftlintを導入すると、いろいろと警告を出してもらえるので便利な反面、エラーが出すぎるとエディタの可視性が悪くなります。
そこで警告を消す方法です。

// swiftlint: disable <ルール名>

ちなみに戻す方法はenableです。

// swiftlint: enable <ルール名>

参考

[SwiftLint]コードの中で無効にするルールを指定する - Qiita
realm/SwiftLint: A tool to enforce Swift style and conventions.

0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1