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:
1 parent
3223083324
commit
c7680aea1f
4 files changed
+94
-12
No files matched your search
@@ -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