Skip to content

Commit 56edf17

Browse files
author
Isaac Brodsky
authored
Automatically format sources (#93)
* formatter pom.xml * use spotify / google-java-style * format
1 parent 5c539e5 commit 56edf17

35 files changed

+3324
-3413
lines changed

.github/workflows/tests.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,10 @@ jobs:
3535
restore-keys: |
3636
${{ runner.os }}-maven-
3737
38+
- name: Format check
39+
if: ${{ matrix.java-version != 8 }}
40+
run: mvn com.spotify.fmt:fmt-maven-plugin:check
41+
3842
- name: Tests
3943
run: mvn "-Dh3.remove.images=true" -B -V clean test
4044

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ file [H3Core.java](./src/main/java/com/uber/h3core/H3Core.java), and support
77
for the Linux x64 and Darwin x64 platforms.
88

99
## [Unreleased]
10+
### Removed
11+
- Removed support for Linux MIPSEL (#92)
1012

1113
## [3.7.2] - 2022-02-07
1214
### Added

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,12 @@ To build the library, run:
7474
mvn package
7575
```
7676

77+
To format source code as required by CI, run:
78+
79+
```sh
80+
mvn com.spotify.fmt:fmt-maven-plugin:format
81+
```
82+
7783
Additional information on how the build process works is available in the [build process documentaiton](docs/library-build.md).
7884

7985
## Building on FreeBSD

pom.xml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,28 @@
137137
</plugins>
138138
</build>
139139
</profile>
140+
<profile>
141+
<activation>
142+
<jdk>[1.9</jdk>
143+
</activation>
144+
<build>
145+
<plugins>
146+
<plugin>
147+
<groupId>com.spotify.fmt</groupId>
148+
<artifactId>fmt-maven-plugin</artifactId>
149+
<version>2.16</version>
150+
<executions>
151+
<execution>
152+
<phase>validate</phase>
153+
<goals>
154+
<goal>format</goal>
155+
</goals>
156+
</execution>
157+
</executions>
158+
</plugin>
159+
</plugins>
160+
</build>
161+
</profile>
140162
</profiles>
141163

142164
<dependencies>

src/main/java/com/uber/h3core/AreaUnit.java

Lines changed: 7 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -15,20 +15,12 @@
1515
*/
1616
package com.uber.h3core;
1717

18-
/**
19-
* Unit of measurement for areas.
20-
*/
18+
/** Unit of measurement for areas. */
2119
public enum AreaUnit {
22-
/**
23-
* Square radians on the WGS84 sphere
24-
*/
25-
rads2,
26-
/**
27-
* Square kilometers
28-
*/
29-
km2,
30-
/**
31-
* Square meters
32-
*/
33-
m2
20+
/** Square radians on the WGS84 sphere */
21+
rads2,
22+
/** Square kilometers */
23+
km2,
24+
/** Square meters */
25+
m2
3426
}

0 commit comments

Comments
 (0)