Skip to content
Permalink
Browse files

Replace swiftlint with swiftformat (#239)

* Replace swiftlint with swiftformat

* Update CHANGELOG

* Add missing require

* Fix require

* include .swiftformat file

* Remove require

* Fix Dangerfile

* Run Swiftformat after rebase

* Upgrade swiftformat

* Revert upgrade

* Use the right configuration
  • Loading branch information...
pepibumur committed Feb 27, 2019
1 parent 0bbdd4c commit d47d5370e0060d7c1cd1a0377e4c36a2da00dad4
Showing with 782 additions and 2,063 deletions.
  1. +1 βˆ’1 .circleci/config.yml
  2. +2 βˆ’1 .gitignore
  3. +0 βˆ’1,195 .rubocop-http---shopify-github-io-ruby-style-guide-rubocop-yml
  4. +1 βˆ’1 .ruby-version
  5. +35 βˆ’0 .swiftformat
  6. +0 βˆ’31 .swiftlint.yml
  7. +1 βˆ’0 CHANGELOG.md
  8. +3 βˆ’3 Dangerfile
  9. +1 βˆ’0 Gemfile
  10. +6 βˆ’1 Gemfile.lock
  11. +6 βˆ’12 Rakefile
  12. +1 βˆ’1 Sources/ProjectDescription/Dump.swift
  13. +0 βˆ’1 Sources/ProjectDescription/Setup.swift
  14. +1 βˆ’1 Sources/TuistCore/Extensions/String+MD5.swift
  15. +1 βˆ’1 Sources/TuistCore/Utils/System.swift
  16. +1 βˆ’1 Sources/TuistEnvKit/Commands/CommandRegistry.swift
  17. +1 βˆ’1 Sources/TuistEnvKit/Installer/BuildCopier.swift
  18. +4 βˆ’6 Sources/TuistGenerator/Generator.swift
  19. +4 βˆ’4 Sources/TuistKit/Commands/FocusCommand.swift
  20. +2 βˆ’2 Sources/TuistKit/Commands/GenerateCommand.swift
  21. +6 βˆ’7 Sources/TuistKit/Commands/InitCommand.swift
  22. +1 βˆ’1 Sources/TuistKit/Generator/BuildPhaseGenerator.swift
  23. +1 βˆ’1 Sources/TuistKit/Generator/ConfigGenerator.swift
  24. +15 βˆ’17 Sources/TuistKit/Generator/Generator.swift
  25. +26 βˆ’29 Sources/TuistKit/Generator/GeneratorModelLoader.swift
  26. +2 βˆ’2 Sources/TuistKit/Generator/LinkGenerator.swift
  27. +2 βˆ’2 Sources/TuistKit/Generator/ModelLoader.swift
  28. +35 βˆ’37 Sources/TuistKit/Generator/SchemesGenerator.swift
  29. +0 βˆ’2 Sources/TuistKit/Generator/TargetGenerator.swift
  30. +10 βˆ’12 Sources/TuistKit/Generator/WorkspaceGenerator.swift
  31. +5 βˆ’5 Sources/TuistKit/Graph/Graph.swift
  32. +7 βˆ’7 Sources/TuistKit/Graph/GraphLoader.swift
  33. +4 βˆ’7 Sources/TuistKit/Graph/GraphManifestLoader.swift
  34. +6 βˆ’6 Sources/TuistKit/Graph/GraphNode.swift
  35. +7 βˆ’7 Sources/TuistKit/Linter/GraphLinter.swift
  36. +3 βˆ’3 Sources/TuistKit/Linter/LintingIssue.swift
  37. +5 βˆ’6 Sources/TuistKit/Linter/TargetLinter.swift
  38. +2 βˆ’4 Sources/TuistKit/Models/Product.swift
  39. +8 βˆ’8 Sources/TuistKit/Models/Project.swift
  40. +4 βˆ’6 Sources/TuistKit/Models/Target.swift
  41. +0 βˆ’2 Sources/TuistKit/Setup/SetupLoader.swift
  42. +1 βˆ’1 Sources/TuistKit/Utils/CommandCheck.swift
  43. +2 βˆ’2 Sources/TuistKit/Utils/InfoPlistProvisioner.swift
  44. +1 βˆ’1 Tests/ProjectDescriptionTests/BuildConfigurationTests.swift
  45. +1 βˆ’1 Tests/ProjectDescriptionTests/CoreDataModelTests.swift
  46. +1 βˆ’1 Tests/ProjectDescriptionTests/HeadersTests.swift
  47. +1 βˆ’1 Tests/ProjectDescriptionTests/PlatformTests .swift
  48. +1 βˆ’1 Tests/ProjectDescriptionTests/ProductTests.swift
  49. +1 βˆ’1 Tests/ProjectDescriptionTests/SchemeTests.swift
  50. +1 βˆ’1 Tests/ProjectDescriptionTests/SettingsTests.swift
  51. +1 βˆ’1 Tests/ProjectDescriptionTests/TargetActionTests.swift
  52. +1 βˆ’1 Tests/ProjectDescriptionTests/TargetDependencyTests.swift
  53. +1 βˆ’1 Tests/ProjectDescriptionTests/TargetTests.swift
  54. +1 βˆ’1 Tests/ProjectDescriptionTests/WorkspaceTests.swift
  55. +1 βˆ’1 Tests/TuistCoreTests/Errors/ErrorHandlerTests.swift
  56. +1 βˆ’1 Tests/TuistCoreTests/Utils/StackTests.swift
  57. +5 βˆ’5 Tests/TuistCoreTests/Utils/SystemTests.swift
  58. +1 βˆ’1 Tests/TuistEnvKitTests/Commands/BundleCommandTests.swift
  59. +1 βˆ’1 Tests/TuistEnvKitTests/Commands/CommandRegistryTests.swift
  60. +2 βˆ’2 Tests/TuistEnvKitTests/Commands/CommandRunnerTests.swift
  61. +1 βˆ’1 Tests/TuistEnvKitTests/Commands/InstallCommandTests.swift
  62. +1 βˆ’1 Tests/TuistEnvKitTests/Commands/LocalCommandTests.swift
  63. +1 βˆ’1 Tests/TuistEnvKitTests/Commands/UninstallCommandTests.swift
  64. +1 βˆ’1 Tests/TuistEnvKitTests/GitHub/GitHubClientTests .swift
  65. +1 βˆ’1 Tests/TuistEnvKitTests/GitHub/GitHubRequestsPoviderTests.swift
  66. +1 βˆ’1 Tests/TuistEnvKitTests/GitHub/ReleaseTests.swift
  67. +1 βˆ’1 Tests/TuistEnvKitTests/GitHub/TestData/Release+TestData.swift
  68. +1 βˆ’1 Tests/TuistEnvKitTests/Installer/BuildCopierTests.swift
  69. +2 βˆ’2 Tests/TuistEnvKitTests/Installer/InstallerTests.swift
  70. +1 βˆ’1 Tests/TuistEnvKitTests/Settings/SettingsControllerTests.swift
  71. +1 βˆ’1 Tests/TuistEnvKitTests/Settings/SettingsTests.swift
  72. +1 βˆ’1 Tests/TuistEnvKitTests/Versions/Mocks/MockVersionsController.swift
  73. +1 βˆ’1 Tests/TuistEnvKitTests/Versions/VersionResolverTests.swift
  74. +2 βˆ’2 Tests/TuistEnvKitTests/Versions/VersionsControllerTests.swift
  75. +5 βˆ’6 Tests/TuistGeneratorTests/GeneratorTests.swift
  76. +1 βˆ’1 Tests/TuistKitTests/Commands/CommandRegistryTests.swift
  77. +2 βˆ’2 Tests/TuistKitTests/Commands/CreateIssueCommandTests.swift
  78. +2 βˆ’3 Tests/TuistKitTests/Commands/DumpCommandTests.swift
  79. +7 βˆ’7 Tests/TuistKitTests/Commands/FocusCommandTests.swift
  80. +32 βˆ’32 Tests/TuistKitTests/Commands/GenerateCommandTests.swift
  81. +4 βˆ’5 Tests/TuistKitTests/Commands/InitCommandTests.swift
  82. +0 βˆ’1 Tests/TuistKitTests/Commands/UpCommandTests.swift
  83. +1 βˆ’1 Tests/TuistKitTests/Embed/EmbeddableTests.swift
  84. +1 βˆ’1 Tests/TuistKitTests/Embed/FrameworkEmbedderTests.swift
  85. +1 βˆ’1 Tests/TuistKitTests/Generator/BuildPhaseGeneratorTests.swift
  86. +2 βˆ’2 Tests/TuistKitTests/Generator/ConfigGeneratorTests.swift
  87. +86 βˆ’89 Tests/TuistKitTests/Generator/GeneratorModelLoaderTest.swift
  88. +1 βˆ’1 Tests/TuistKitTests/Generator/LinkGeneratorTests.swift
  89. +2 βˆ’2 Tests/TuistKitTests/Generator/Mocks/MockGenerator.swift
  90. +1 βˆ’1 Tests/TuistKitTests/Generator/Mocks/MockSchemesGenerator.swift
  91. +1 βˆ’1 Tests/TuistKitTests/Generator/ProjectDirectoryHelperTests.swift
  92. +2 βˆ’2 Tests/TuistKitTests/Generator/ProjectFileElementsTests.swift
  93. +1 βˆ’1 Tests/TuistKitTests/Generator/ProjectGroupsTests.swift
  94. +30 βˆ’30 Tests/TuistKitTests/Generator/SchemesGeneratorTests.swift
  95. +1 βˆ’1 Tests/TuistKitTests/Generator/TargetGeneratorTests.swift
  96. +1 βˆ’1 Tests/TuistKitTests/Generator/TestData/GeneratedProject+TestData.swift
  97. +30 βˆ’43 Tests/TuistKitTests/Generator/WorkspaceGeneratorTests.swift
  98. +1 βˆ’1 Tests/TuistKitTests/Graph/GraphCircularDetectorTests.swift
  99. +1 βˆ’1 Tests/TuistKitTests/Graph/GraphLoadingErrorTests.swift
  100. +1 βˆ’2 Tests/TuistKitTests/Graph/GraphManifestLoaderTests.swift
  101. +1 βˆ’1 Tests/TuistKitTests/Graph/GraphNodeTests.swift
  102. +1 βˆ’1 Tests/TuistKitTests/Graph/GraphTests.swift
  103. +1 βˆ’1 Tests/TuistKitTests/Graph/Mocks/MockGraphLoader.swift
  104. +0 βˆ’1 Tests/TuistKitTests/Graph/Mocks/MockManifestLoader.swift
  105. +1 βˆ’1 Tests/TuistKitTests/Linter/GraphLinterTests.swift
  106. +1 βˆ’1 Tests/TuistKitTests/Linter/LintingIssueTests.swift
  107. +1 βˆ’1 Tests/TuistKitTests/Linter/ProjectLinterTests.swift
  108. +1 βˆ’1 Tests/TuistKitTests/Linter/SettingsLinterTests.swift
  109. +1 βˆ’1 Tests/TuistKitTests/Linter/TargetActionLinterTests.swift
  110. +1 βˆ’1 Tests/TuistKitTests/Linter/TargetLinterTests.swift
  111. +1 βˆ’1 Tests/TuistKitTests/Linter/UpLinterTests.swift
  112. +1 βˆ’1 Tests/TuistKitTests/Models/BuildConfigurationTests.swift
  113. +2 βˆ’2 Tests/TuistKitTests/Models/CoreDataModelTests.swift
  114. +2 βˆ’2 Tests/TuistKitTests/Models/HeadersTests.swift
  115. +1 βˆ’1 Tests/TuistKitTests/Models/PlatformTests.swift
  116. +15 βˆ’16 Tests/TuistKitTests/Models/ProjectTests.swift
  117. +5 βˆ’5 Tests/TuistKitTests/Models/TargetTests.swift
  118. +1 βˆ’1 Tests/TuistKitTests/Playgrounds/PlaygroundGeneratorTests.swift
  119. +1 βˆ’2 Tests/TuistKitTests/Setup/Mocks/MockSetupLoader.swift
  120. +1 βˆ’2 Tests/TuistKitTests/Setup/Mocks/MockUpLinter.swift
  121. +8 βˆ’9 Tests/TuistKitTests/Setup/SetupLoaderTests.swift
  122. +2 βˆ’2 Tests/TuistKitTests/Utils/CommandCheckTests.swift
  123. +1 βˆ’1 Tests/TuistKitTests/Utils/InfoPlistProvisionerTests.swift
  124. +4 βˆ’6 fixtures/app_with_framework_and_tests/App/AppDelegate.swift
  125. +1 βˆ’3 fixtures/app_with_framework_and_tests/AppTests/AppTests.swift
  126. +2 βˆ’2 fixtures/app_with_framework_and_tests/Framework/Framework.swift
  127. +2 βˆ’2 fixtures/app_with_framework_and_tests/FrameworkTests/FrameworkTests.swift
  128. +36 βˆ’36 fixtures/app_with_framework_and_tests/Project.swift
  129. +1 βˆ’1 fixtures/invalid_workspace_manifest_name/Workspac.swift
  130. +20 βˆ’20 fixtures/ios_app_with_frameworks/App/Project.swift
  131. +2 βˆ’4 fixtures/ios_app_with_frameworks/App/Sources/AppDelegate.swift
  132. +1 βˆ’3 fixtures/ios_app_with_frameworks/App/Tests/AppDelegateTests.swift
  133. +19 βˆ’20 fixtures/ios_app_with_frameworks/Framework1/Project.swift
  134. +0 βˆ’1 fixtures/ios_app_with_frameworks/Framework1/Sources/Framework1File.swift
  135. +9 βˆ’10 fixtures/ios_app_with_frameworks/Framework1/Tests/Framework1FileTests.swift
  136. +17 βˆ’17 fixtures/ios_app_with_frameworks/Framework2/Project.swift
  137. +0 βˆ’1 fixtures/ios_app_with_frameworks/Framework2/Sources/Framework2File.swift
  138. +1 βˆ’2 fixtures/ios_app_with_frameworks/Framework2/Tests/Framework2FileTests.swift
  139. +1 βˆ’1 fixtures/ios_app_with_frameworks/Workspace.swift
  140. +2 βˆ’2 fixtures/ios_app_with_setup/Setup.swift
  141. +19 βˆ’19 fixtures/ios_app_with_static_frameworks/Modules/A/Project.swift
  142. +1 βˆ’3 fixtures/ios_app_with_static_frameworks/Modules/A/Sources/A.swift
  143. +3 βˆ’5 fixtures/ios_app_with_static_frameworks/Modules/A/Tests/ATests.swift
  144. +20 βˆ’20 fixtures/ios_app_with_static_frameworks/Modules/B/Project.swift
  145. +0 βˆ’2 fixtures/ios_app_with_static_frameworks/Modules/B/Sources/B.swift
  146. +3 βˆ’5 fixtures/ios_app_with_static_frameworks/Modules/B/Tests/BTests.swift
  147. +19 βˆ’19 fixtures/ios_app_with_static_frameworks/Project.swift
  148. +3 βˆ’7 fixtures/ios_app_with_static_frameworks/Sources/AppDelegate.swift
  149. +0 βˆ’2 fixtures/ios_app_with_static_frameworks/Tests/AppTests.swift
  150. +19 βˆ’19 fixtures/ios_app_with_static_libraries/Modules/A/Project.swift
  151. +1 βˆ’3 fixtures/ios_app_with_static_libraries/Modules/A/Sources/A.swift
  152. +3 βˆ’5 fixtures/ios_app_with_static_libraries/Modules/A/Tests/ATests.swift
  153. +20 βˆ’20 fixtures/ios_app_with_static_libraries/Modules/B/Project.swift
  154. +0 βˆ’2 fixtures/ios_app_with_static_libraries/Modules/B/Sources/B.swift
  155. +3 βˆ’5 fixtures/ios_app_with_static_libraries/Modules/B/Tests/BTests.swift
  156. +19 βˆ’19 fixtures/ios_app_with_static_libraries/Project.swift
  157. +3 βˆ’7 fixtures/ios_app_with_static_libraries/Sources/AppDelegate.swift
  158. +0 βˆ’2 fixtures/ios_app_with_static_libraries/Tests/AppTests.swift
@@ -15,7 +15,7 @@ jobs:
- run:
name: Install Dependencies
command: |
brew install swiftlint
brew install swiftformat
bundle install
- run:
name: Run Danger
@@ -101,4 +101,5 @@ build/
tuistenv
TODO
TODO.md
mkmf.log
mkmf.log
.rubocop-http---shopify-github-io-ruby-style-guide-rubocop-yml
Oops, something went wrong.

0 comments on commit d47d537

Please sign in to comment.
You can’t perform that action at this time.