update ci
This commit is contained in:
parent
4298062ca3
commit
76623c241b
|
@ -8,10 +8,10 @@ jobs:
|
||||||
build:
|
build:
|
||||||
name: "Lint 🧹"
|
name: "Lint 🧹"
|
||||||
runs-on: macos-latest
|
runs-on: macos-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v2.3.4
|
uses: actions/checkout@v2.3.4
|
||||||
|
|
||||||
- name: Run SwiftLint
|
- name: Run Swiftformat
|
||||||
run: swiftlint
|
run: swiftformat . --lint
|
||||||
|
|
|
@ -1,23 +0,0 @@
|
||||||
name: "Lint 🧹"
|
|
||||||
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
branches: [ main ]
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
build:
|
|
||||||
name: "Lint 🧹"
|
|
||||||
runs-on: macos-latest
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- name: Checkout
|
|
||||||
uses: actions/checkout@v2.3.4
|
|
||||||
|
|
||||||
- name: Run SwiftLint
|
|
||||||
run: swiftlint --fix
|
|
||||||
|
|
||||||
- name: Create Pull Request
|
|
||||||
uses: peter-evans/create-pull-request@v3
|
|
||||||
with:
|
|
||||||
title: "[ci] SwiftLint"
|
|
||||||
reviewers: "acvigue"
|
|
|
@ -5,7 +5,6 @@
|
||||||
--indent tab
|
--indent tab
|
||||||
--tabwidth 4
|
--tabwidth 4
|
||||||
--xcodeindentation enabled
|
--xcodeindentation enabled
|
||||||
--self init-only
|
|
||||||
--semicolons never
|
--semicolons never
|
||||||
--stripunusedargs closure-only
|
--stripunusedargs closure-only
|
||||||
--maxwidth 140
|
--maxwidth 140
|
||||||
|
|
|
@ -14,7 +14,7 @@ class AppDelegate: NSObject, UIApplicationDelegate {
|
||||||
static var orientationLock = UIInterfaceOrientationMask.all
|
static var orientationLock = UIInterfaceOrientationMask.all
|
||||||
|
|
||||||
func application(_ application: UIApplication,
|
func application(_ application: UIApplication,
|
||||||
didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]? = nil) -> Bool
|
didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]? = nil) -> Bool
|
||||||
{
|
{
|
||||||
|
|
||||||
// Lazily initialize datastack
|
// Lazily initialize datastack
|
||||||
|
|
Loading…
Reference in New Issue