yonaskolb / yonaskolb/XcodeGen

Indentation options are not applied to files being part of Packages

Open
#1,461 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Swift
Stars
8.8k
Forks
908
Avg merge
17d 14h
Merged PRs (30d)
2

Description

We are using this in our project settings:

options:
  usesTabs: false
  indentWidth: 2
  tabWidth: 2

It works for all the files added to a root project, but we cannot find a way to set the same settings to all files being part of our Packages - all of them are using the user default settings, instead of project settings.

There is an indentation setting for each file in Packages - but I cannot find a way to modify it using XcodeGen.

I found a similar issue for a single file https://github.com/yonaskolb/XcodeGen/issues/1273 - but here it would be great to have something for all files being part of the given Package.

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 with the project settings options usesTabs, indentWidth, and tabWidth, then compare how root-project files and files in Packages receive indentation settings. Done means the same configured indentation values are applied consistently to all files belonging to a package.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.