uber / uber/mockolo

Allow to exclude folders

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

Nobody has claimed this yet.

Dominant language
Swift
Stars
886
Forks
102
Avg merge
6h 36m
Merged PRs (30d)
2

Description

We have a project, MyApp, with some internal packages, to which we split some app features. Features folder lays on the same level as other folders, like Services, etc.

MyApp

  • Services
  • Features
    • Shopping
      - ProtocolA
  • Repositories

For the mockolo command I just provide whole path of parent folder, like MyApp, which includes both Services and Features. From what I see it's only allowed to exclude some specific files, (or filenames by suffixes). It would be really handy if we could exclude whole folder from the sources, lets say I provide MyApp as sources dir, but excluding dir would be MyApp/Features. And in general the idea is that every feature package will expose its own FeatureMocks package, so we need to skip generating them when running for whole mockolo target.

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 mockolo CLI option parsing and the existing file or filename-suffix exclusion handling. Add support for excluding a directory such as MyApp/Features while retaining current file exclusions, and verify that excluded folders are not processed for mock generation.

Written by the indexing model from the issue text.

Assessment

Tech stack
swift
Domain
cli
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.