Danny Mösch
ae408ff799
Use #_sourceLocation
2026-06-06 11:07:04 +02:00
Danny Mösch
e8095c748a
One working directory per test
2026-06-06 11:07:04 +02:00
Danny Mösch
ac2eda6732
Adopt Swift Testing
...
# Conflicts:
# Tests/BuiltInRulesTests/FileHeaderRuleTests.swift
# Tests/BuiltInRulesTests/FileNameNoSpaceRuleTests.swift
# Tests/BuiltInRulesTests/IndentationWidthRuleTests.swift
# Tests/CoreTests/RegexConfigurationTests.swift
# Tests/CoreTests/SwiftLintFileTests.swift
# Tests/FileSystemAccessTests/BaselineTests.swift
# Tests/FileSystemAccessTests/ConfigurationTests+Mock.swift
# Tests/FileSystemAccessTests/ConfigurationTests.swift
# Tests/FileSystemAccessTests/GlobTests.swift
# Tests/FileSystemAccessTests/MultipleConfigurationsTests.swift
# Tests/FileSystemAccessTests/ReporterTests.swift
# Tests/FileSystemAccessTests/SourceKitCrashTests.swift
# Tests/FrameworkTests/CustomRulesTests.swift
# Tests/FrameworkTests/LinterCacheTests.swift
# Tests/FrameworkTests/RuleConfigurationTests.swift
# Tests/FrameworkTests/SwiftVersionTests.swift
# Tests/GeneratedTests/GeneratedTests_02.swift
# Tests/GeneratedTests/GeneratedTests_03.swift
# Tests/GeneratedTests/GeneratedTests_04.swift
# Tests/GeneratedTests/GeneratedTests_05.swift
# Tests/GeneratedTests/GeneratedTests_06.swift
# Tests/GeneratedTests/GeneratedTests_07.swift
# Tests/GeneratedTests/GeneratedTests_08.swift
# Tests/GeneratedTests/GeneratedTests_09.swift
# Tests/GeneratedTests/GeneratedTests_10.swift
# Tests/IntegrationTests/ConfigPathResolutionTests.swift
# Tests/IntegrationTests/IntegrationTests.swift
# Tests/TestHelpers/TestHelpers.swift
2026-06-06 11:07:04 +02:00
792032480e
Support SwiftLint on Windows ( #6636 )
...
Co-authored-by: Saleem Abdulrasool <compnerd@compnerd.org >
Co-authored-by: Roman Lavrov <roman.lavrov@thebrowser.company >
2026-05-27 22:02:06 +02:00
Rodion Ivashkov and Danny Mösch
6c55e0eaf0
Extend pattern_matching_keywords to support more cases ( #6534 )
...
Co-authored-by: Danny Mösch <danny.moesch@icloud.com >
2026-05-24 19:23:51 -04:00
theamodhshetty and Danny Mösch
d4dc4663c4
Add tool name to JUnit testsuites and testsuite ( #6512 )
...
Co-authored-by: Danny Mösch <danny.moesch@icloud.com >
2026-05-19 12:38:05 -04:00
Danny Mösch
070b31f039
Add missing explicit import ( #6562 )
2026-03-27 13:18:04 -04:00
Ahmad Alfy and Danny Mösch
21d66e5dc7
Add rules to SARIF exporter ( #6502 )
...
Co-authored-by: Danny Mösch <danny.moesch@icloud.com >
2026-02-23 05:08:49 -05:00
Danny Mösch
2e78f40e54
Use directory enumerator to collect and exclude files at the same time ( #6366 )
2025-12-17 19:47:21 +01:00
Danny Mösch
ac701c088c
Improve performance of excluded files filter ( #6342 )
...
The current algorithm is like "collect all included files and subtract all excluded files".
Collecting all included and all excluded files relies on the file system. This can become slow
when the patterns used to exclude files resolve to a large number of files.
The new approach only collects all lintable files and checks them against the exclude patterns.
This can be done by in-memory string-regex-match and does therefore not require file system accesses.
The new implementation also no longer traverses directories that already match an exclude pattern.
(cherry picked from commit 152355e36f )
2025-12-07 15:58:23 +01:00
Saleem Abdulrasool and Danny Mösch
562ec8f369
Correct incorrect handling of file paths ( #6355 )
...
`URL.path` is not a usable rendering of the path. `URL.path` represents
the URI path. If the path is meant to be consumable as a file path, the
file system representation (aka FSR) must be retrieved.
This improves the file path handling and makes additional tests now
pass.
Co-authored-by: Danny Mösch <danny.moesch@icloud.com >
2025-12-01 22:02:12 +01:00
Copilot and SimplyDanny
038135e14d
Enable prefer_key_path rule ( #6331 )
...
Co-authored-by: SimplyDanny <16365760+SimplyDanny@users.noreply.github.com >
2025-10-31 16:58:41 +00:00
Nandhini Subramani
4cca8280f6
Add test count to JUnit reporter ( #6319 )
2025-10-25 16:57:51 +02:00
Nandhini Subramani
6619ca9c10
Add isolation parameter to modifier_order rule ( #6316 )
2025-10-22 09:40:45 +02:00
Danny Mösch
4065fc8437
Enable upcoming feature MemberImportVisibility ( #6286 )
2025-10-08 08:12:05 +02:00
Danny Mösch
ad793d1c5b
Add new test module for tests requiring file system access ( #6276 )
...
These tests can especially not run in parallel.
2025-10-03 23:05:15 +02:00