@@ -4,29 +4,35 @@ public struct TargetMetadata: Codable, Equatable, Sendable {
44 /// Some Tuist features can leverage that information for doing things like filtering.
55 public var tags : Set < String >
66
7+ /// Whether the target redundant dependencies should be ignored during `tuist inspect redundant-import`
8+ public var ignoreRedundantDependencies : Bool
9+
710 @available ( * , deprecated, renamed: " metadata(tags:) " , message: " Use the static 'metadata' initializer instead " )
811 public init (
912 tags: Set < String >
1013 ) {
11- self . tags = tags
14+ self . init ( tags: tags, isLocal : false , ignoreRedundantDependencies : false )
1215 }
1316
14- init ( tags: Set < String > , isLocal _: Bool ) {
17+ init ( tags: Set < String > , isLocal _: Bool , ignoreRedundantDependencies : Bool ) {
1518 self . tags = tags
19+ self . ignoreRedundantDependencies = ignoreRedundantDependencies
1620 }
1721
18- public static func metadata( tags: Set < String > = Set ( ) , isLocal: Bool = true ) -> TargetMetadata {
19- self . init ( tags: tags, isLocal: isLocal)
22+ public static func metadata( tags: Set < String > = Set ( ) , isLocal: Bool = true , ignoreRedundantDependencies : Bool = false ) -> TargetMetadata {
23+ self . init ( tags: tags, isLocal: isLocal, ignoreRedundantDependencies : ignoreRedundantDependencies )
2024 }
2125}
2226
2327#if DEBUG
2428 extension TargetMetadata {
2529 public static func test(
26- tags: Set < String > = [ ]
30+ tags: Set < String > = [ ] ,
31+ ignoreRedundantDependencies: Bool = false
2732 ) -> TargetMetadata {
2833 TargetMetadata . metadata (
29- tags: tags
34+ tags: tags,
35+ ignoreRedundantDependencies: ignoreRedundantDependencies
3036 )
3137 }
3238 }
0 commit comments