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-management.git


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

commit c904c4c23b40200342557f6d9dd7fedd381bf4b3
Author: He-Pin(kerr) <[email protected]>
AuthorDate: Sun Jun 14 23:26:35 2026 +0800

    chore: unify formatter config - standardize aliases, add JDK17 setting 
(#827)
    
    * 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: use checkCodeStyle alias in CI and standardize build.sbt aliases
    
    Motivation:
    CI was only running javafmtCheckAll, missing scalafmt and header checks.
    Build.sbt aliases used non-standard ordering.
    
    Modification:
    - CI: replace javafmtCheckAll with checkCodeStyle
    - build.sbt: standardize checkCodeStyle and applyCodeStyle alias order
    
    Result:
    CI runs full code style check; aliases consistent with other pekko projects.
---
 .github/workflows/unit-tests.yml | 2 +-
 build.sbt                        | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/.github/workflows/unit-tests.yml b/.github/workflows/unit-tests.yml
index 97d9bc39..761a9954 100644
--- a/.github/workflows/unit-tests.yml
+++ b/.github/workflows/unit-tests.yml
@@ -50,7 +50,7 @@ jobs:
           echo -e "$(ip addr show eth0 | grep "inet\b" | awk '{print $2}' | 
cut -d/ -f1)\t$(hostname -f) $(hostname -s)" | sudo tee -a /etc/hosts
 
       - name: Check code formatted
-        run: sbt javafmtCheckAll
+        run: sbt checkCodeStyle
 
       - name: Run tests with Scala ${{ matrix.scalaVersion }} and Java ${{ 
matrix.javaVersion }}
         run: sbt "++${{ matrix.scalaVersion }} test" ${{ matrix.sbtOpts }}
diff --git a/build.sbt b/build.sbt
index c1f29220..ce3a3d15 100644
--- a/build.sbt
+++ b/build.sbt
@@ -377,5 +377,5 @@ def pekkoModule(moduleName: String): Project =
 def pekkoIntTestModule(moduleName: String): Project =
   Project(id = s"integration-test-$moduleName", base = 
file(s"integration-test/$moduleName"))
 
-addCommandAlias("verifyCodeStyle", "scalafmtCheckAll; scalafmtSbtCheck; 
+headerCheckAll; javafmtCheckAll")
+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