{"id":15746700,"url":"https://github.com/hanse00/swift-aoc-2023","last_synced_at":"2025-03-31T06:24:03.754Z","repository":{"id":233404154,"uuid":"726287135","full_name":"Hanse00/Swift-AOC-2023","owner":"Hanse00","description":"My solutions to the 2023 Advent of Code (https://adventofcode.com/2023) written in Swift","archived":false,"fork":false,"pushed_at":"2023-12-02T00:19:56.000Z","size":14,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-06T10:53:00.344Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Hanse00.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2023-12-02T00:19:54.000Z","updated_at":"2023-12-02T00:19:59.000Z","dependencies_parsed_at":"2024-04-16T04:09:31.763Z","dependency_job_id":null,"html_url":"https://github.com/Hanse00/Swift-AOC-2023","commit_stats":null,"previous_names":["hanse00/swift-aoc-2023"],"tags_count":0,"template":false,"template_full_name":"swiftlang/swift-aoc-starter-example","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hanse00%2FSwift-AOC-2023","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hanse00%2FSwift-AOC-2023/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hanse00%2FSwift-AOC-2023/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hanse00%2FSwift-AOC-2023/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Hanse00","download_url":"https://codeload.github.com/Hanse00/Swift-AOC-2023/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246425090,"owners_count":20775065,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-04T05:01:12.323Z","updated_at":"2025-03-31T06:24:03.727Z","avatar_url":"https://github.com/Hanse00.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Advent of Code Swift Starter Project\n\n[![Language](https://img.shields.io/badge/language-Swift-red.svg)](https://swift.org)\n\nDaily programming puzzles at [Advent of Code](\u003chttps://adventofcode.com/\u003e), by\n[Eric Wastl](\u003chttp://was.tl/\u003e). This is a small example starter project for\nbuilding Advent of Code solutions.\n\n## Usage\n\nSwift comes with Xcode, or you can [install it](https://www.swift.org/install/)\non a supported macOS, Linux, or Windows platform. \n\nIf you're using Xcode, you can open this project by choosing File / Open and\nselect the parent directory. \n\nIf you prefer the command line, you can run the test suite with `swift test`,\nand run the output with `swift run`.\n\nIf you're using Visual Studio Code to edit, you might find these Swift\nextensions useful:\n\n- [Swift](https://marketplace.visualstudio.com/items?itemName=sswg.swift-lang)\n  (provides core language edit / debug / test features)\n- [apple-swift-format](https://marketplace.visualstudio.com/items?itemName=vknabel.vscode-apple-swift-format)\n  (supports the [swift-format](https://github.com/apple/swift-format) package)\n\n## Challenges\n\nThe challenges assume three files (replace 00 with the day of the challenge).\n\n- `Data/Day00.txt`: the input data provided for the challenge\n- `Sources/Day00.swift`: the code to solve the challenge\n- `Tests/Day00.swift`: any unit tests that you want to include\n\nTo start a new day's challenge, make a copy of these files and update as\nnecessary. The `AdventOfCode.swift` file controls which day's challenge is run\nwith `swift run`. By default that runs the most recent challenge in the package.\n\nTo supply command line arguments use `swift run AdventOfCode`. For example,\n`swift run -c release AdventOfCode --benchmark 3` builds the binary with full\noptimizations, and benchmarks the challenge for day 3.\n\n## Linting and Formatting\n\nChallenge source code can be linted and formatted automatically using the\nincluded dependency on `swift-format`.\n\nLint source code with the following command:\n\n```shell\n$ swift package lint-source-code\n```\n\nFormat source code with the following command:\n\n```shell\n$ swift package format-source-code\nPlugin ‘Format Source Code’ wants permission to write to the package directory.\nStated reason: “This command formats the Swift source files”.\nAllow this plugin to write to the package directory? (yes/no)\n```\n\nTo avoid the interactive prompt when formatting source code, use the \n`--allow-writing-to-package-directory` flag.\n \n```shell\n$ swift package format-source-code --allow-writing-to-package-directory\n```\n\nswift-format will use the built-in default style to lint and format code. A\n`.swift-format` configuration file can be used to customize the style used, see\n[Configuration](https://github.com/apple/swift-format/blob/main/Documentation/Configuration.md)\nfor more details. \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhanse00%2Fswift-aoc-2023","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhanse00%2Fswift-aoc-2023","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhanse00%2Fswift-aoc-2023/lists"}