9 Repos
Tools that automatically rewrite source code to adhere to a consistent and standardized style guide.
Distinct from Code Formatting: Candidates focus on UI rendering of code snippets or AI edit protocols rather than the actual structural rewriting of source files for style compliance.
Explore 9 awesome GitHub repositories matching programming languages & runtimes · Source Code Formatters. Refine with filters or upvote what's useful.
YAPF ist ein Python-Code-Formatierer und Tool zur Einhaltung von Stilvorgaben. Es arbeitet als AST-basierter Reformattierer, der konkrete Syntaxbäume verwendet, um strukturelle Konsistenz und eine einheitliche visuelle Darstellung über Quelldateien hinweg sicherzustellen. Die Engine nutzt einen strafbasierten Layout-Optimierer, um die besten Zeilenumbrüche durch die Berechnung numerischer Kosten für verschiedene Formatierungsentscheidungen zu bestimmen. Sie verwendet einen Multiprozess-Code-Prozessor, um die Formatierung mehrerer Dateien auf mehrere CPU-Kerne zu verteilen. Das Tool deckt die Neuformatierung von Quellcode durch In-Place-Dateimodifikationen, Differenzanalysen und die Verarbeitung partieller Codefragmente ab. Es enthält ein regelbasiertes Konfigurationssystem zur Verwaltung von Stil-Presets, Layout-Regeln und Projekteinstellungen. Integrationsfähigkeiten umfassen die Überprüfung der Stileinhaltung für Continuous-Integration-Pipelines, Git-Hook-Automatisierung und editorbasierte Format-on-Save-Funktionalität.
Automatically reformats Python source code to adhere to a standardized style guide for consistent presentation.
Reason is a strongly typed functional language and multi-target compiler designed to produce either JavaScript for web environments or native machine code for operating systems. It serves as an OCaml-compatible language that shares an abstract syntax tree with OCaml, providing a practical syntax for the OCaml ecosystem. The project functions as a type-safe frontend language, incorporating JSX support to build user interfaces through structural elements that translate into type-safe function calls. It enables deep integration with the JavaScript ecosystem, allowing the use of existing librarie
Includes a command line tool to automatically rewrite source code to adhere to a standardized style guide.
rustfmt is a tool that automatically rewrites Rust source code to adhere to a consistent and standardized style guide. It functions as both a code formatter for transforming source files and a style linter used to verify if code matches required formatting rules. The system is configurable, allowing for the definition of custom formatting rules and language editions through configuration files to override default styles. It also supports selective formatting by using dedicated skip markers to prevent specific blocks of code from being modified. The tool provides capabilities for both source
Preventing specific blocks of Rust code from being modified by the formatter using dedicated skip markers.
rustfmt is a Rust code formatter that operates as a Cargo subcommand, applying consistent formatting to Rust source files according to official style guidelines. It parses source code into a syntax tree, applies formatting rules to tree nodes, and pretty-prints the result back to text, with support for TOML-driven configuration that allows per-project style customization. The formatter is edition-aware, automatically selecting formatting rules based on the Rust edition specified in the project, and supports a style edition override that decouples formatting rules from the Rust edition used fo
Applies consistent formatting to Rust source files according to official style guidelines and project-specific configuration.
google-java-format ist ein Java-Code-Formatter und ein Tool zur Durchsetzung von Styleguides. Es formatiert Java-Quellcode so um, dass er einem standardisierten Styleguide entspricht, und sorgt so für ein konsistentes Layout und eine einheitliche Einrückung über ganze Projekte oder einzelne Dateien hinweg. Das Projekt fungiert als Linting-Tool in Build-Pipelines für Continuous-Integration-Workflows sowie als IDE-Formatierungs-Plugin, das die native Editor-Formatierung ersetzt. Es kann als Formatierungsbibliothek in Software zur Codegenerierung eingebettet werden, um sicherzustellen, dass maschinell erstellter Code für Menschen lesbar bleibt. Das Tool bietet Funktionen zur Anpassung von Einrückungen und Abständen im Quellcode, einschließlich der Möglichkeit, Formatierungen selektiv auf bestimmte Zeilenbereiche oder geänderte Diffs anzuwenden. Es unterstützt die Integration in Entwicklungsumgebungen wie Eclipse, um Layout-Anpassungen während des Codierens zu automatisieren.
Automatically rewrites Java source code to adhere to a standardized style guide for consistent layout and indentation.
This project is a comprehensive collection of Python programming education materials, including tutorials, exercises, and curated code samples. It serves as a learning curriculum and software engineering toolkit, utilizing Jupyter Notebooks to combine executable code with descriptive educational text. The repository provides practical implementation guides for building large language model applications, such as retrieval-augmented generation systems, stateful AI agents, and machine learning workflows. It distinguishes itself by offering a structured approach to agentic coding workflows, cover
Automatically rewrites source code to adhere to consistent and standardized style guides via indentation and layout adjustments.
gofumpt is a Go language tool and source code formatter. It functions as an opinionated code styler that applies a strict and consistent visual style to Go source files to ensure a standardized appearance across a codebase. The tool enforces a more rigid and deterministic set of layout constraints than the standard Go toolchain. It is designed for Go project style enforcement to eliminate trivial diffs and stylistic inconsistencies. The project supports Go source code formatting and continuous integration linting to automatically check and correct formatting during the build process.
Acts as a source code formatter that rewrites Go code to adhere to a standardized and strict style guide.
vim-lsp is a Vim plugin that implements the Language Server Protocol to provide an asynchronous code intelligence tool for the editor. It serves as a bridge between Vim and external language servers, providing semantic code analysis and IDE-like navigation and diagnostics. The project provides a refactoring interface for renaming symbols across a workspace and applying quick-fixes. It also enables semantic highlighting, which color-codes elements based on their meaning as determined by the language server. The plugin covers a broad surface of capabilities, including symbol navigation and dis
Automatically reformats source code to adhere to consistent style guidelines via the language server.
swift-format is a set of developer utilities for the Swift ecosystem designed for automated style enforcement, static analysis, and project-wide configuration management. It functions as a code formatter that rewrites source code to adhere to consistent style rules and as a linter that identifies style violations. The tool provides a system for defining and applying custom formatting rules through a configuration tool. This includes the ability to load settings from configuration files discovered in a directory hierarchy or to export default settings for user customization. Its capabilities
Automatically rewrites Swift source files to adhere to a consistent and standardized style guide.