mirror of
https://github.com/samsonjs/vibetunnel.git
synced 2026-04-09 11:55:53 +00:00
- Configure SwiftLint with Swift 6 compatible rules - Disable conflicting self-related rules (implicit_self, redundant_self) - Set up SwiftFormat to avoid self-rewrite conflicts - Add custom rules for print statements and async/await patterns - Create lint script and GitHub Actions workflow - Add Package.swift for SPM dependencies - Ensure proper exclusions for build directories and tests
26 lines
No EOL
441 B
YAML
26 lines
No EOL
441 B
YAML
name: Lint
|
|
|
|
on:
|
|
push:
|
|
branches: [ main ]
|
|
pull_request:
|
|
branches: [ main ]
|
|
|
|
jobs:
|
|
lint:
|
|
runs-on: macos-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Install SwiftLint
|
|
run: brew install swiftlint
|
|
|
|
- name: Install SwiftFormat
|
|
run: brew install swiftformat
|
|
|
|
- name: Run SwiftFormat
|
|
run: swiftformat . --lint
|
|
|
|
- name: Run SwiftLint
|
|
run: swiftlint |