Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
*.bat text eol=crlf
*.ps1 text eol=crlf

*.gradle text eol=lf
*.java text eol=lf
*.md text eol=lf
*.properties text eol=lf
*.sh text eol=lf
*.txt text eol=lf
*.xml text eol=lf
*.yml text eol=lf
36 changes: 18 additions & 18 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
## Summary
<!--
Please explain in reasonable detail what your series of changes does, and how it does it.
Make sure to link any relevant github issues which instigated your changes.
you can safely leave or delete this comment as you fill out this text box.
Please leave the Summary and Testing sub titles.
-->
## Testing
<!--
DO NOT leave this section empty, please add any relevant testing evidence (in game, unit tests, etc)
that show that your changes achieve the desired effect.
you can safely leave or delete this comment as you fill out this text box.
Please leave the Summary and Testing sub titles.
## Summary

<!--
Please explain in reasonable detail what your series of changes does, and how it does it.
Make sure to link any relevant github issues which instigated your changes.

you can safely leave or delete this comment as you fill out this text box.
Please leave the Summary and Testing sub titles.
-->

## Testing

<!--
DO NOT leave this section empty, please add any relevant testing evidence (in game, unit tests, etc)
that show that your changes achieve the desired effect.

you can safely leave or delete this comment as you fill out this text box.
Please leave the Summary and Testing sub titles.
-->
82 changes: 41 additions & 41 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,41 +1,41 @@
name: CI
on: [ push, pull_request ]
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- uses: actions/setup-java@b6effb05e454b25005698d916606bdc6ffcbf961 # v5.7.0
with:
# should be kept in sync with [https://github.com/runelite/runelite/blob/master/.github/workflows/CI.yml]
java-version: '11' # runelite currently targets JDK v11
distribution: 'temurin'
- name: Setup Gradle
uses: gradle/actions/setup-gradle@9c971963bec38e04b3d30dcc455b5382be2fdbfb # v6.3.0
- name: Compile
run: ./gradlew compileJava
- name: Compile Tests
run: ./gradlew compileTestJava
- name: Lint & Formatting
run: ./gradlew checkstyleMain checkstyleTest
- name: Run Tests
run: ./gradlew test
- name: Run Pre-PluginHub-Checks
run: |
longestLine=$(cat build.gradle | wc -L)
if (( longestLine > 120 )); then
echo "Malformed gradle - longest line: ${longestLine}"
exit 1
fi
name: CI

on: [ push, pull_request ]

jobs:
build:
runs-on: ubuntu-latest

permissions:
contents: read

steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- uses: actions/setup-java@b6effb05e454b25005698d916606bdc6ffcbf961 # v5.7.0
with:
# should be kept in sync with [https://github.com/runelite/runelite/blob/master/.github/workflows/CI.yml]
java-version: '11' # runelite currently targets JDK v11
distribution: 'temurin'

- name: Setup Gradle
uses: gradle/actions/setup-gradle@9c971963bec38e04b3d30dcc455b5382be2fdbfb # v6.3.0

- name: Compile
run: ./gradlew compileJava

- name: Compile Tests
run: ./gradlew compileTestJava

- name: Lint & Formatting
run: ./gradlew checkstyleMain checkstyleTest

- name: Run Tests
run: ./gradlew test

