|
| 1 | +#[[ |
| 2 | +This source file is part of the Swift System open source project |
| 3 | +
|
| 4 | +Copyright (c) 2024 Apple Inc. and the Swift System project authors |
| 5 | +Licensed under Apache License v2.0 with Runtime Library Exception |
| 6 | +
|
| 7 | +See https://swift.org/LICENSE.txt for license information |
| 8 | +#]] |
| 9 | + |
| 10 | +add_library(SwiftFormat |
| 11 | + API/Configuration+Default.swift |
| 12 | + API/Configuration.swift |
| 13 | + API/DebugOptions.swift |
| 14 | + API/Finding.swift |
| 15 | + API/FindingCategorizing.swift |
| 16 | + API/Indent.swift |
| 17 | + API/SwiftFormatError.swift |
| 18 | + API/SwiftFormatter.swift |
| 19 | + API/SwiftLinter.swift |
| 20 | + Core/Context.swift |
| 21 | + Core/DocumentationComment.swift |
| 22 | + Core/DocumentationCommentText.swift |
| 23 | + Core/Finding+Convenience.swift |
| 24 | + Core/FindingEmitter.swift |
| 25 | + Core/FormatPipeline.swift |
| 26 | + Core/FunctionDeclSyntax+Convenience.swift |
| 27 | + Core/ImportsXCTestVisitor.swift |
| 28 | + Core/LazySplitSequence.swift |
| 29 | + Core/LintPipeline.swift |
| 30 | + Core/ModifierListSyntax+Convenience.swift |
| 31 | + Core/Parsing.swift |
| 32 | + Core/Pipelines+Generated.swift |
| 33 | + Core/RememberingIterator.swift |
| 34 | + Core/Rule.swift |
| 35 | + Core/RuleBasedFindingCategory.swift |
| 36 | + Core/RuleMask.swift |
| 37 | + Core/RuleNameCache+Generated.swift |
| 38 | + Core/RuleRegistry+Generated.swift |
| 39 | + Core/RuleState.swift |
| 40 | + Core/SyntaxFormatRule.swift |
| 41 | + Core/SyntaxLintRule.swift |
| 42 | + Core/SyntaxProtocol+Convenience.swift |
| 43 | + Core/Trivia+Convenience.swift |
| 44 | + Core/WithSemicolonSyntax.swift |
| 45 | + PrettyPrint/Comment.swift |
| 46 | + PrettyPrint/Indent+Length.swift |
| 47 | + PrettyPrint/PrettyPrint.swift |
| 48 | + PrettyPrint/PrettyPrintFindingCategory.swift |
| 49 | + PrettyPrint/Token.swift |
| 50 | + PrettyPrint/TokenStreamCreator.swift |
| 51 | + PrettyPrint/Verbatim.swift |
| 52 | + PrettyPrint/WhitespaceFindingCategory.swift |
| 53 | + PrettyPrint/WhitespaceLinter.swift |
| 54 | + Rules/AllPublicDeclarationsHaveDocumentation.swift |
| 55 | + Rules/AlwaysUseLiteralForEmptyCollectionInit.swift |
| 56 | + Rules/AlwaysUseLowerCamelCase.swift |
| 57 | + Rules/AmbiguousTrailingClosureOverload.swift |
| 58 | + Rules/BeginDocumentationCommentWithOneLineSummary.swift |
| 59 | + Rules/DoNotUseSemicolons.swift |
| 60 | + Rules/DontRepeatTypeInStaticProperties.swift |
| 61 | + Rules/FileScopedDeclarationPrivacy.swift |
| 62 | + Rules/FullyIndirectEnum.swift |
| 63 | + Rules/GroupNumericLiterals.swift |
| 64 | + Rules/IdentifiersMustBeASCII.swift |
| 65 | + Rules/NeverForceUnwrap.swift |
| 66 | + Rules/NeverUseForceTry.swift |
| 67 | + Rules/NeverUseImplicitlyUnwrappedOptionals.swift |
| 68 | + Rules/NoAccessLevelOnExtensionDeclaration.swift |
| 69 | + Rules/NoAssignmentInExpressions.swift |
| 70 | + Rules/NoBlockComments.swift |
| 71 | + Rules/NoCasesWithOnlyFallthrough.swift |
| 72 | + Rules/NoEmptyTrailingClosureParentheses.swift |
| 73 | + Rules/NoLabelsInCasePatterns.swift |
| 74 | + Rules/NoLeadingUnderscores.swift |
| 75 | + Rules/NoParensAroundConditions.swift |
| 76 | + Rules/NoPlaygroundLiterals.swift |
| 77 | + Rules/NoVoidReturnOnFunctionSignature.swift |
| 78 | + Rules/OmitExplicitReturns.swift |
| 79 | + Rules/OneCasePerLine.swift |
| 80 | + Rules/OneVariableDeclarationPerLine.swift |
| 81 | + Rules/OnlyOneTrailingClosureArgument.swift |
| 82 | + Rules/OrderedImports.swift |
| 83 | + Rules/ReplaceForEachWithForLoop.swift |
| 84 | + Rules/ReturnVoidInsteadOfEmptyTuple.swift |
| 85 | + Rules/TypeNamesShouldBeCapitalized.swift |
| 86 | + Rules/UseEarlyExits.swift |
| 87 | + Rules/UseExplicitNilCheckInConditions.swift |
| 88 | + Rules/UseLetInEveryBoundCaseVariable.swift |
| 89 | + Rules/UseShorthandTypeNames.swift |
| 90 | + Rules/UseSingleLinePropertyGetter.swift |
| 91 | + Rules/UseSynthesizedInitializer.swift |
| 92 | + Rules/UseTripleSlashForDocumentationComments.swift |
| 93 | + Rules/UseWhereClausesInForLoops.swift |
| 94 | + Rules/ValidateDocumentationComments.swift) |
| 95 | +target_link_libraries(SwiftFormat PUBLIC |
| 96 | + SwiftMarkdown::Markdown |
| 97 | + SwiftSyntax::SwiftSyntax |
| 98 | + SwiftSyntax::SwiftSyntaxBuilder |
| 99 | + SwiftSyntax::SwiftOperators |
| 100 | + SwiftSyntax::SwiftParser |
| 101 | + SwiftSyntax::SwiftParserDiagnostics |
| 102 | + libcmark-gfm |
| 103 | + libcmark-gfm-extensions) |
| 104 | + |
| 105 | +_install_target(SwiftFormat) |
0 commit comments