Skip to content

docs: show prettier-plugin-sh for Dockerfiles - #3203

Merged
nedtwigg merged 1 commit into
diffplug:mainfrom
Pankraz76:docs/prettier-dockerfile
Nov 24, 2026
Merged

nedtwigg merged 1 commit into
diffplug:mainfrom
Pankraz76:docs/prettier-dockerfile

Conversation

@Pankraz76

Copy link
Copy Markdown

Adds a Dockerfile example to the "prettier plugins" sections of the Gradle and Maven READMEs, as suggested by @nedtwigg in #3158.

  • Uses prettier-plugin-sh with parser: dockerfile, which also covers names like Dockerfile.dev
  • Scoped targets only (Dockerfile, docker/*.Dockerfile), no **/
  • Tested with spotless-plugin-gradle 8.12.0 and spotless-maven-plugin 3.12.0, prettier 3.6.2 and prettier-plugin-sh 0.20.2
  • Changelog entries in plugin-gradle/CHANGES.md and plugin-maven/CHANGES.md (lib is unaffected)

Known limitation: a comment-only Dockerfile crashes prettier-plugin-sh 0.20.2 (in its bundled dockerfmt WASM). Should the README mention this?

Refs #3158

🤖 Generated with Claude Code

https://claude.ai/code/session_01MTr23wNsqNZj5WuNojoduv

Add a Dockerfile example to the "prettier plugins" sections of the Gradle
and Maven READMEs, using prettier-plugin-sh with explicitly scoped targets.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01MTr23wNsqNZj5WuNojoduv
@Pankraz76
Pankraz76 marked this pull request as ready for review November 23, 2026 08:16
@nedtwigg
nedtwigg merged commit aab4e62 into diffplug:main Nov 24, 2026
18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants