Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: source.fixAll.swiftlint #95

Merged
merged 2 commits into from
Nov 21, 2024
Merged

feat: source.fixAll.swiftlint #95

merged 2 commits into from
Nov 21, 2024

Conversation

vknabel
Copy link
Owner

@vknabel vknabel commented Jun 22, 2024

Closes #81

Implements source.fixAll.swiftlint which behaves similar to all other linter extensions.

Also parallelizes fixing single documents and fixes an issue that could lead SwiftLint to not lint anything.

@@ -180,7 +183,7 @@ export async function diagnosticsForFolder(request: {
? []
: await filterAsync(allFiles, (path) => config.includes(path))
: request.parameters || [];
if (includedFiles.length === 0) {
if (includedFiles.length === 0 && config != null) {
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Without this fix, I linting could fail.

@vknabel vknabel merged commit 0b492ce into main Nov 21, 2024
1 check passed
@vknabel vknabel deleted the feat-fix-all-known branch November 21, 2024 06:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support source.fixAll.swiftlint
1 participant