diff --git a/.github/workflows/linting.yml b/.github/workflows/linting.yml index 66fbbd68..e82b1ced 100644 --- a/.github/workflows/linting.yml +++ b/.github/workflows/linting.yml @@ -8,7 +8,7 @@ on: jobs: build: - runs-on: ubuntu-latest + runs-on: macos-latest steps: - uses: actions/checkout@v4.2.2 @@ -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 diff --git a/Amazon Tag Remover/Shared (App)/ViewController.swift b/Amazon Tag Remover/Shared (App)/ViewController.swift index 58fcae8d..978f7552 100644 --- a/Amazon Tag Remover/Shared (App)/ViewController.swift +++ b/Amazon Tag Remover/Shared (App)/ViewController.swift @@ -102,6 +102,4 @@ class ViewController: PlatformViewController, WKNavigationDelegate, WKScriptMess } - - } diff --git a/Amazon Tag Remover/iOS (App)/SceneDelegate.swift b/Amazon Tag Remover/iOS (App)/SceneDelegate.swift index d6ffb9b8..485d03af 100644 --- a/Amazon Tag Remover/iOS (App)/SceneDelegate.swift +++ b/Amazon Tag Remover/iOS (App)/SceneDelegate.swift @@ -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 } } } diff --git a/package.json b/package.json index f0b0a87d..3fc49bb5 100644 --- a/package.json +++ b/package.json @@ -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",