Skip to content

Commit 6f33526

Browse files
Copy version from MasOrange fork (#42)
1 parent 658eb03 commit 6f33526

File tree

186 files changed

+3653
-7871
lines changed

Some content is hidden

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

186 files changed

+3653
-7871
lines changed

.codecov.yml

Lines changed: 0 additions & 7 deletions
This file was deleted.

.gitignore

Lines changed: 40 additions & 59 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,27 @@
11
.gems
2+
output/
3+
.DS_Store
4+
Brewfile.lock.json
25

3-
# Created by https://www.gitignore.io/api/swift,xcode,carthage
6+
# Created by https://www.toptal.com/developers/gitignore/api/swift
7+
# Edit at https://www.toptal.com/developers/gitignore?templates=swift
48

59
### Swift ###
610
# Xcode
711
#
812
# gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore
913

10-
## Build generated
14+
## User settings
15+
xcuserdata/
16+
17+
## compatibility with Xcode 8 and earlier (ignoring not required starting Xcode 9)
18+
*.xcscmblueprint
19+
*.xccheckout
20+
21+
## compatibility with Xcode 3 and earlier (ignoring not required starting Xcode 4)
1122
build/
1223
DerivedData/
13-
14-
## Various settings
24+
*.moved-aside
1525
*.pbxuser
1626
!default.pbxuser
1727
*.mode1v3
@@ -20,14 +30,11 @@ DerivedData/
2030
!default.mode2v3
2131
*.perspectivev3
2232
!default.perspectivev3
23-
xcuserdata/
24-
25-
## Other
26-
*.moved-aside
27-
*.xcuserstate
2833

2934
## Obj-C/Swift specific
3035
*.hmap
36+
37+
## App packaging
3138
*.ipa
3239
*.dSYM.zip
3340
*.dSYM
@@ -37,76 +44,50 @@ timeline.xctimeline
3744
playground.xcworkspace
3845

3946
# Swift Package Manager
40-
#
4147
# Add this line if you want to avoid checking in source code from Swift Package Manager dependencies.
4248
# Packages/
49+
# Package.pins
50+
# Package.resolved
51+
# *.xcodeproj
52+
# Xcode automatically generates this directory with a .xcworkspacedata file and xcuserdata
53+
# hence it is not needed unless you have added a package configuration file to your project
54+
.swiftpm
55+
4356
.build/
4457

4558
# CocoaPods
46-
#
4759
# We recommend against adding the Pods directory to your .gitignore. However
4860
# you should judge for yourself, the pros and cons are mentioned at:
4961
# https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control
50-
#
5162
# Pods/
63+
# Add this line if you want to avoid checking in source code from the Xcode workspace
64+
# *.xcworkspace
5265

5366
# Carthage
54-
#
5567
# Add this line if you want to avoid checking in source code from Carthage dependencies.
68+
# Carthage/Checkouts
5669

57-
Carthage/
70+
Carthage/Build/
71+
72+
# Accio dependency management
73+
Dependencies/
74+
.accio/
5875

5976
# fastlane
60-
#
61-
# It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the
62-
# screenshots whenever they are needed.
77+
# It is recommended to not store the screenshots in the git repo.
78+
# Instead, use fastlane to re-generate the screenshots whenever they are needed.
6379
# For more information about the recommended setup visit:
64-
# https://github.com/fastlane/fastlane/blob/master/fastlane/docs/Gitignore.md
80+
# https://docs.fastlane.tools/best-practices/source-control/#source-control
6581

6682
fastlane/report.xml
6783
fastlane/Preview.html
68-
fastlane/screenshots
84+
fastlane/screenshots/**/*.png
6985
fastlane/test_output
7086

87+
# Code Injection
88+
# After new code Injection tools there's a generated folder /iOSInjectionProject
89+
# https://github.com/johnno1962/injectionforxcode
7190

72-
### Xcode ###
73-
# Xcode
74-
#
75-
# gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore
76-
77-
## Build generated
78-
build/
79-
DerivedData/
80-
81-
## Various settings
82-
*.pbxuser
83-
!default.pbxuser
84-
*.mode1v3
85-
!default.mode1v3
86-
*.mode2v3
87-
!default.mode2v3
88-
*.perspectivev3
89-
!default.perspectivev3
90-
xcuserdata/
91-
92-
## Other
93-
*.moved-aside
94-
*.xccheckout
95-
*.xcscmblueprint
96-
97-
98-
### Carthage ###
99-
# Carthage - A simple, decentralized dependency manager for Cocoa
100-
Carthage/Checkouts/
101-
Carthage/Build/
102-
103-
.DS_Store
104-
105-
Scripts/data/request.yml
106-
Scripts/tmp/*
107-
!Scripts/tmp/.gitkeep
108-
.swiftpm/*
109-
Logs/*
110-
ModuleCache.noindex/*
111-
Index/*
91+
iOSInjectionProject/
11292

93+
# End of https://www.toptal.com/developers/gitignore/api/swift

.hound.yml

Lines changed: 0 additions & 4 deletions
This file was deleted.

.swiftlint.yml

Lines changed: 64 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,72 +1,119 @@
11
disabled_rules:
2+
- inclusive_language
23
- todo
34
- conditional_returns_on_newline
45
- unused_optional_binding
5-
- file_header
6+
- unused_setter_value
67
opt_in_rules:
78
#lint
89
- prohibited_super_call
910
- overridden_super_call
1011
- yoda_condition
12+
- modifier_order
13+
#- explicit_acl
14+
- cyclomatic_complexity
1115
#style
16+
- sorted_imports
17+
- duplicate_imports
1218
- unneeded_parentheses_in_closure_argument
1319
- operator_usage_whitespace
1420
- number_separator
1521
- closure_spacing
1622
- closure_end_indentation
1723
- attributes
1824
- file_header
25+
- conditional_returns_on_newline
26+
- implicit_return
27+
- multiline_function_chains
28+
- switch_case_on_newline
29+
- prefer_self_type_over_type_of_self
30+
- vertical_whitespace_between_cases
31+
- vertical_whitespace_closing_braces
32+
- vertical_whitespace_opening_braces
33+
- vertical_parameter_alignment
34+
- vertical_parameter_alignment_on_call
1935
#idiomatic
36+
- redundant_type_annotation
2037
- redundant_nil_coalescing
2138
- nimble_operator
2239
- explicit_init
40+
- empty_parentheses_with_trailing_closure
41+
- prefer_zero_over_explicit_init
2342
#performance
2443
- empty_count
2544
- contains_over_first_not_nil
2645
- empty_string
2746
- first_where
2847
- sorted_first_last
48+
- flatmap_over_map_reduce
2949
included:
3050
- Sources
31-
excluded:
32-
- docs
33-
- Scripts
3451
- Tests
35-
- Package.swift
3652
closure_end_indentation:
3753
severity: error
3854
force_cast:
3955
severity: error
4056
force_try:
4157
severity: error
58+
function_parameter_count:
59+
warning: 6
60+
error: 6
4261
function_body_length:
43-
warning: 60
44-
error: 100
62+
warning: 120
63+
error: 200
4564
cyclomatic_complexity:
4665
warning: 60
4766
error: 60
4867
type_body_length:
49-
warning: 400
50-
error: 500
68+
warning: 1500
69+
error: 1500
5170
line_length:
5271
warning: 250
5372
error: 400
73+
large_tuple:
74+
warning: 5
75+
error: 5
5476
file_length:
55-
warning: 700
56-
error: 1200
77+
warning: 2000
78+
error: 2000
79+
nesting:
80+
type_level:
81+
warning: 2
82+
function_level:
83+
warning: 2
5784
type_name:
5885
min_length: 3
59-
max_length: 40
60-
severity: error
86+
max_length: 50
87+
excluded:
88+
- iPhone
89+
- my
90+
- BO
91+
- bo
6192
identifier_name:
6293
min_length: 3
63-
max_length: 40
64-
severity: error
65-
excluded:
66-
- id
94+
max_length: 45
95+
excluded:
6796
- i
97+
- to
98+
- x
99+
- y
100+
- z
101+
- a
102+
- b
103+
- rx
104+
- map
105+
- app
106+
- id
107+
- URL
108+
- GlobalAPIKey
109+
- bo
110+
- BO
68111
attributes:
112+
always_on_line_above:
113+
- "@discardableResult"
114+
- "@available"
69115
always_on_same_line:
116+
- "@autoclosure"
70117
- "@IBOutlet"
71118
- "@IBAction"
72119
- "@NSManaged"

.travis.yml

Lines changed: 0 additions & 59 deletions
This file was deleted.

Brewfile

Lines changed: 0 additions & 3 deletions
This file was deleted.

0 commit comments

Comments
 (0)