You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

64 lines
1.8 KiB

5 years ago
  1. disabled_rules: # 실행에서 제외할 룰 식별자들
  2. - colon
  3. - comma
  4. - control_statement
  5. - trailing_whitespace
  6. - function_parameter_count
  7. - missing_docs
  8. - cyclomatic_complexity
  9. - function_body_length
  10. - type_body_length
  11. - file_length
  12. - valid_ibinspectable
  13. - block_based_kvo
  14. # 사용 가능한 모든 룰은 swiftlint rules 명령으로 확인 가능
  15. excluded: # 린트 과정에서 무시할 파일 경로. `included`보다 우선순위 높음
  16. - Pods
  17. - fastlane
  18. - GME Remit/Protocols/WireframeInput.swift
  19. # 설정 가능한 룰은 이 설정 파일에서 커스터마이징 가능
  20. # 경고나 에러 중 하나를 발생시키는 룰은 위반 수준을 설정 가능
  21. force_cast: warning # 암시적으로 지정
  22. force_try:
  23. severity: warning # 명시적으로 지정
  24. # 경고 및 에러 둘 다 존재하는 룰의 경우 값을 하나만 지정하면 암시적으로 경고 수준에 설정됨
  25. line_length: 110
  26. cyclomatic_complexity:
  27. - 10
  28. - 25
  29. function_body_length:
  30. - 40
  31. - 150
  32. # 값을 나열해서 암시적으로 양쪽 다 지정할 수 있음
  33. type_body_length:
  34. - 300 # 경고
  35. - 400 # 에러
  36. # 둘 다 명시적으로 지정할 수도 있음
  37. file_length:
  38. warning: 500
  39. error: 1287
  40. # 네이밍 룰은 경고/에러에 min_length와 max_length를 각각 설정 가능
  41. # 제외할 이름을 설정할 수 있음
  42. type_name:
  43. min_length: 1 # 경고에만 적용됨
  44. max_length: # 경고와 에러 둘 다 적용
  45. warning: 40
  46. error: 50
  47. excluded:
  48. - iPhone # 제외할 문자열 값 사용
  49. - GME_RemitUITests
  50. identifier_name:
  51. min_length:
  52. warning: 1
  53. error: 1 # 에러만 적용
  54. excluded: # 제외할 문자열 목록 사용
  55. - URL
  56. - GlobalAPIKey
  57. reporter: "xcode" # 보고 유형 (xcode, json, csv, checkstyle, junit, html, emoji, markdown)