Advertisement
Guest User

Untitled

a guest
Jul 15th, 2019
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.78 KB | None | 0 0
  1. disabled_rules: # rule identifiers to exclude from running
  2. - line_length
  3. - todo
  4. - trailing_whitespace
  5. - identifier_name
  6. - void_return
  7. - colon
  8. - notification_center_detachment
  9. - discarded_notification_center_observer
  10. - type_name
  11. - switch_case_alignment
  12. opt_in_rules:
  13. - sorted_first_last
  14. - contains_over_first_not_nil
  15. # - explicit_top_level_acl
  16. - empty_count
  17. - closure_spacing
  18. # - explicit_type_interface
  19. - fatal_error_message
  20. - first_where
  21. - force_unwrapping
  22. - implicit_return
  23. - implicitly_unwrapped_optional
  24. - no_extension_access_modifier
  25. - operator_usage_whitespace
  26. - overridden_super_call
  27. # - private_outlet
  28. - redundant_nil_coalescing
  29. # - switch_case_on_newline
  30. - vertical_parameter_alignment_on_call
  31.  
  32. excluded: # paths to ignore during linting. overridden by `included`.
  33. - Carthage
  34. - Pods
  35. - fastlane
  36. - R.generated.swift
  37.  
  38. # parameterized rules can be customized from this configuration file
  39. # first line is warning, second is error
  40. file_length:
  41. - 700
  42. - 1000
  43. line_length:
  44. - 230
  45. - 250
  46.  
  47. # parameterized rules are first parameterized as a warning level, then error level.
  48. function_body_length:
  49. - 150
  50. - 200
  51. type_body_length:
  52. - 300
  53. - 400
  54.  
  55. # naming rules can set warnings/errors for min_length and max_length
  56. # additionally they can set excluded names
  57. type_name:
  58. min_length: 3 # only warning
  59. max_length: # warning and error
  60. warning: 40
  61. error: 50
  62. excluded: iPhone # excluded via string
  63. identifier_name:
  64. min_length: # only min_length
  65. error: 4 # only error
  66. excluded: # excluded via string array
  67. - id
  68. - URL
  69. - GlobalAPIKey
  70.  
  71. reporter: "html" # reporter type (xcode, json, csv, checkstyle, junit, html, emoji)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement