Skip to content

SwiftLintの導入

stv-ekushida edited this page Feb 8, 2018 · 4 revisions

インストール

brew install swiftlint

Run Scriptに下記を設定する

TARGETS > Build Phases > + > New Run Script Phase

if which swiftlint >/dev/null; then
  swiftlint
else
  echo "SwiftLint does not exist, download from https://github.com/realm/SwiftLint"
fi

ルールを設定する

.swiftlint.ymlにルールを設定する

Warningの意味

http://qiita.com/KAGE_MIKU/items/80e6d905dc0059c342b3#weak_delegate

Clone this wiki locally