Skip to content

Commit

Permalink
Add format.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
KC-2001MS committed Aug 4, 2024
1 parent c1d48af commit b9b3951
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 1 deletion.
23 changes: 23 additions & 0 deletions .github/workflows/format.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Format Swift files

on:
push:
branches: [main]
pull_request:
branches: [main]

jobs:
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v4
with:
fetch-depth: 2
- name: Lint
uses: mtgto/swift-format-action@main
with:
configuration_file: .swift-format
all_files: true
max_warnings: -1
4 changes: 4 additions & 0 deletions Sample/Sample.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -348,6 +348,8 @@
SWIFT_EMIT_LOC_STRINGS = YES;
SWIFT_VERSION = 5.0;
TARGETED_DEVICE_FAMILY = "1,2,3,7";
TVOS_DEPLOYMENT_TARGET = 15.0;
XROS_DEPLOYMENT_TARGET = 1.0;
};
name = Debug;
};
Expand Down Expand Up @@ -390,6 +392,8 @@
SWIFT_EMIT_LOC_STRINGS = YES;
SWIFT_VERSION = 5.0;
TARGETED_DEVICE_FAMILY = "1,2,3,7";
TVOS_DEPLOYMENT_TARGET = 15.0;
XROS_DEPLOYMENT_TARGET = 1.0;
};
name = Release;
};
Expand Down
1 change: 0 additions & 1 deletion Sources/OnboardingUI/Processing/AppVersionManager.swift
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
import Foundation
import Observation
import SwiftUI
//import SwiftStorage

/// A general-purpose operation recorder capable of determining the initial startup of an application or the startup of an application after an upgrade.
@available(iOS 17.0,macOS 14.0,watchOS 10.0,tvOS 17.0,visionOS 1.0,*)
Expand Down

0 comments on commit b9b3951

Please sign in to comment.