{"repo":"integrated-application-development/pasfmt","free":true,"listed":false,"github":"https://github.com/integrated-application-development/pasfmt","clone":"git clone https://github.com/integrated-application-development/pasfmt.git","description":"Delphi code formatter","language":"Rust","stars":103,"topics":["delphi","formatter","pascal"],"license":"LGPL-3.0","category":"dev-tools","readme_excerpt":"pasfmt is a complete and opinionated formatter for Delphi code. Goals 1. Enforce a sensible, opinionated, and consistent formatting style. 2. Format the entire file - none of the input code is left unformatted. 3. Support all modern Delphi language features. 4. Fast. 5. Format invalid or incomplete code (within reason). Getting Started Try the web demo, download the latest release, or build from source. To format one pas , dpr , or dpk file (in-place), run To recursively format all supported files in a directory (in-place), run To show all command-line options, run Configuration Some aspects of formatting style can be controlled from a configuration file. The full list of available options is here, and can also be printed from the command line by running pasfmt -C help . To customise the configuration, create a file called pasfmt.toml in the root directory of the project you are formatting. Make sure that pasfmt is being run from that directory, or a child directory. For example: Specific pasfmt.toml files can also be used from the command-line: Additionally, configuration options can be specified on the command-line, which will override values from the file: Disabling formatting If there are sections of code that you would rather the formatter skip over, you can temporarily disable formatting: Integrations - pasfmt-rad : a Delphi IDE extension for pasfmt - pasfmt-action : a GitHub Action for integrating pasfmt into GitHub CI workflows Building from Source 1. Install Rust ( =","default_branch":null,"files":null,"tree":[],"storefront":"/r/integrated-application-development","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/integrated-application-development/pasfmt/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}