diff --git a/.github/workflows/periphery.yml b/.github/workflows/periphery.yml new file mode 100644 index 0000000..10f86cf --- /dev/null +++ b/.github/workflows/periphery.yml @@ -0,0 +1,21 @@ +name: Periphery +on: + push: + branches: [main] + pull_request: +jobs: + periphery: + name: Run Periphery + runs-on: macos-26 + steps: + - uses: actions/checkout@v6 + - uses: maxim-lobanov/setup-xcode@v1 + with: + xcode-version: "26.4" + - uses: SwiftyLab/setup-swift@latest + with: + swift-version: "6.3" + - name: Install Periphery + run: brew install periphery + - name: Run Periphery + run: periphery scan diff --git a/.periphery.yml b/.periphery.yml new file mode 100644 index 0000000..251ebc2 --- /dev/null +++ b/.periphery.yml @@ -0,0 +1 @@ +retain_public: false diff --git a/Sources/lib/GameFinder.swift b/Sources/lib/GameFinder.swift index 60586b3..d093b3d 100644 --- a/Sources/lib/GameFinder.swift +++ b/Sources/lib/GameFinder.swift @@ -177,7 +177,6 @@ actor GameFinder { var fourtiles: [String] var count: Int { fourtiles.count } - var isEmpty: Bool { fourtiles.isEmpty } init(fourtiles: Set) { self.fourtiles = Array(fourtiles) diff --git a/Sources/lib/Games.swift b/Sources/lib/Games.swift index 8b75c00..dc769d1 100644 --- a/Sources/lib/Games.swift +++ b/Sources/lib/Games.swift @@ -12,11 +12,6 @@ struct Game: Codable { /// All other words that can be formed by combinations of the tiles. let otherWords: Set - /// The ``fourtiles`` and ``otherWords`` combined. - var words: Set { - fourtiles.union(otherWords) - } - func encode(to encoder: Encoder) throws { var container = encoder.container(keyedBy: CodingKeys.self)