Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

This repository demonstrates how to use swiftlint to identify unused code or unused imports in a Swift codebase

Notifications You must be signed in to change notification settings

acecilia/swift-compilation-database

Open more actions menu

Repository files navigation

Swift compilation database

This repository demonstrates how to use swiftlint to identify unused code or unused imports in a Swift codebase.

How to run

  • make go_with_xcodebuild: will generate an xcode project, build the code with xcodebuild, generate a build log and feed it to swiftlint
  • make go_with_xcodebuild_compilation_database: will generate an xcode project, build the code with xcodebuild, generate a build log, convert the build log into a compilation database and feed it to swiftlint
  • make go_with_bazel_compilation_database: will run bazel aquery to obtain the compilation commands, which then are processed to generate a compilation database. Then, it feeds it to swiftlint

About

This repository demonstrates how to use swiftlint to identify unused code or unused imports in a Swift codebase

Resources

Stars

Watchers

Forks

Morty Proxy This is a proxified and sanitized view of the page, visit original site.