|
| 1 | +shared_variables: |
| 2 | + rightholder: Flinesoft |
| 3 | + project_name: Prayer |
| 4 | + |
| 5 | +rules: |
| 6 | + - xcode_build_phases: |
| 7 | + project_path: <:project_name:>.xcodeproj |
| 8 | + target_name: App |
| 9 | + run_scripts: |
| 10 | + BartyCrouch: | |
| 11 | + if which bartycrouch > /dev/null; then |
| 12 | + bartycrouch update -x |
| 13 | + bartycrouch lint -x |
| 14 | + else |
| 15 | + echo "warning: BartyCrouch not installed, download it from https://github.com/Flinesoft/BartyCrouch" |
| 16 | + fi |
| 17 | +
|
| 18 | + SwiftGen: | |
| 19 | + if which swiftgen > /dev/null; then |
| 20 | + swiftgen |
| 21 | + else |
| 22 | + echo "warning: SwiftGen not installed, download it from https://github.com/AliSoftware/SwiftGen" |
| 23 | + fi |
| 24 | +
|
| 25 | + SwiftLint: | |
| 26 | + if which swiftlint > /dev/null; then |
| 27 | + swiftlint --quiet |
| 28 | + else |
| 29 | + echo "warning: SwiftLint not installed, download it from https://github.com/realm/SwiftLint" |
| 30 | + fi |
| 31 | +
|
| 32 | + ProjLint: | |
| 33 | + if which projlint > /dev/null; then |
| 34 | + projlint lint --xcode --timeout 2 --ignore-network-errors |
| 35 | + else |
| 36 | + echo "warning: ProjLint not installed, download it from https://github.com/JamitLabs/ProjLint" |
| 37 | + fi |
| 38 | +
|
| 39 | + - xcode_project_navigator: |
| 40 | + project_path: <:project_name:>.xcodeproj |
| 41 | + sorted: |
| 42 | + - App/Sources |
| 43 | + - App/Resources |
| 44 | + - App/SupportingFiles |
| 45 | + - App/Generated |
| 46 | + - Tests/Sources |
| 47 | + - Tests/Resources |
| 48 | + - Tests/SupportingFiles |
| 49 | + - UITests/Sources |
| 50 | + - UITests/Resources |
| 51 | + - UITests/SupportingFiles |
| 52 | + inner_group_order: [] |
| 53 | + structure: |
| 54 | + - App: |
| 55 | + - Sources: |
| 56 | + - AppDelegate.swift |
| 57 | + - Globals: |
| 58 | + - Extensions |
| 59 | + - Resources: |
| 60 | + - Colors.xcassets |
| 61 | + - Images.xcassets |
| 62 | + - Localizable.strings |
| 63 | + - Fonts |
| 64 | + - SupportingFiles: |
| 65 | + - App.entitlements |
| 66 | + - BartyCrouch.swift |
| 67 | + - LaunchScreen.storyboard |
| 68 | + - Info.plist |
| 69 | + - InfoPlist.strings |
| 70 | + - Generated: |
| 71 | + - SwiftGen: |
| 72 | + - Assets.swift |
| 73 | + - Storyboards.swift |
| 74 | + - Strings.swift |
| 75 | + - Tests: |
| 76 | + - Sources |
| 77 | + - Resources |
| 78 | + - SupportingFiles: |
| 79 | + - Info.plist |
| 80 | + - UITests: |
| 81 | + - Sources |
| 82 | + - Resources |
| 83 | + - SupportingFiles: |
| 84 | + - Info.plist |
| 85 | + - Extensions |
| 86 | + - RootFiles: |
| 87 | + - .bartycrouch.toml |
| 88 | + - .envrc |
| 89 | + - .gitignore |
| 90 | + - .periphery.yml |
| 91 | + - .projlint.yml |
| 92 | + - .swiftlint.yml |
| 93 | + - beak.swift |
| 94 | + - Brewfile |
| 95 | + - Cartfile |
| 96 | + - Cartfile.resolved |
| 97 | + - SwiftGen-xcassets.stencil |
| 98 | + - swiftgen.yml |
| 99 | + - Frameworks: |
| 100 | + - Carthage: |
| 101 | + - App |
| 102 | + - Tests |
| 103 | + - Local: |
| 104 | + - App |
| 105 | + - Tests |
| 106 | + - Products |
| 107 | + - file_content_regex: |
| 108 | + matching_all: |
| 109 | + Cartfile: |
| 110 | + - "#\\s*[^\\s]+" # Ensure dependencies are commented |
| 111 | + - HandySwift |
| 112 | + - HandyUIKit |
| 113 | + - MungoHealer |
| 114 | + - SwiftyBeaver |
| 115 | + - SwiftyUserDefaults |
| 116 | + .envrc: |
| 117 | + - "PATH_add ./Scripts/SymLinks" |
| 118 | + .gitignore: |
| 119 | + - Scripts/SymLinks |
| 120 | + - Carthage/Build |
| 121 | + - .build |
| 122 | + Brewfile: |
| 123 | + - beak |
| 124 | + - direnv |
| 125 | + not_matching_all: |
| 126 | + Cartfile: # Moya already includes Alamofire, prevent redundancy |
| 127 | + - Alamofire |
| 128 | + - Moya |
| 129 | + - file_content_template: |
| 130 | + matching: |
| 131 | + .swiftlint.yml: |
| 132 | + template_url: "https://raw.githubusercontent.com/JamitLabs/ProjLintTemplates/master/JamitLabs/App/SwiftLint.stencil" |
| 133 | + parameters: |
| 134 | + rightholder: <:rightholder:> |
| 135 | + .projlint.yml: |
| 136 | + template_url: "https://raw.githubusercontent.com/JamitLabs/ProjLintTemplates/master/JamitLabs/App/ProjLint.stencil" |
| 137 | + parameters: |
| 138 | + rightholder: <:rightholder:> |
| 139 | + project_name: <:project_name:> |
| 140 | + - file_existence: |
| 141 | + existing_paths: |
| 142 | + - .bartycrouch.toml |
| 143 | + - .envrc |
| 144 | + - .gitignore |
| 145 | + - .periphery.yml |
| 146 | + - .projlint.yml |
| 147 | + - .swiftlint.yml |
| 148 | + - beak.swift |
| 149 | + - Brewfile |
| 150 | + - Cartfile |
| 151 | + - Cartfile.resolved |
| 152 | + - README.md |
| 153 | + - SwiftGen-xcassets.stencil |
| 154 | + - swiftgen.yml |
| 155 | + - <:project_name:>.xcodeproj/xcshareddata/IDETemplateMacros.plist |
| 156 | + - App/Sources/AppDelegate.swift |
| 157 | + - App/Sources/Globals/Branding.swift |
| 158 | + - App/Sources/Globals/ErrorHandler.swift |
| 159 | + - App/Sources/Globals/Logger.swift |
| 160 | + - App/Generated/SwiftGen/Assets.swift |
| 161 | + - App/Generated/SwiftGen/Storyboards.swift |
| 162 | + - App/Generated/SwiftGen/Strings.swift |
| 163 | + - App/SupportingFiles/Info.plist |
| 164 | + - App/Resources/de.lproj/Localizable.strings |
| 165 | + - App/Resources/en.lproj/Localizable.strings |
| 166 | + - App/Resources/Colors.xcassets/Contents.json |
| 167 | + - App/Resources/Images.xcassets/AppIcon.appiconset/Contents.json |
| 168 | + - Scripts/ci.swift |
| 169 | + - Scripts/deps.swift |
| 170 | + - Scripts/project.swift |
| 171 | + - Scripts/tools.swift |
| 172 | + - Tests/SupportingFiles/Info.plist |
| 173 | + - UITests/SupportingFiles/Info.plist |
0 commit comments