Created
May 18, 2016 09:04
-
-
Save satoshin2071/249e64c9c35d0fa79d50fd7a346a8874 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 対象ディレクトリ | |
included: | |
- TrySwiftLint # FIXME: 適宜プロジェクト名に変更 | |
# 除外ディレクトリ | |
excluded: | |
- Pods | |
# 追加ルール(ルールが適用されていないようであれば追記すること) | |
opt_in_rules: | |
- force_unwrapping | |
# 無視するルール | |
disabled_rules: | |
- line_length # 1 行の長さ | |
- trailing_whitespace # 行末に余計なスペース | |
# error 扱いにするルール | |
force_cast: error # [NG] as! | |
force_unwrapping: error # [NG] value! | |
opening_brace: error # [NG] if x == 0{ / [OK] if x == 0 { | |
statement_position: error # [NG] if x == 0 \n { / [OK] if x == 0 { | |
return_arrow_whitespace: error # [NG] func foo()->Int / [OK] func foo() -> Int | |
colon: error # [NG] let x:Int = 0 / [OK] let x: Int = 0 | |
comma: error # [NG] foo(x,y , z) / [OK] foo(x, y, z) | |
control_statement: warning # [NG] if (x == 0) / [OK] if x == 0 | |
force_try: warning # [NG] try! throwableFunc() | |
# warning 扱いにするルール | |
variable_name: | |
min_length: | |
warning: 3 | |
error: 0 | |
excluded: | |
- id | |
- x | |
- y | |
- z | |
# 未設定のルール(SwiftLintのデフォルトに従う) | |
#closing_brace | |
#conditional_binding_cascade | |
#cyclomatic_complexity | |
#empty_count | |
#file_length | |
#function_body_length | |
#function_parameter_count | |
#leading_whitespace | |
#legacy_cggeometry_functions | |
#legacy_constant | |
#legacy_constructor | |
#missing_docs | |
#nesting | |
#opening_brace | |
#operator_whitespace | |
#return_arrow_whitespace | |
#todo | |
#trailing_newline | |
#trailing_semicolon | |
#trailing_whitespace | |
#type_body_length | |
#type_name | |
#valid_docs |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment