diff --git a/.github/workflows/Lint.yml b/.github/workflows/Lint.yml index 5857904e..2d274c70 100644 --- a/.github/workflows/Lint.yml +++ b/.github/workflows/Lint.yml @@ -1,15 +1,11 @@ name: Lint on: pull_request: - push: - branches-ignore: - - main jobs: Lint: - runs-on: macos-14 + runs-on: macos-latest steps: - uses: actions/checkout@v3 - name: SwiftFormat - run: | - swiftformat --lint . --swiftversion 6.0 --reporter github-actions-log + run: swiftformat --lint . --reporter github-actions-log diff --git a/.swiftformat b/.swiftformat index 879e0798..4753789a 100644 --- a/.swiftformat +++ b/.swiftformat @@ -1,3 +1,5 @@ +--swiftversion 6.0 + --enable blankLineAfterImports --enable blankLinesBetweenImports --enable blockComments diff --git a/README.md b/README.md index 48687bbf..b3a5b681 100644 --- a/README.md +++ b/README.md @@ -65,7 +65,7 @@ final class Game: PlaydateGame { ``` ## Contributing -I'm happy to accept contributions on this project, whether it's bug fixes, implementing missing features, or opening an issue. Please try to follow the existing conventions/style in the project. Code should be formatted before merge using `swiftformat . --swiftversion 6.0`, but I can run this before merging if you don't want to install `swiftformat`. +I'm happy to accept contributions on this project, whether it's bug fixes, implementing missing features, or opening an issue. Please try to follow the existing conventions/style in the project. Code should be formatted before merge using `swiftformat .`, but I can run this before merging if you don't want to install `swiftformat`. ## Acknowledgements