Advertisement
Guest User

Untitled

a guest
Aug 25th, 2019
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.57 KB | None | 0 0
  1. disabled_rules: # rule identifiers to exclude from running
  2. - colon
  3. - comma
  4. - control_statement
  5. opt_in_rules: # some rules are only opt-in
  6. - empty_count
  7. # Find all the available rules by running:
  8. # swiftlint rules
  9. included: # paths to include during linting. `--path` is ignored if present.
  10. - Source
  11. excluded: # paths to ignore during linting. Takes precedence over `included`.
  12. - Carthage
  13. - Pods
  14. - Source/ExcludedFolder
  15. - Source/ExcludedFile.swift
  16. - Source/*/ExcludedFile.swift # Exclude files with a wildcard
  17. analyzer_rules: # Rules run by `swiftlint analyze` (experimental)
  18. - explicit_self
  19.  
  20. # configurable rules can be customized from this configuration file
  21. # binary rules can set their severity level
  22. force_cast: warning # implicitly
  23. force_try:
  24. severity: warning # explicitly
  25. # rules that have both warning and error levels, can set just the warning level
  26. # implicitly
  27. line_length: 110
  28. # they can set both implicitly with an array
  29. type_body_length:
  30. - 300 # warning
  31. - 400 # error
  32. # or they can set both explicitly
  33. file_length:
  34. warning: 500
  35. error: 1200
  36. # naming rules can set warnings/errors for min_length and max_length
  37. # additionally they can set excluded names
  38. type_name:
  39. min_length: 4 # only warning
  40. max_length: # warning and error
  41. warning: 40
  42. error: 50
  43. excluded: iPhone # excluded via string
  44. identifier_name:
  45. min_length: # only min_length
  46. error: 4 # only error
  47. excluded: # excluded via string array
  48. - id
  49. - URL
  50. - GlobalAPIKey
  51. reporter: "xcode" # reporter type (xcode, json, csv, checkstyle, junit, html, emoji, sonarqube, markdown)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement