Browse Source

be more pragmatic and cut tons of warnings to focus more on real problems

B. Petersen 6 years ago
parent
commit
c02f6a7229
1 changed files with 8 additions and 1 deletions
  1. 8 1
      .swiftlint.yml

+ 8 - 1
.swiftlint.yml

@@ -2,6 +2,10 @@ opt_in_rules:
 - empty_count
 - empty_count
 - empty_string
 - empty_string
 
 
+disabled_rules:
+- trailing_comma
+- large_tuple
+
 excluded:
 excluded:
 - Carthage
 - Carthage
 - Pods
 - Pods
@@ -14,7 +18,7 @@ identifier_name:
   min_length:
   min_length:
     warning: 1
     warning: 1
     error: 0
     error: 0
-  max_length: 30
+  max_length: 40
 
 
 line_length:
 line_length:
   warning: 150
   warning: 150
@@ -23,6 +27,9 @@ line_length:
   ignores_comments: true
   ignores_comments: true
   ignores_urls: true
   ignores_urls: true
 
 
+vertical_whitespace:
+  max_empty_lines: 2
+
 function_body_length:
 function_body_length:
   warning: 300
   warning: 300
   error: 500
   error: 500