- name: Run Pre-PluginHub-Checks
run: |
longestLine=$(cat build.gradle | wc -L)
if (( longestLine > 120 )); then
echo "Malformed gradle - longest line: ${longestLine}"
exit 1
fi
78 changes: 39 additions & 39 deletions config/checkstyle/checkstyle.xml
Original file line number Diff line number Diff line change
@@ -1,39 +1,39 @@
<!DOCTYPE module PUBLIC
"-//Puppy Crawl//DTD Check Configuration 1.3//EN"
"http://www.puppycrawl.com/dtds/configuration_1_3.dtd">
<module name="Checker">
<property name="fileExtensions" value="java, properties, xml"/>
<!-- Excludes all 'module-info.java' files -->
<!-- See https://checkstyle.org/filefilters/index.html -->
<module name="BeforeExecutionExclusionFileFilter">
<property name="fileNamePattern" value="module\-info\.java$"/>
</module>
<module name="FileTabCharacter"/>
<module name="TreeWalker">
<module name="ArrayTrailingComma"/>
<module name="AvoidNestedBlocks"/>
<module name="AvoidStarImport"/>
<module name="ConstantName"/>
<module name="DefaultComesLast"/>
<module name="EmptyBlock"/>
<module name="FallThrough"/>
<module name="ImportOrder">
<property name="option" value="top"/>
<property name="ordered" value="true"/>
<property name="separated" value="false"/>
<property name="separatedStaticGroups" value="true"/>
<property name="sortStaticImportsAlphabetically" value="true"/>
</module>
<module name="InnerTypeLast"/>
<module name="LeftCurly">
<property name="option" value="nl"/>
<property name="tokens" value="ANNOTATION_DEF, CLASS_DEF, CTOR_DEF, ENUM_CONSTANT_DEF, ENUM_DEF, INTERFACE_DEF, LAMBDA, LITERAL_CASE, LITERAL_CATCH, LITERAL_DEFAULT, LITERAL_DO, LITERAL_ELSE, LITERAL_FINALLY, LITERAL_FOR, LITERAL_IF, LITERAL_SWITCH, LITERAL_SYNCHRONIZED, LITERAL_TRY, LITERAL_WHILE, METHOD_DEF, OBJBLOCK, STATIC_INIT, RECORD_DEF, COMPACT_CTOR_DEF"/>
</module>
<module name="OneTopLevelClass"/>
<module name="OuterTypeFilename"/>
<module name="RedundantImport"/>
<module name="UnusedImports"/>
</module>
</module>
<!DOCTYPE module PUBLIC
"-//Puppy Crawl//DTD Check Configuration 1.3//EN"
"http://www.puppycrawl.com/dtds/configuration_1_3.dtd">
<module name="Checker">
<property name="fileExtensions" value="java, properties, xml"/>
<!-- Excludes all 'module-info.java' files -->
<!-- See https://checkstyle.org/filefilters/index.html -->
<module name="BeforeExecutionExclusionFileFilter">
<property name="fileNamePattern" value="module\-info\.java$"/>
</module>

<module name="FileTabCharacter"/>

<module name="TreeWalker">
<module name="ArrayTrailingComma"/>
<module name="AvoidNestedBlocks"/>
<module name="AvoidStarImport"/>
<module name="ConstantName"/>
<module name="DefaultComesLast"/>
<module name="EmptyBlock"/>
<module name="FallThrough"/>
<module name="ImportOrder">
<property name="option" value="top"/>
<property name="ordered" value="true"/>
<property name="separated" value="false"/>
<property name="separatedStaticGroups" value="true"/>
<property name="sortStaticImportsAlphabetically" value="true"/>
</module>
<module name="InnerTypeLast"/>
<module name="LeftCurly">
<property name="option" value="nl"/>
<property name="tokens" value="ANNOTATION_DEF, CLASS_DEF, CTOR_DEF, ENUM_CONSTANT_DEF, ENUM_DEF, INTERFACE_DEF, LAMBDA, LITERAL_CASE, LITERAL_CATCH, LITERAL_DEFAULT, LITERAL_DO, LITERAL_ELSE, LITERAL_FINALLY, LITERAL_FOR, LITERAL_IF, LITERAL_SWITCH, LITERAL_SYNCHRONIZED, LITERAL_TRY, LITERAL_WHILE, METHOD_DEF, OBJBLOCK, STATIC_INIT, RECORD_DEF, COMPACT_CTOR_DEF"/>
</module>
<module name="OneTopLevelClass"/>
<module name="OuterTypeFilename"/>
<module name="RedundantImport"/>
<module name="UnusedImports"/>
</module>
</module>
178 changes: 89 additions & 89 deletions gradlew.bat

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading