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.6 KiB

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