Skip to content

Latest commit

 

History

History
35 lines (24 loc) · 1022 Bytes

EditorIntegrations.md

File metadata and controls

35 lines (24 loc) · 1022 Bytes

Xcode

Formatting

Use the Xcode source editor extention implemented on top of DrString.

Linting

For linting, add a "Run Script" build phase in your project target:

if which drstring >/dev/null; then
  drstring check --config-file "$SRCROOT/.drstring.toml" || true
else
  echo "warning: DrString not installed. Run \
    `brew install dduan/formulae/drstring` or learn more at \
    https://github.com/dduan/DrString/blob/main/Documentation/GettingStarted.md#install"
fi

Note the second command should be however you would run drstring in command line. $SRCROOT is a environment variable that mayb come in handy for locating your config file.

Vim/NeoVim

dduan/DrString.vim provides Vim wrappers for DrString.

Emacs

flycheck-drstring is a flycheck checker for Swift source code using DrString.