You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This PR removes SwiftLint integration from both the GitHub Actions workflow and the Package.swift file. While this successfully removes the linting dependency, there are several considerations to address.
Code Quality & Best Practices
✅ Strengths:
Clean removal of SwiftLint plugins from both targets (FSRS and FSRSTests)
Maintains consistency between Package.swift and CI workflow
The PR title "Test linter job" suggests this might be experimental
⚠️Concerns:
1. Loss of Code Quality Enforcement
The removal of SwiftLint eliminates automated code style and quality checks. This impacts:
Consistent code formatting across the codebase
Detection of common Swift anti-patterns
Style guide enforcement for contributors
Recommendation: If removing SwiftLint is intentional, consider:
Adding a CONTRIBUTING.md documenting coding standards
Using Xcode's built-in formatting rules
Implementing alternative linting in CI (e.g., via command-line SwiftLint without the SPM plugin)
2. SwiftLintPlugins Package Dependency Still Present
In Package.swift:20-21, the SwiftLintPlugins dependency is declared but no longer used:
Recommendation: Remove this unused dependency to keep Package.swift clean and avoid unnecessary resolution during swift build.
3. Workflow Step Order
In .github/workflows/swift.yml:18, the checkout now happens first (correct), but the removed SwiftLint action was previously at line 18 before checkout. This order was problematic anyway since SwiftLint needs the code checked out first.
Potential Bugs or Issues
Low Priority:
No functional bugs introduced by this change
The package will still build and test correctly
No breaking changes to the public API
Performance Considerations
✅ Positive Impact:
Build times will be slightly faster without SwiftLint plugin execution
Faster SPM dependency resolution (once unused dependency is removed)
Reduced CI runtime (no linting step)
Security Concerns
No security issues identified. This change only affects development tooling.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.