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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

feat: source.fixAll.swiftlint #95

wants to merge 1 commit into from

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.

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