forked from stripe/stripe-ios
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.swiftlint.yml
68 lines (58 loc) · 1.44 KB
/
.swiftlint.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
# .swiftlint.yml
#
# Useful rules reference: https://realm.github.io/SwiftLint/rule-directory.html
disabled_rules:
- line_length
- type_body_length
opt_in_rules:
- attributes
- closing_brace
- colon
- comma
- control_statement
- empty_count
- file_header
- force_try
- joined_default_parameter
- leading_whitespace
- legacy_cggeometry_functions
- legacy_constant
- multiline_parameters
- nesting
- opening_brace
- overridden_super_call
- private_outlet
- prohibited_super_call
- redundant_nil_coalescing
- return_arrow_whitespace
- single_test_class
- statement_position
- trailing_newline
- trailing_semicolon
- trailing_whitespace
excluded:
- Pods
- Carthage
- Tests/installation_tests
file_header:
required_pattern: |
\/\/
\/\/ .*?\.swift
\/\/ (Stripe|StripeTests|StripeiOS)
\/\/
\/\/( Created by .*? on \d{1,2}\/\d{1,2}\/\d{2}\.
\/\/)?( Copyright (©|\(c\)) \d{4} Stripe\. All rights reserved\.
\/\/)?
function_parameter_count:
warning: 4 # Progressively lower this number from the default of 5
identifier_name:
allowed_symbols: _
min_length: 1
validates_start_with_lowercase: false
large_tuple:
warning: 4 # It would be nice to lower this number
error: 5
type_name:
allowed_symbols: _
vertical_whitespace:
max_empty_lines: 2