Swift Package Index



  • The latest stable release is 1.1.0. Released 12 months ago.
  • The last commit to master was 12 months ago.

Swift Version Compatibility

  • 1.1.0 and master
    5.3
    5.2
    5.1
    5.0
    4.2
Full build results

Platform Compatibility

  • 1.1.0
    iOS
    macOS(Intel)
    macOS(ARM)
    Linux
    tvOS
    watchOS
  • master
    iOS
    macOS(Intel)
    macOS(ARM)
    Linux
    tvOS
    watchOS
Full build results

Danger Xcode Static Analyzer

Danger Swift plugin for Xcode Static Analzyer. So you can get analyzer warnings on your pull requests!

Usage

Install and run Danger Swift as normal.

dependencies:
  override:
  - npm install -g danger # This installs Danger
  - brew install danger/tap/danger-swift # This installs Danger-Swift

Then use the following Dangerfile.swift.

// Dangerfile.swift

import Danger
import DangerXcodeStaticAnalyzer // package: https://github.com/hteytan/DangerXcodeStaticAnalyzer.git

XcodeStaticAnalyzer.analyze(arguments: [...])

That will run the static analzyer and report warnings inline for created and modified files. Violations that are out of the diff will show in danger's fail or warn section.

Report all files

By default, only the warnings from files that were added or modified are reported; however, you can use the reportAllFiles option to report warnings from all files.

XcodeStaticAnalyzer.analyze(arguments: [...], reportAllFiles=true)

License

#MIT4Lyfe

Attributions

Thank you, ashfurrow.