diff --git a/.github/workflows/checkstyle.yml b/.github/workflows/checkstyle.yml new file mode 100644 index 0000000..25a191d --- /dev/null +++ b/.github/workflows/checkstyle.yml @@ -0,0 +1,16 @@ +name: Checkstyle + +on: [push, pull_request] + +jobs: + checkstyle: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Set up JDK + uses: actions/setup-java@v4 + with: + distribution: 'temurin' + java-version: '21' + - name: Run Checkstyle + run: mvn checkstyle:check \ No newline at end of file diff --git a/google_checks.xml b/google_checks.xml new file mode 100644 index 0000000..611fa0a --- /dev/null +++ b/google_checks.xml @@ -0,0 +1,64 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/pom.xml b/pom.xml index 216dda9..36e8863 100644 --- a/pom.xml +++ b/pom.xml @@ -32,10 +32,35 @@ tornado-runtime 1.1.1-dev + + com.google.guava + guava + 31.1-jre + + + org.apache.maven.plugins + maven-checkstyle-plugin + 3.6.0 + + google_checks.xml + UTF-8 + true + false + + + + checkstyle + verify + + check + + + + org.apache.maven.plugins maven-compiler-plugin