rust-lang/rustfmt

Improve Documentation For `single_line_if_else_max_width` in `Configurations.md` + Add Tests

开放

#5,496 创建于 2022年8月11日

 (6 条评论) (0 个反应) (1 位负责人)Rust (760 个派生)batch import
A-configE-needs-testgood first issue

仓库指标

星标
 (4,893 个星标)
PR 合并指标
 (PR 指标待抓取)

描述

The single_line_if_else_max_width is one of many configuration options that could use some improvements to it's documentation. It would be great to:

  • Add code snippets to highlight the functionality this option provides
  • Describe that the behavior of this option changes when version=Two is set.

Additionally, some tests for the options should be added to tests/source/configs/ and tests/target/configs/. See the Create test cases section of the Contributing guide for more details. It would be great to have test cases for both version=One and version=Two.

贡献者指南