Skip to content

Commit 6375530

Browse files
committed
Merge branch 'deploy/1.9.1' into productive
2 parents 9b97c80 + 546d205 commit 6375530

34 files changed

+1371
-497
lines changed

.projlint.yml

Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,84 @@
1+
shared_variables:
2+
rightholder: Flinesoft
3+
project_name: CSVImporter
4+
5+
rules:
6+
- xcode_build_phases:
7+
project_path: <:project_name:>.xcodeproj
8+
target_name: <:project_name:> iOS
9+
run_scripts:
10+
SwiftLint: |
11+
if [ "${CONFIGURATION}" = "Debug" ]; then
12+
if which swiftlint > /dev/null; then
13+
swiftlint
14+
else
15+
echo "warning: SwiftLint not installed, download it from https://github.com/realm/SwiftLint"
16+
fi
17+
fi
18+
19+
ProjLint: |
20+
if [ "${CONFIGURATION}" = "Debug" ]; then
21+
if which projlint > /dev/null; then
22+
projlint lint --xcode --timeout 2 --ignore-network-errors
23+
else
24+
echo "warning: ProjLint not installed, download it from https://github.com/JamitLabs/ProjLint"
25+
fi
26+
fi
27+
28+
- xcode_project_navigator:
29+
project_path: <:project_name:>.xcodeproj
30+
sorted:
31+
- Frameworks/<:project_name:>
32+
- Frameworks/SupportingFiles
33+
- Tests/<:project_name:>Tests
34+
- Tests/SupportingFiles
35+
inner_group_order:
36+
- assets
37+
- entitlements
38+
- plists
39+
- strings
40+
- others
41+
- [code_files, interfaces]
42+
- folders
43+
structure:
44+
- Frameworks:
45+
- <:project_name:>
46+
- SupportingFiles:
47+
- Info.plist
48+
- Tests:
49+
- <:project_name:>Tests
50+
- SupportingFiles:
51+
- Info.plist
52+
- RootFiles:
53+
- beak.swift
54+
- .projlint.yml
55+
- .swiftlint.yml
56+
- Package.swift
57+
- Products
58+
- file_content_template:
59+
matching:
60+
.swiftlint.yml:
61+
template_url: "https://raw.githubusercontent.com/JamitLabs/ProjLintTemplates/master/Framework/SwiftLint.stencil"
62+
parameters:
63+
rightholder: <:rightholder:>
64+
.projlint.yml:
65+
template_url: "https://raw.githubusercontent.com/JamitLabs/ProjLintTemplates/master/Framework/ProjLint.stencil"
66+
parameters:
67+
rightholder: <:rightholder:>
68+
project_name: <:project_name:>
69+
- file_existence:
70+
existing_paths:
71+
- .gitignore
72+
- .swiftlint.yml
73+
- .sourcery/LinuxMain.stencil
74+
- CODE_OF_CONDUCT.md
75+
- CONTRIBUTING.md
76+
- CHANGELOG.md
77+
- LICENSE
78+
- README.md
79+
- <:project_name:>.podspec
80+
- Package.swift
81+
- beak.swift
82+
- <:project_name:>.xcodeproj/xcshareddata/IDETemplateMacros.plist
83+
- Frameworks/SupportingFiles/Info.plist
84+
- Tests/SupportingFiles/Info.plist

.sourcery/LinuxMain.stencil

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
@testable import CSVImporterTests
2+
import XCTest
3+
4+
// swiftlint:disable line_length file_length
5+
6+
{% for type in types.classes|based:"XCTestCase" %}
7+
extension {{ type.name }} {
8+
static var allTests: [(String, ({{ type.name }}) -> () throws -> Void)] = [
9+
{% for method in type.methods where method.parameters.count == 0 and method.shortName|hasPrefix:"test" and method|!annotated:"skipTestOnLinux" %} ("{{ method.shortName }}", {{ method.shortName }}){% if not forloop.last %},{% endif %}
10+
{% endfor %}]
11+
}
12+
13+
{% endfor %}
14+
XCTMain([
15+
{% for type in types.classes|based:"XCTestCase" %} testCase({{ type.name }}.allTests){% if not forloop.last %},{% endif %}
16+
{% endfor %}])

.swift-version

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)