awesome-repositories.com
博客
MCP
awesome-repositories.com

通过 AI 驱动的搜索,发现最优秀的开源仓库。

探索精选搜索开源替代品自托管软件博客网站地图
项目MCP 服务器关于排名机制媒体报道
法律隐私政策服务条款
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
·
ktlint avatar

ktlint/ktlint

0
View on GitHub↗
6,717 星标·525 分支·Kotlin·MIT·10 次浏览ktlint.github.io/ktlint↗

Ktlint

ktlint is a linter and code formatter for Kotlin that checks source files against a built-in set of style rules and automatically rewrites them to match those rules. It operates by walking the Kotlin abstract syntax tree, detecting violations, and applying transformations directly at the node level before regenerating the source code from the modified tree.

The project ships a curated default rule set that requires no configuration to enforce consistent formatting, and provides a command-line interface for running linting and formatting in batch mode. Its rule-set-based plugin architecture allows loading independent rule sets as plugins, each defining their own lint checks and formatting actions, while a reporter abstraction layer outputs results through pluggable reporters in plain text, JSON, or other formats.

Users can extend ktlint with custom rule sets and reporters to add or replace linting and formatting behavior, enabling enforcement of project-specific coding standards. The project covers both linting—checking code against built-in style rules and reporting violations—and automatic formatting of Kotlin source files to match those rules without manual effort.

Features

  • Kotlin Formatters - Formats Kotlin source files to match built-in style rules automatically.
  • Kotlin Linters - Checks Kotlin source files against built-in style rules and reports violations without configuration.
  • Linters - Checks Kotlin code against built-in style rules to catch violations and enforce conventions.
  • Source Code Rewriting - Transforms the AST directly to fix violations, then regenerates source code from the modified tree.
  • Configuration-Free Rule Sets - Ships a curated collection of style rules that require no configuration to enforce consistent formatting.
  • Plugin-Based Architectures - Loads independent rule sets as plugins that each define their own lint checks and formatting actions.
  • Syntax Traversal - Walks the Kotlin abstract syntax tree to detect style violations and apply node-level transformations.
  • Custom Lint Rule Plugins - Loads user-defined rule sets and reporters to add or replace linting and formatting behavior.
  • Command Line Interfaces - Provides a CLI that accepts file paths and options to run linting and formatting in batch mode.
  • Custom Rule Development - Extends the linter with user-defined rule sets and reporters to enforce project-specific coding standards.
  • Violation Reporters - Outputs results through pluggable reporters that format violations as plain text, JSON, or other formats.

Star 历史

ktlint/ktlint 的 Star 历史图表ktlint/ktlint 的 Star 历史图表

AI 搜索

探索更多 awesome 仓库

用简单的语言描述您的需求 —— AI 将根据相关性为您从数千个精选开源项目中进行排序。

Start searching with AI

Ktlint 的开源替代方案

相似的开源项目,按与 Ktlint 的功能重合度排序。
  • checkstyle/checkstylecheckstyle 的头像

    checkstyle/checkstyle

    8,867在 GitHub 上查看↗

    Checkstyle is a Java static analysis tool and linter designed to identify and enforce coding standards and best practices. It functions as a code quality auditor and Javadoc validation tool, checking source code against configurable rulesets to ensure structural and stylistic consistency. The project allows for the creation of custom linting rules by extending a core API to inspect the abstract syntax tree. It further enables specialized validation through the use of XPath expressions to query the syntax tree for specific code patterns and violations. Capability areas include the enforcement

    Javacode-qualitycommand-line-toolhacktoberfest
    在 GitHub 上查看↗8,867
  • pycqa/pylintPyCQA 的头像

    PyCQA/pylint

    5,685在 GitHub 上查看↗

    Pylint is a static code analysis tool for Python that checks source code for errors, coding standard violations, and code smells without executing the program. It parses code into an abstract syntax tree and walks the tree to detect issues, enforces configurable style rules and naming conventions, and identifies duplicate code blocks by comparing tokenised source sequences. The tool also includes an inference engine that deduces variable types by simulating code paths, enabling deeper analysis even in untyped code. What distinguishes Pylint is its plugin-based checker architecture, which allo

    Python
    在 GitHub 上查看↗5,685
  • pylint-dev/pylintpylint-dev 的头像

    pylint-dev/pylint

    5,685在 GitHub 上查看↗

    Pylint is a static code analyzer for Python that scans source code for errors, coding standard violations, code smells, and type-related issues without executing the program. It functions as a plugin-based linter framework, allowing users to extend its analysis capabilities with custom or third-party checks for project-specific rules and framework support. The tool also includes a duplicate code detector that identifies identical or near-identical code blocks across a project to help reduce redundancy. Beyond its core linting functionality, Pylint can generate UML class and package diagrams f

    Pythonclosembercode-qualityhacktoberfest
    在 GitHub 上查看↗5,685
  • karma-runner/karmakarma-runner 的头像

    karma-runner/karma

    11,958在 GitHub 上查看↗

    Karma is a JavaScript test runner designed for executing test suites across multiple real web browsers to ensure cross-browser compatibility. It functions as a browser-based execution system that launches browsers, captures console output, and provides a command line interface for running automated tests within continuous integration pipelines. The project utilizes a plugin architecture that allows for the integration of third-party launchers, reporters, and preprocessors. It employs an adapter-based framework to execute tests from various assertion libraries through a unified runner interfac

    JavaScript
    在 GitHub 上查看↗11,958
查看 Ktlint 的所有 30 个替代方案→

常见问题解答

ktlint/ktlint 是做什么的?

ktlint is a linter and code formatter for Kotlin that checks source files against a built-in set of style rules and automatically rewrites them to match those rules. It operates by walking the Kotlin abstract syntax tree, detecting violations, and applying transformations directly at the node level before regenerating the source code from the modified tree.

ktlint/ktlint 的主要功能有哪些?

ktlint/ktlint 的主要功能包括:Kotlin Formatters, Kotlin Linters, Linters, Source Code Rewriting, Configuration-Free Rule Sets, Plugin-Based Architectures, Syntax Traversal, Custom Lint Rule Plugins。

ktlint/ktlint 有哪些开源替代品?

ktlint/ktlint 的开源替代品包括: checkstyle/checkstyle — Checkstyle is a Java static analysis tool and linter designed to identify and enforce coding standards and best… pycqa/pylint — Pylint is a static code analysis tool for Python that checks source code for errors, coding standard violations, and… pylint-dev/pylint — Pylint is a static code analyzer for Python that scans source code for errors, coding standard violations, code… karma-runner/karma — Karma is a JavaScript test runner designed for executing test suites across multiple real web browsers to ensure… stylelint/stylelint — Stylelint is a static code analysis tool and linter for CSS and style-like languages. It identifies errors, enforces… xushengfeng/esearch — eSearch is a desktop tool that combines screen capture, image annotation, screen recording, optical character…