Skip to content

Commit

Permalink
fix: swiftlint
Browse files Browse the repository at this point in the history
  • Loading branch information
timbru31 committed Jan 23, 2025
1 parent 44158c7 commit 14f65d2
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 5 deletions.
13 changes: 11 additions & 2 deletions .github/workflows/linting.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:

jobs:
build:
runs-on: ubuntu-latest
runs-on: macos-latest

steps:
- uses: actions/[email protected]
Expand All @@ -17,7 +17,16 @@ jobs:
with:
node-version-file: '.node-version'

- run: npm cit
- name: Setup
run: |
brew install swiftlint
swiftlint version
npm ci
- name: Linting
run: |
npm test
npm run lint:swift
auto-merge:
runs-on: ubuntu-latest
Expand Down
2 changes: 0 additions & 2 deletions Amazon Tag Remover/Shared (App)/ViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,4 @@ class ViewController: PlatformViewController, WKNavigationDelegate, WKScriptMess

}



}
2 changes: 1 addition & 1 deletion Amazon Tag Remover/iOS (App)/SceneDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class SceneDelegate: UIResponder, UIWindowSceneDelegate {
var window: UIWindow?

func scene(_ scene: UIScene, willConnectTo session: UISceneSession, options connectionOptions: UIScene.ConnectionOptions) {
guard let _ = (scene as? UIWindowScene) else { return }
guard (scene as? UIWindowScene) != nil else { return }
}

}
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
"eslint": "eslint src/js",
"stylelint": "stylelint 'src/**/*.html'",
"lint": "npm run eslint && npm run stylelint",
"lint:swift": "swiftlint",
"prerelease": "npm run test",
"release": "commit-and-tag-version -s -a",
"postrelease": "npm run build",
Expand Down

0 comments on commit 14f65d2

Please sign in to comment.