forked from rocklyve/Portus
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.projlint.yml
84 lines (81 loc) · 2.61 KB
/
.projlint.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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
shared_variables:
rightholder: Jamit Labs
project_name: Portus
rules:
- xcode_build_phases:
project_path: <:project_name:>.xcodeproj
target_name: <:project_name:> iOS
run_scripts:
SwiftLint: |
if [ "${CONFIGURATION}" = "Debug" ]; then
if which swiftlint > /dev/null; then
swiftlint --quiet
else
echo "warning: SwiftLint not installed, download it from https://github.com/realm/SwiftLint"
fi
fi
ProjLint: |
if [ "${CONFIGURATION}" = "Debug" ]; then
if which projlint > /dev/null; then
projlint lint --xcode --timeout 2 --ignore-network-errors
else
echo "warning: ProjLint not installed, download it from https://github.com/JamitLabs/ProjLint"
fi
fi
- xcode_project_navigator:
project_path: <:project_name:>.xcodeproj
sorted:
- Frameworks/<:project_name:>
- Frameworks/SupportingFiles
- Tests/<:project_name:>Tests
- Tests/SupportingFiles
inner_group_order:
- assets
- entitlements
- plists
- strings
- others
- [code_files, interfaces]
- folders
structure:
- Frameworks:
- <:project_name:>
- SupportingFiles:
- Info.plist
- Tests:
- <:project_name:>Tests
- SupportingFiles:
- Info.plist
- RootFiles:
- beak.swift
- .projlint.yml
- .swiftlint.yml
- Package.swift
- Products
- file_content_template:
matching:
.swiftlint.yml:
template_url: "https://raw.githubusercontent.com/JamitLabs/ProjLintTemplates/master/Framework/SwiftLint.stencil"
parameters:
rightholder: <:rightholder:>
.projlint.yml:
template_url: "https://raw.githubusercontent.com/JamitLabs/ProjLintTemplates/master/Framework/ProjLint.stencil"
parameters:
rightholder: <:rightholder:>
project_name: <:project_name:>
- file_existence:
existing_paths:
- .gitignore
- .swiftlint.yml
- .sourcery/LinuxMain.stencil
- CODE_OF_CONDUCT.md
- CONTRIBUTING.md
- CHANGELOG.md
- LICENSE
- README.md
- <:project_name:>.podspec
- Package.swift
- beak.swift
- <:project_name:>.xcodeproj/xcshareddata/IDETemplateMacros.plist
- Frameworks/SupportingFiles/Info.plist
- Tests/SupportingFiles/Info.plist