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.

60 lines
1.7 KiB

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