Skip to content

Commit

Permalink
stricter swiftlint
Browse files Browse the repository at this point in the history
  • Loading branch information
TheMoonThatRises committed Dec 4, 2024
1 parent 6aec962 commit 340e211
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/swiftlint-analyze.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: SwiftLint Analyze

on:
push:
pull_request:

workflow_dispatch:

jobs:
swiftlint:
runs-on: ubuntu-latest

steps:
- name: Check out repository
uses: actions/checkout@v3

- name: Select Xcode
uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: 'latest-stable'

- name: Build Xcode log
run: xcodebuild -workspace Spwifiy.xcodeproj/project.xcworkspace -scheme Spwifiy > xcodebuild.log;

- name: SwiftLint
uses: norio-nomura/[email protected]
with:
args: analyze xcodebuild.log
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -60,3 +60,7 @@ fastlane/report.xml
fastlane/Preview.html
fastlane/screenshots/**/*.png
fastlane/test_output

# Logs
# Generated for analyzing with Swiftlint
xcodebuild.log
8 changes: 8 additions & 0 deletions .swiftlint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
analyzer_rules:
- all

included:
- Spwifiy

excluded:
- Spwifiy/External

0 comments on commit 340e211

Please sign in to comment.