使わない変数は対象外) _ などの英数文字以外は禁止 小文字から始めろ (type_name): struct は大文字から始まる名前をつけろ (line_length): 1 行につき100 文字以内にしろ (function_body_length): 関数は100 行以下にしろ (control_statement): if 文などの条件式にカッコをつけるな i f ( t r u e ) { -> i f t r u e { (cyclomatic_complexity): i f / e l s e i f の繰り返しが多すぎ
T O D O : D e l e t e t e m p o r a r y c o m m e n t / / s w i f t l i n t : d i s a b l e t y p e _ b o d y _ l e n g t h こういうのもあるらしい ( ルー ル指定できるなら使えるかも) s w i f t l i n t a u t o c o r r e c t