Skip to content

Commit 3033573

Browse files
committed
Regression test
1 parent 428bd06 commit 3033573

File tree

12 files changed

+141
-259
lines changed

12 files changed

+141
-259
lines changed

Tests/IntegrationTests/ConfigHierarchyPathResolutionTests.swift

Lines changed: 101 additions & 253 deletions
Large diffs are not rendered by default.

Tests/IntegrationTests/PathHierarchyFixtures/scenario5_nested_disabled_by_config_flag/ModuleA/.swiftlint.yml

Lines changed: 0 additions & 2 deletions
This file was deleted.

Tests/IntegrationTests/PathHierarchyFixtures/scenario5_nested_disabled_by_config_flag/ModuleA/File.swift

Lines changed: 0 additions & 4 deletions
This file was deleted.
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
excluded:
2+
- "ThirdParty/**"
3+
- "*/ThirdParty/**"
4+
- "**/ThirdParty/**"
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
excluded:
2+
- "ThirdParty/**"
3+
- "*/ThirdParty/**"
4+
- "**/ThirdParty/**"
5+
- "Generated"
6+
- "**/Package.swift"
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
// Should NOT be linted - in Generated
2+
struct GeneratedCode {
3+
var value: String
4+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
// Should NOT be linted - Package.swift
2+
// swift-tools-version: 5.9
3+
import PackageDescription
4+
5+
let package = Package(
6+
name: "MyPackage"
7+
)
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
// Should be linted
2+
class MyApp {
3+
func doSomething() {}
4+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
// Should NOT be linted - nested Package.swift
2+
// swift-tools-version: 5.9
3+
import PackageDescription
4+
5+
let package = Package(
6+
name: "SubPackage"
7+
)

0 commit comments

Comments
 (0)