10 个仓库
Tools that automatically restructure source code to adhere to a consistent visual style and layout.
Distinct from Code Analysis and Formatting: Distinct from Code Analysis and Formatting: focuses specifically on the layout and structural rewriting of code rather than general linting or analysis.
Explore 10 awesome GitHub repositories matching part of an awesome list · Source Code Formatters. Refine with filters or upvote what's useful.
coc.nvim is a Node.js extension host and Language Server Protocol client that transforms Vim and Neovim into a full integrated development environment. It provides a framework for executing JavaScript and TypeScript plugins within a separate process to enable advanced IDE features without blocking the editor's main thread. The project is distinguished by its ability to host extensions and language servers through a centralized JSON configuration. It supports the installation and lifecycle management of third-party extensions from registries or local files, allowing users to customize language
Provides automated source code formatting based on language-specific style rules.
Spacemacs is a community-driven configuration for Emacs that integrates modal text editing and a modular system for managing editor features. It implements distinct states for navigation and insertion to separate text manipulation from text entry, combining the efficiency of modal navigation with the extensibility of the Emacs environment. The project distinguishes itself through a layer-based feature composition system, which groups related third-party packages and configurations into modular units. This system includes dependency-based resolution to manage conflicting extensions and a mnemo
Standardizes the layout of the current buffer or symbol based on defined style guides.
google-java-format is a Java code formatter and style enforcement tool. It reformats Java source code to adhere to a standardized style guide, ensuring consistent layout and indentation across entire projects or individual files. The project functions as a build pipeline linting tool for continuous integration workflows and as an IDE formatting plugin to replace native editor formatting. It can be embedded as a formatting library within code generation software to ensure machine-written output remains human-readable. The tool provides capabilities for reorganizing source code indentation and
Automatically restructures Java source code to adhere to a consistent visual style and layout.
Roc is a statically typed, functional programming language built around immutable-by-default semantics, exhaustive pattern matching on tag unions, and a type system that combines optional explicit annotations with full compile-time type inference. Its core identity centers on correctness and expressiveness, using tagged unions for error handling with a question-mark operator for early error propagation, and a trailing-bang naming convention that makes side-effect boundaries syntactically visible at every call site. The language distinguishes itself through a platform-based I/O abstraction tha
Applies standard style rules to all source files with a single command and no configuration options.
node-jscs 是一个 JavaScript 代码检查器和代码风格检查工具,旨在分析源代码并强制执行一致的编码标准。它作为静态分析工具,识别 JavaScript 代码中的模式,以确保符合定义的风格指南。 该项目提供了 JavaScript 代码检查和自动代码格式化功能。它可以检查源代码中的风格违规,并自动纠正这些错误,使代码库与指定的格式化规则保持一致。
Automatically restructures JavaScript source code to align with specified formatting rules.
lua-language-server 是一个 Lua 语言的静态分析工具和类型检查器,实现了语言服务器协议 (LSP)。它提供了一套用于检测源文件中类型不匹配、死代码和逻辑错误的系统。 该项目具有基于推理的类型系统,可推断变量类型,并支持可选的注解和元文件以强制执行类型安全。它允许定义自定义类型和函数签名,包括对重载和成员可见性控制的支持。 该服务器提供了广泛的 IDE 功能,包括实时代码自动补全、符号重构以及跳转到定义和实现。它还包含一个代码格式化程序和一个文档生成器,可提取符号和注解以生成 Markdown 和 JSON 文件。 该服务器可以从源码构建,并可配置以匹配特定的语言版本和运行时环境。
Includes a built-in formatter that automatically adjusts indentation and style to maintain consistent visual structure.
vim-easy-align 是一个用于 Vim 编辑器的文本对齐插件和扩展。它作为一个基于正则表达式的文本格式化工具,旨在跨多行垂直对齐文本。 该工具通过字符或正则表达式识别对齐锚点,以创建表格布局和组织化的源代码格式。它支持特定出现次数定位,以确定重复字符的哪一个实例作为锚点,以及定义自定义对齐规则和分隔符的能力。 功能包括具有左、右或居中模式的多行文本对齐,以及将对齐操作限制为矩形文本块的能力。该系统整合了语法感知过滤,以忽略字符串或注释内的分隔符,并在应用前提供对齐结果的实时视觉预览。
Restructures source code layout by lining up variable assignments and configuration blocks for better readability.
RLS is a language server that provides language intelligence for the Rust programming language. It implements the Language Server Protocol to enable a standardized communication layer between the Rust compiler and various editor clients. The project focuses on providing real-time code completions, symbol navigation, and type information. It also supports automated structural changes, such as workspace-wide symbol renaming, to maintain semantic correctness during refactoring. The system incorporates static code analysis for linting and formatting, alongside a mechanism for incremental compila
Analyzes the current document and replaces text with a consistent, standardized layout for the entire file or specific ranges.
OpenRewrite is an automated refactoring engine and source-to-source migration framework. It uses a lossless semantic tree parser to represent source code as type-aware trees that preserve original whitespace and formatting, enabling precise and deterministic modifications. The project utilizes a declarative refactoring pipeline where sequences of transformations are defined in YAML to resolve breaking changes and technical debt. It features type-aware pattern matching and cross-language model mapping to apply similar refactoring patterns across different programming languages. The framework
Enforces consistent visual formatting across a codebase to ensure all files adhere to a configured style.
kotlin-lsp is a language server implementation that integrates editors with the Kotlin compiler and build tools to provide language intelligence and code analysis. It uses the Language Server Protocol to decouple heavy language processing from the text editor user interface. The project provides static code analysis to detect issues and provide real-time diagnostics. It enables source code navigation through symbol-index based jumping to definitions and an analysis of how components interact. Additional capabilities include automated source code formatting, intelligent code completion, and s
Automatically adjusts source code layout and style to adhere to consistent project rules.