Move files to apple subdir

This commit is contained in:
Peter Steinberger 2025-06-22 14:35:42 +02:00
parent 9ddb61576d
commit 17758c2a40
6 changed files with 19 additions and 45 deletions

View file

@ -1,8 +1,9 @@
# SwiftLint configuration for Swift 6 compatibility
# Focuses on modern Swift best practices without conflicting self rules
# Shared configuration for both macOS and iOS apps
included:
- VibeTunnel
- ../mac/VibeTunnel
- ../ios/VibeTunnel
excluded:
- Carthage
@ -10,8 +11,13 @@ excluded:
- DerivedData
- .build
- .swiftpm
- VibeTunnelTests
- VibeTunnelUITests
- ../mac/VibeTunnelTests
- ../mac/VibeTunnelUITests
- ../ios/VibeTunnelTests
- ../mac/build
- ../ios/build
- Package.swift
- *.xcodeproj
# Rule configuration
opt_in_rules:
@ -38,6 +44,7 @@ opt_in_rules:
- force_unwrapping
- identical_operands
- implicit_return
- implicitly_unwrapped_optional
- joined_default_parameter
- last_where
- legacy_multiple
@ -56,6 +63,8 @@ opt_in_rules:
- private_action
- private_outlet
- prohibited_super_call
- reduce_boolean
- reduce_into
- redundant_nil_coalescing
- redundant_type_annotation
- sorted_first_last
@ -120,8 +129,8 @@ custom_rules:
message: "Use proper logging instead of print statements"
severity: warning
excluded:
- "VibeTunnelTests/*"
- "VibeTunnelUITests/*"
- "*/Tests/*"
- "*/UITests/*"
analyzer_rules:
- unused_import

1
ios/.swiftformat Symbolic link
View file

@ -0,0 +1 @@
../apple/.swiftformat

View file

@ -1,39 +0,0 @@
# SwiftLint configuration for VibeTunnel iOS
# Adjust file length thresholds
file_length:
warning: 800
error: 1000
ignore_comment_only_lines: true
# Adjust type body length thresholds
type_body_length:
warning: 500
error: 800
# Keep other rules at their defaults
line_length:
warning: 120
error: 200
ignores_urls: true
ignores_function_declarations: true
ignores_comments: true
# Opt-in rules
opt_in_rules:
- empty_count
- empty_string
- first_where
- force_unwrapping
- implicitly_unwrapped_optional
- last_where
- reduce_boolean
- reduce_into
- yoda_condition
# Excluded paths
excluded:
- .build
- Package.swift
- VibeTunnel.xcodeproj
- VibeTunnelTests

1
ios/.swiftlint.yml Symbolic link
View file

@ -0,0 +1 @@
../apple/.swiftlint.yml

1
mac/.swiftformat Symbolic link
View file

@ -0,0 +1 @@
../apple/.swiftformat

1
mac/.swiftlint.yml Symbolic link
View file

@ -0,0 +1 @@
../apple/.swiftlint.yml