Skip to content

Commit 5115fa8

Browse files
committed
Working on 5.0.0 release
1 parent c6528dd commit 5115fa8

File tree

123 files changed

+4168
-11627
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

123 files changed

+4168
-11627
lines changed

.swift-version

-1
This file was deleted.

.swiftlint.yml

+83
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,83 @@
1+
disabled_rules: # rule identifiers to exclude from running
2+
- line_length
3+
- function_body_length
4+
- cyclomatic_complexity
5+
- multiple_closures_with_trailing_closure
6+
- xctfail_message
7+
- vertical_parameter_alignment
8+
9+
# Swift 3 rules that do not make sense for Swift 2.3
10+
- implicit_getter
11+
12+
identifier_name:
13+
min_length:
14+
warning: 1
15+
error: 1
16+
max_length:
17+
warning: 60
18+
error: 80
19+
20+
type_name:
21+
max_length:
22+
warning: 60
23+
error: 100
24+
25+
type_body_length:
26+
warning: 400
27+
error: 500
28+
29+
file_length:
30+
warning: 700
31+
error: 800
32+
33+
excluded:
34+
- Unit Tests/GeneratedCode
35+
- Pods
36+
37+
function_parameter_count:
38+
warning: 7
39+
error: 10
40+
41+
large_tuple:
42+
warning: 3
43+
44+
opt_in_rules: # some rules are only opt-in
45+
- closure_end_indentation
46+
- closure_spacing
47+
- syntactic_sugar
48+
- redundant_nil_coalescing
49+
- number_separator
50+
- sorted_imports
51+
- overridden_super_call
52+
- object_literal
53+
- explicit_init
54+
- first_where
55+
- operator_usage_whitespace
56+
57+
58+
number_separator:
59+
minimum_length: 7
60+
61+
custom_rules:
62+
double_space: # from https://github.com/IBM-Swift/Package-Builder
63+
include: "*.swift"
64+
name: "Double space"
65+
regex: '([a-z,A-Z] \s+)'
66+
message: "Double space between keywords"
67+
match_kinds: keyword
68+
severity: warning
69+
comments_space: # from https://github.com/brandenr/swiftlintconfig
70+
name: "Space After Comment"
71+
regex: '(^ *//\w+)'
72+
message: "There should be a space after //"
73+
severity: warning
74+
empty_line_after_guard: # from https://github.com/brandenr/swiftlintconfig
75+
name: "Empty Line After Guard"
76+
regex: '(^ *guard[ a-zA-Z0-9=?.\(\),><!]*\{[ a-zA-Z0-9=?.\(\),><!]*\}\n *(?!(?:return|guard))\S+)'
77+
message: "There should be an empty line after a guard"
78+
severity: warning
79+
unnecessary_type: # from https://github.com/brandenr/swiftlintconfig
80+
name: "Unnecessary Type"
81+
regex: '[ a-zA-Z0-9]*(?:let|var) [ a-zA-Z0-9]*: ([a-zA-Z0-9]*)[ ]*= \1'
82+
message: "Type Definition Not Needed"
83+
severity: warning

.travis.yml

-21
This file was deleted.

0 commit comments

Comments
 (0)