This is an automated email from the ASF dual-hosted git repository.

He-Pin pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/pekko-projection.git


The following commit(s) were added to refs/heads/main by this push:
     new a245cc09 chore: unify formatter config - standardize aliases, add 
JDK17 setting (#520)
a245cc09 is described below

commit a245cc09c840afc5be8039ddf9a11e0240220629
Author: He-Pin(kerr) <[email protected]>
AuthorDate: Sun Jun 14 21:46:54 2026 +0800

    chore: unify formatter config - standardize aliases, add JDK17 setting 
(#520)
    
    * chore: unify formatter config across pekko sub-projects
    
    Motivation:
    Align formatter plugins, command aliases, and JDK settings with other
    pekko sub-projects to reduce maintenance burden.
    
    Modification:
    - Standardize checkCodeStyle/applyCodeStyle command aliases
    - Add ThisBuild / javafmtFormatterCompatibleJavaVersion := 17 where missing
    - Replace custom verifyCodeFmt tasks with standard aliases where applicable
    - Upgrade sbt-java-formatter plugin where needed
    
    Result:
    Consistent formatter configuration across all pekko sub-projects.
    
    Tests:
    Not run - build config change only
    
    References:
    None - formatter unification across pekko sub-projects
    
    * fix: update CI workflow to use checkCodeStyle alias
    
    Motivation:
    CI was calling the removed verifyCodeStyle command.
    
    Modification:
    Replace verifyCodeStyle with checkCodeStyle in checks.yml.
    
    Result:
    CI code style check works with the unified alias.
    
    Tests:
    Not run - CI config change only
    
    References:
    None
---
 .github/workflows/checks.yml |  2 +-
 build.sbt                    | 10 ++--------
 2 files changed, 3 insertions(+), 9 deletions(-)

diff --git a/.github/workflows/checks.yml b/.github/workflows/checks.yml
index 3c5826a4..9e19a75f 100644
--- a/.github/workflows/checks.yml
+++ b/.github/workflows/checks.yml
@@ -46,7 +46,7 @@ jobs:
         uses: coursier/cache-action@95e5b1029b6b86e7bac033ee44a0697d8a527d2d # 
v8.1.1
 
       - name: Code style check and binary-compatibility check
-        run: sbt "verifyCodeStyle; mimaReportBinaryIssues"
+        run: sbt "checkCodeStyle; mimaReportBinaryIssues"
 
   check-code-compilation:
     name: Check Code Compilation
diff --git a/build.sbt b/build.sbt
index a6b1aea1..5a77d791 100644
--- a/build.sbt
+++ b/build.sbt
@@ -351,11 +351,5 @@ lazy val root = Project(id = "projection", base = 
file("."))
   .disablePlugins(SitePlugin, MimaPlugin)
 
 // check format and headers
-TaskKey[Unit]("verifyCodeFmt") := {
-  
javafmtCheckAll.all(ScopeFilter(inAnyProject)).result.value.toEither.left.foreach
 { _ =>
-    throw new MessageOnlyException(
-      "Unformatted Java code found. Please run 'javafmtAll' and commit the 
reformatted code")
-  }
-}
-
-addCommandAlias("verifyCodeStyle", "headerCheckAll; verifyCodeFmt")
+addCommandAlias("checkCodeStyle", "scalafmtCheckAll; scalafmtSbtCheck; 
javafmtCheckAll; +headerCheckAll")
+addCommandAlias("applyCodeStyle", "+headerCreateAll; scalafmtAll; scalafmtSbt; 
javafmtAll")


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to