skiptools / skiptools/skip-bridge

Warn when a bridged transpiled module has code not guarded within #if !SKIP_BRIDGE

Open
#83 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Swift
Stars
6
Forks
7
PR merge metrics
No merged PRs in 30d

Description

When a transpiled + bridged module is not bookended with #if !SKIP_BRIDGE / #endif, the result will be a confusing error like invalid redeclaration of 'MyType' during the Gradle build due to Skip compiling both the bridged and non-bridged Swift.

We could identify when a file doesn't contain #if !SKIP_BRIDGE and issue a helpful warning or error message.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the handling for transpiled and bridged modules and the Gradle build path. Check how the presence of #if !SKIP_BRIDGE and #endif could be detected, then verify that an absent guard produces a helpful warning or error instead of the confusing redeclaration failure.

Written by the indexing model from the issue text.

Assessment

Tech stack
swift
Domain
build-system, tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.