Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions .github/workflows/periphery.yml
Original file line number Diff line number Diff line change
@@ -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
1 change: 1 addition & 0 deletions .periphery.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
retain_public: false
1 change: 0 additions & 1 deletion Sources/lib/GameFinder.swift
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,6 @@ actor GameFinder {
var fourtiles: [String]

var count: Int { fourtiles.count }
var isEmpty: Bool { fourtiles.isEmpty }

init(fourtiles: Set<String>) {
self.fourtiles = Array(fourtiles)
Expand Down
5 changes: 0 additions & 5 deletions Sources/lib/Games.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,6 @@ struct Game: Codable {
/// All other words that can be formed by combinations of the tiles.
let otherWords: Set<String>

/// The ``fourtiles`` and ``otherWords`` combined.
var words: Set<String> {
fourtiles.union(otherWords)
}

func encode(to encoder: Encoder) throws {
var container = encoder.container(keyedBy: CodingKeys.self)

Expand Down