Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • I iOS application
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 155
    • Issues 155
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Container Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • MemriMemri
  • iOS application
  • Merge requests
  • !127

Setup Swift Format

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Toby requested to merge SwiftFormat into dev Jun 28, 2020
  • Overview 0
  • Commits 3
  • Pipelines 3
  • Changes 168

This MR sets up SwiftFormat for consistent formatting.

To run formatting in Xcode: build the Memri + Build Tools scheme. The normal scheme will not run them (formatting files while developing can interfere with undo/redo amongst other things).

  • There is no setup required, Xcode will automatically download and build SwiftFormat (local to the project) the first time you run this.

  • Note that the first commit in this MR does the required setup, the second commit is purely applying the formatting changes.

  • This was based off the latest dev branch. If you have another branch there are likely to be merge conflicts. To get around this, I recommend ensuring your working copy is committed (so you don't lose any work) and then use git's cherry-pick to add the Setup SwiftFormat commit to your branch. Once you run the formatting and commit your files should be consistent with the dev branch → no merge conflicts.

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: SwiftFormat