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 # 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: included:
- VibeTunnel - ../mac/VibeTunnel
- ../ios/VibeTunnel
excluded: excluded:
- Carthage - Carthage
@ -10,8 +11,13 @@ excluded:
- DerivedData - DerivedData
- .build - .build
- .swiftpm - .swiftpm
- VibeTunnelTests - ../mac/VibeTunnelTests
- VibeTunnelUITests - ../mac/VibeTunnelUITests
- ../ios/VibeTunnelTests
- ../mac/build
- ../ios/build
- Package.swift
- *.xcodeproj
# Rule configuration # Rule configuration
opt_in_rules: opt_in_rules:
@ -38,6 +44,7 @@ opt_in_rules:
- force_unwrapping - force_unwrapping
- identical_operands - identical_operands
- implicit_return - implicit_return
- implicitly_unwrapped_optional
- joined_default_parameter - joined_default_parameter
- last_where - last_where
- legacy_multiple - legacy_multiple
@ -56,6 +63,8 @@ opt_in_rules:
- private_action - private_action
- private_outlet - private_outlet
- prohibited_super_call - prohibited_super_call
- reduce_boolean
- reduce_into
- redundant_nil_coalescing - redundant_nil_coalescing
- redundant_type_annotation - redundant_type_annotation
- sorted_first_last - sorted_first_last
@ -120,8 +129,8 @@ custom_rules:
message: "Use proper logging instead of print statements" message: "Use proper logging instead of print statements"
severity: warning severity: warning
excluded: excluded:
- "VibeTunnelTests/*" - "*/Tests/*"
- "VibeTunnelUITests/*" - "*/UITests/*"
analyzer_rules: analyzer_rules:
- unused_import - 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