Skip to content

Commit

Permalink
fix: addressing reviews
Browse files Browse the repository at this point in the history
  • Loading branch information
vibhatha committed May 29, 2024
1 parent 875e16a commit 6d43ea7
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 24 deletions.
6 changes: 3 additions & 3 deletions docs/source/developers/java/development.rst
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,8 @@ that changes adhere to the style guide.
Automatically fixing code style issues
--------------------------------------

- You can also just check the style without building the project with `mvn spotless:check`.
- The Java code style can be corrected from the command line by using the following commands: `mvn spotless:apply`.
- You can also just check the style without building the project with ``mvn spotless:check``.
- The Java code style can be corrected from the command line by using the following commands: ``mvn spotless:apply``.

.. code-block:: bash
Expand Down Expand Up @@ -164,4 +164,4 @@ Checkstyle will be removed once Spotless is fully integrated.
.. _Spotless: https://github.com/diffplug/spotless
.. _Google Java Style: https://google.github.io/styleguide/javaguide.html
.. _Eclipse: https://github.com/google/google-java-format?tab=readme-ov-file#eclipse
.. _IntelliJ: https://github.com/google/google-java-format?tab=readme-ov-file#intellij-android-studio-and-other-jetbrains-ides
.. _IntelliJ: https://github.com/google/google-java-format?tab=readme-ov-file#intellij-android-studio-and-other-jetbrains-ides
6 changes: 3 additions & 3 deletions java/algorithm/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
<include>pom.xml</include>
</includes>
<licenseHeader>
<file>../spotless/asf-xml.license</file>
<file>../dev/license/asf-xml.license</file>
<delimiter>(&lt;configuration|&lt;project)</delimiter>
</licenseHeader>
</format>
Expand All @@ -78,14 +78,14 @@
<include>**/*.java</include>
</includes>
<licenseHeader>
<file>../spotless/asf-java.license</file>
<file>../dev/license/asf-java.license</file>
<delimiter>package</delimiter>
</licenseHeader>
</format>
</formats>
<java>
<googleJavaFormat>
<version>1.17.0</version>
<version>1.7</version>
<style>GOOGLE</style>
</googleJavaFormat>
</java>
Expand Down
16 changes: 0 additions & 16 deletions java/dev/checkstyle/checkstyle.license

This file was deleted.

File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion java/maven/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@
<version>3.1.0</version>
<configuration>
<configLocation>../dev/checkstyle/checkstyle.xml</configLocation>
<headerLocation>../dev/checkstyle/checkstyle.license</headerLocation>
<headerLocation>../dev/license/asf-java.license</headerLocation>
<suppressionsLocation>../dev/checkstyle/suppressions.xml</suppressionsLocation>
<includeTestSourceDirectory>true</includeTestSourceDirectory>
<inputEncoding>UTF-8</inputEncoding>
Expand Down
2 changes: 1 addition & 1 deletion java/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -730,7 +730,7 @@
<configuration>
<excludes>**/module-info.java</excludes>
<configLocation>dev/checkstyle/checkstyle.xml</configLocation>
<headerLocation>dev/checkstyle/checkstyle.license</headerLocation>
<headerLocation>dev/license/asf-java.license</headerLocation>
<suppressionsLocation>dev/checkstyle/suppressions.xml</suppressionsLocation>
<includeTestSourceDirectory>true</includeTestSourceDirectory>
<inputEncoding>UTF-8</inputEncoding>
Expand Down

0 comments on commit 6d43ea7

Please sign in to comment.