mirror of
https://github.com/apple/pkl.git
synced 2026-04-01 22:53:11 +02:00
Enforce Pkl formatting of stdlib with spotless (#1253)
This adds a spotless formatting step using the new pkl formatter. This only formats Pkl sources in the stdlib, because other sources are possibly test input and not meant to be formatted.
This commit is contained in:
@@ -17,8 +17,8 @@ plugins {
|
||||
pklAllProjects
|
||||
base
|
||||
`maven-publish`
|
||||
id("com.diffplug.spotless")
|
||||
pklPublishLibrary
|
||||
pklSpotlessFormat
|
||||
signing
|
||||
}
|
||||
|
||||
@@ -51,13 +51,3 @@ publishing {
|
||||
}
|
||||
|
||||
signing { sign(publishing.publications["stdlib"]) }
|
||||
|
||||
spotless {
|
||||
format("pkl") {
|
||||
target("*.pkl")
|
||||
licenseHeaderFile(
|
||||
rootProject.file("buildSrc/src/main/resources/license-header.line-comment.txt"),
|
||||
"/// ",
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user