{"id":41063385,"url":"https://github.com/integrated-application-development/pasfmt","last_synced_at":"2026-01-22T12:22:30.087Z","repository":{"id":278490435,"uuid":"650892038","full_name":"integrated-application-development/pasfmt","owner":"integrated-application-development","description":"Delphi code formatter","archived":false,"fork":false,"pushed_at":"2025-11-11T01:15:43.000Z","size":4812,"stargazers_count":74,"open_issues_count":29,"forks_count":13,"subscribers_count":13,"default_branch":"master","last_synced_at":"2025-11-11T02:31:08.984Z","etag":null,"topics":["delphi","formatter","pascal"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"lgpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/integrated-application-development.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.txt","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,"publiccode":null,"codemeta":null,"zenodo":null,"notice":"NOTICE.txt","maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2023-06-08T03:23:20.000Z","updated_at":"2025-11-11T00:39:29.000Z","dependencies_parsed_at":"2025-03-20T00:24:33.236Z","dependency_job_id":"627f1ec0-09f9-4199-ae07-5256fb07973b","html_url":"https://github.com/integrated-application-development/pasfmt","commit_stats":null,"previous_names":["integrated-application-development/pasfmt"],"tags_count":9,"template":false,"template_full_name":null,"purl":"pkg:github/integrated-application-development/pasfmt","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/integrated-application-development%2Fpasfmt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/integrated-application-development%2Fpasfmt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/integrated-application-development%2Fpasfmt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/integrated-application-development%2Fpasfmt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/integrated-application-development","download_url":"https://codeload.github.com/integrated-application-development/pasfmt/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/integrated-application-development%2Fpasfmt/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28662961,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-22T01:17:37.254Z","status":"online","status_checked_at":"2026-01-22T02:00:07.137Z","response_time":144,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["delphi","formatter","pascal"],"created_at":"2026-01-22T12:22:28.090Z","updated_at":"2026-01-22T12:22:30.076Z","avatar_url":"https://github.com/integrated-application-development.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 id=\"pasfmt\"\u003e\n  \u003cpicture\u003e\n    \u003csource media=\"(prefers-color-scheme: dark)\" srcset=\"docs/images/pasfmt-title-dark.png\"\u003e\n    \u003csource media=\"(prefers-color-scheme: light)\" srcset=\"docs/images/pasfmt-title-light.png\"\u003e\n    \u003cimg alt=\"pasfmt\" src=\"docs/images/pasfmt-title-light.png\"/\u003e\n  \u003c/picture\u003e\n\u003c/h1\u003e\n\n`pasfmt` is a complete and opinionated formatter for Delphi code.\n\n## Goals\n\n1. Enforce a sensible, opinionated, and consistent formatting style.\n2. Format the entire file - none of the input code is left unformatted.\n3. Support all modern Delphi language features.\n4. Fast.\n5. Format invalid or incomplete code (within reason).\n\n## Getting Started\n\nTry the [web demo](https://integrated-application-development.github.io/pasfmt/), download the\n[latest release](https://github.com/integrated-application-development/pasfmt/releases/latest),\nor [build from source](#building-from-source).\n\nTo format one `pas`, `dpr`, or `dpk` file (in-place), run\n\n```sh\npasfmt path/to/file.pas\n```\n\nTo recursively format all supported files in a directory (in-place), run\n\n```sh\npasfmt path/to/directory/\n```\n\nTo show all command-line options, run\n\n```sh\npasfmt --help\n```\n\n## Configuration\n\nSome aspects of formatting style can be controlled from a configuration file.\n\nThe full list of available options is [here](./docs/CONFIGURATION.md), and can also be printed from the command line by running `pasfmt -C help`.\n\nTo customise the configuration, create a file called `pasfmt.toml` in the root directory of the project\nyou are formatting. Make sure that `pasfmt` is being run from that directory, or a child directory.\n\nFor example:\n\n```toml\n# in a file called pasfmt.toml\n\n# change the target line length\nwrap_column = 100\n\n# in most cases, it is not necessary to configure the encoding\nencoding = \"UTF-8\"\n```\n\nSpecific `pasfmt.toml` files can also be used from the command-line:\n\n```sh\npasfmt --config-file path/to/pasfmt.toml path/to/file.pas\n```\n\nAdditionally, configuration options can be specified on the command-line, which will override values from the file:\n\n```sh\npasfmt -C wrap_column=100\n```\n\n### Disabling formatting\n\nIf there are sections of code that you would rather the formatter skip over, you can temporarily disable formatting:\n\n```delphi\n// pasfmt off\nconst ValueMap: TArray\u003cInteger\u003e = [\n    1, 2,\n    3, 4,\n    5, 6\n];\n// pasfmt on\n```\n\n## Integrations\n\n- [`pasfmt-rad`](https://github.com/integrated-application-development/pasfmt-rad): a Delphi IDE extension for `pasfmt`\n- [`pasfmt-action`](https://github.com/integrated-application-development/pasfmt-action): a GitHub Action for integrating `pasfmt` into GitHub CI workflows\n\n## Building from Source\n\n1. [Install Rust](https://rustup.rs/) (\u003e= 1.82)\n2. ```sh\n   cargo build --release\n   ```\n\n## Licence\n\nThis project is licensed under [LGPL-3.0](LICENSE.txt).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fintegrated-application-development%2Fpasfmt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fintegrated-application-development%2Fpasfmt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fintegrated-application-development%2Fpasfmt/lists"}