Skip to content

Commit 66b9670

Browse files
authored
Adapt_Linter, Remove Travis CI, Update Tests and Readme (#46)
* Try to disable linting of changes * Remove Slack reporting * Try to reactivate escape comments * Try to reactivate escape comments * Try to reactivate escape comments * Deactivate Line Length test * Update sun_checks.xml * Update README.md * Remove Travis Traces
1 parent 5ace488 commit 66b9670

File tree

8 files changed

+8
-97
lines changed

8 files changed

+8
-97
lines changed

.github/linters/sun_checks.xml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -71,10 +71,10 @@
7171
<!-- Checks for Size Violations. -->
7272
<!-- See https://checkstyle.org/config_sizes.html -->
7373
<module name="FileLength"/>
74-
<module name="LineLength">
74+
<!--module name="LineLength">
7575
<property name="fileExtensions" value="java"/>
7676
<property name="max" value="120"/>
77-
</module>
77+
</module> -->
7878

7979
<!-- Checks for whitespace -->
8080
<!-- See https://checkstyle.org/config_whitespace.html -->
@@ -205,7 +205,6 @@
205205
<property name="optional" value="true"/>
206206
</module>
207207
<module name="SuppressionCommentFilter"/>
208-
209-
</module>
208+
</module>
210209

211210
</module>

.github/workflows/lintChanges.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ jobs:
2121
uses: github/super-linter@v3
2222
env:
2323
VALIDATE_ALL_CODEBASE: true # lint all files
24+
FILTER_REGEX_EXCLUDE: /src/test/*
2425
VALIDATE_JAVA: true # only lint Java files
2526
DEFAULT_BRANCH: master
2627
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Enables better overview of runs

.github/workflows/tests.yml

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -33,16 +33,4 @@ jobs:
3333
- name: Build with Gradle
3434
run: ./gradlew assemble
3535
- name: Run Tests
36-
run: ./gradlew check
37-
38-
slack-on-failure:
39-
needs: [Java]
40-
if: failure() && github.ref == 'refs/heads/master'
41-
runs-on: ubuntu-latest
42-
43-
steps:
44-
- uses: 8398a7/action-slack@v3
45-
with:
46-
status: failure
47-
env:
48-
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
36+
run: ./gradlew check

.travis.yml

Lines changed: 0 additions & 24 deletions
This file was deleted.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# tus-java-client [![Build Status](https://travis-ci.org/tus/tus-java-client.svg?branch=master)](https://travis-ci.org/tus/tus-java-client)
1+
# tus-java-client [![Tests](https://github.com/tus/tus-java-client/actions/workflows/tests.yml/badge.svg?branch=master)](https://github.com/tus/tus-java-client/actions/workflows/tests.yml)
22

33
> **tus** is a protocol based on HTTP for *resumable file uploads*. Resumable
44
> means that an upload can be interrupted at any moment and can be resumed without

deploy-bintray.sh

Lines changed: 0 additions & 32 deletions
This file was deleted.

deploy-gh-pages.sh

Lines changed: 0 additions & 22 deletions
This file was deleted.

src/main/java/io/tus/java/client/TusClient.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -319,8 +319,9 @@ public TusUploader resumeOrCreateUpload(@NotNull TusUpload upload) throws Protoc
319319
public void prepareConnection(@NotNull HttpURLConnection connection) {
320320
// Only follow redirects, if the POST methods is preserved. If http.strictPostRedirect is
321321
// disabled, a POST request will be transformed into a GET request which is not wanted by us.
322+
322323
// CHECKSTYLE:OFF
323-
// Necessary because of length of the link
324+
// LineLength - Necessary because of length of the link
324325
// See:https://github.com/openjdk/jdk/blob/jdk7-b43/jdk/src/share/classes/sun/net/www/protocol/http/HttpURLConnection.java#L2020-L2035
325326
// CHECKSTYLE:ON
326327
connection.setInstanceFollowRedirects(Boolean.getBoolean("http.strictPostRedirect"));

0 commit comments

Comments
 (0)