pinterest / ktlint

An anti-bikeshedding Kotlin linter with built-in formatter
https://pinterest.github.io/ktlint/
MIT License
6.26k stars 506 forks source link

"Import Layouts" link points to nothing in "Import ordering" rule docs #2866

Closed TWiStErRob closed 1 week ago

TWiStErRob commented 2 weeks ago

Steps to Reproduce

  1. https://pinterest.github.io/ktlint/1.4.1/rules/standard/#import-ordering
  2. Click "Import Layouts" link

Observed Behavior

Opens https://pinterest.github.io/ktlint/1.4.1/rules/configuration-ktlint/#import-layouts which points to a section that doesn't exist.

Expected Behavior

The documentation of layouts at https://pinterest.github.io/ktlint/1.4.1/rules/standard/#no-wildcard-imports is in the configuration page under the "Import Layouts" section? I guess that was the case and it was moved at one point.

Your Environment

paul-dingemans commented 1 week ago

Yes apparently this link is no longer correct since version 1.0. This was the last version which contained useful information: https://pinterest.github.io/ktlint/1.0.1/rules/configuration-ktlint/#import-layouts