Skip to content

Commit 4fdc5de

Browse files
authored
Merge branch 'dev/feature' into feature/multiline-function-args
2 parents 20c76aa + d731208 commit 4fdc5de

File tree

460 files changed

+14529
-6507
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

460 files changed

+14529
-6507
lines changed

.gitattributes

Lines changed: 47 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -1,53 +1,51 @@
1-
# .gitattributes snippet to force users to use same line endings for project.
2-
#
3-
# Handle line endings automatically for files detected as text
4-
# and leave all files detected as binary untouched.
5-
* text eol=lf
1+
# Handle line endings automatically for files detected as text
2+
# and leave all files detected as binary untouched.
3+
* text eol=lf
64

7-
#
8-
# The above will handle all files NOT found below
9-
# https://help.github.com/articles/dealing-with-line-endings/
10-
# https://github.com/Danimoth/gitattributes/blob/master/Web.gitattributes
5+
# The above will handle all files NOT found below
6+
# https://help.github.com/articles/dealing-with-line-endings/
7+
# https://github.com/Danimoth/gitattributes/blob/master/Web.gitattributes
118

9+
# These files are text and should be normalized (Convert crlf => lf)
10+
*.php text
11+
*.css text
12+
*.js text
13+
*.json text
14+
*.htm text
15+
*.html text
16+
*.xml text
17+
*.txt text
18+
*.ini text
19+
*.inc text
20+
*.pl text
21+
*.rb text
22+
*.py text
23+
*.scm text
24+
*.sql text
25+
*.htaccess text
26+
*.sh text
27+
*.java text
1228

29+
# These files are Windows-specific and should retain crlf
30+
*.bat text eol=crlf
1331

14-
# These files are text and should be normalized (Convert crlf => lf)
15-
*.php text
16-
*.css text
17-
*.js text
18-
*.json text
19-
*.htm text
20-
*.html text
21-
*.xml text
22-
*.txt text
23-
*.ini text
24-
*.inc text
25-
*.pl text
26-
*.rb text
27-
*.py text
28-
*.scm text
29-
*.sql text
30-
.htaccess text
31-
*.sh text
32-
*.java text
33-
34-
# These files are binary and should be left untouched
35-
# (binary is a macro for -text -diff)
36-
*.png binary
37-
*.jpg binary
38-
*.jpeg binary
39-
*.gif binary
40-
*.ico binary
41-
*.mov binary
42-
*.mp4 binary
43-
*.mp3 binary
44-
*.flv binary
45-
*.fla binary
46-
*.swf binary
47-
*.gz binary
48-
*.zip binary
49-
*.7z binary
50-
*.ttf binary
51-
*.pyc binary
52-
*.jar binary
53-
*.class binary
32+
# These files are binary and should be left untouched
33+
# (binary is a macro for -text -diff)
34+
*.png binary
35+
*.jpg binary
36+
*.jpeg binary
37+
*.gif binary
38+
*.ico binary
39+
*.mov binary
40+
*.mp4 binary
41+
*.mp3 binary
42+
*.flv binary
43+
*.fla binary
44+
*.swf binary
45+
*.gz binary
46+
*.zip binary
47+
*.7z binary
48+
*.ttf binary
49+
*.pyc binary
50+
*.jar binary
51+
*.class binary

.github/workflows/archive-docs.yml

Lines changed: 36 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -2,43 +2,43 @@ name: Archive documentation
22

33
on:
44
release:
5-
types: [published]
5+
types: [ published ]
66
workflow_dispatch:
77

88
jobs:
99
archive-docs:
10-
if: "! contains(toJSON(github.event.commits.*.message), '[ci skip]')"
11-
runs-on: ubuntu-latest
12-
steps:
13-
- name: Configure workflow
14-
id: configuration
15-
run: |
16-
echo "BRANCH_NAME=${GITHUB_REF#refs/*/}" >> $GITHUB_OUTPUT
17-
echo "DOCS_OUTPUT_DIR=${GITHUB_WORKSPACE}/skript-docs/docs/archives/${GITHUB_REF#refs/tags/}" >> $GITHUB_OUTPUT
18-
echo "DOCS_REPO_DIR=${GITHUB_WORKSPACE}/skript-docs" >> $GITHUB_OUTPUT
19-
echo "SKRIPT_REPO_DIR=${GITHUB_WORKSPACE}/skript" >> $GITHUB_OUTPUT
20-
- name: Checkout Skript
21-
uses: actions/checkout@v6
22-
with:
23-
submodules: recursive
24-
path: skript
25-
- name: Setup documentation environment
26-
uses: ./skript/.github/workflows/docs/setup-docs
27-
with:
28-
docs_deploy_key: ${{ secrets.DOCS_DEPLOY_KEY }}
29-
docs_output_dir: ${{ steps.configuration.outputs.DOCS_OUTPUT_DIR }}
30-
- name: Generate documentation
31-
uses: ./skript/.github/workflows/docs/generate-docs
32-
with:
33-
docs_output_dir: ${{ steps.configuration.outputs.DOCS_OUTPUT_DIR }}
34-
docs_repo_dir: ${{ steps.configuration.outputs.DOCS_REPO_DIR }}
35-
skript_repo_dir: ${{ steps.configuration.outputs.SKRIPT_REPO_DIR }}
36-
is_release: true
37-
generate_javadocs: true
38-
- name: Push archive documentation
39-
uses: ./skript/.github/workflows/docs/push-docs
40-
with:
41-
docs_repo_dir: ${{ steps.configuration.outputs.DOCS_REPO_DIR }}
42-
git_name: Archive Docs Bot
43-
git_email: archivedocs@skriptlang.org
44-
git_commit_message: "Update ${{ steps.configuration.outputs.BRANCH_NAME }} archive docs"
10+
if: "! contains(toJSON(github.event.commits.*.message), '[ci skip]')"
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Configure workflow
14+
id: configuration
15+
run: |
16+
echo "BRANCH_NAME=${GITHUB_REF#refs/*/}" >> $GITHUB_OUTPUT
17+
echo "DOCS_OUTPUT_DIR=${GITHUB_WORKSPACE}/skript-docs/docs/archives/${GITHUB_REF#refs/tags/}" >> $GITHUB_OUTPUT
18+
echo "DOCS_REPO_DIR=${GITHUB_WORKSPACE}/skript-docs" >> $GITHUB_OUTPUT
19+
echo "SKRIPT_REPO_DIR=${GITHUB_WORKSPACE}/skript" >> $GITHUB_OUTPUT
20+
- name: Checkout Skript
21+
uses: actions/checkout@v6
22+
with:
23+
submodules: recursive
24+
path: skript
25+
- name: Setup documentation environment
26+
uses: ./skript/.github/workflows/docs/setup-docs
27+
with:
28+
docs_repo: "SkriptLang/skript-docs"
29+
docs_token: ${{ secrets.DOCS_TOKEN }}
30+
- name: Generate documentation
31+
uses: ./skript/.github/workflows/docs/generate-docs
32+
with:
33+
docs_output_dir: ${{ steps.configuration.outputs.DOCS_OUTPUT_DIR }}
34+
docs_repo_dir: ${{ steps.configuration.outputs.DOCS_REPO_DIR }}
35+
skript_repo_dir: ${{ steps.configuration.outputs.SKRIPT_REPO_DIR }}
36+
is_release: true
37+
generate_javadocs: true
38+
- name: Push archive documentation
39+
uses: ./skript/.github/workflows/docs/push-docs
40+
with:
41+
docs_repo_dir: ${{ steps.configuration.outputs.DOCS_REPO_DIR }}
42+
git_name: Archive Docs Bot
43+
git_email: archivedocs@skriptlang.org
44+
git_commit_message: "Update ${{ steps.configuration.outputs.BRANCH_NAME }} archive docs"

.github/workflows/checkstyle.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
with:
1717
submodules: recursive
1818
- name: validate gradle wrapper
19-
uses: gradle/actions/wrapper-validation@v5
19+
uses: gradle/actions/wrapper-validation@v6
2020
- name: Set up JDK 21
2121
uses: actions/setup-java@v5
2222
with:

.github/workflows/cleanup-docs.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,14 @@ jobs:
1717
- name: Checkout Skript
1818
uses: actions/checkout@v6
1919
with:
20-
ref: ${{ github.event.repository.default_branch }}
21-
submodules: recursive
22-
path: skript
20+
ref: ${{ github.event.repository.default_branch }}
21+
submodules: recursive
22+
path: skript
2323
- name: Setup documentation environment
2424
uses: ./skript/.github/workflows/docs/setup-docs
2525
with:
26-
docs_deploy_key: ${{ secrets.DOCS_DEPLOY_KEY }}
27-
docs_output_dir: ${{ steps.configuration.outputs.DOCS_OUTPUT_DIR }}
26+
docs_repo: "SkriptLang/skript-docs"
27+
docs_token: ${{ secrets.DOCS_TOKEN }}
2828
- name: Cleanup nightly documentation
2929
env:
3030
DOCS_OUTPUT_DIR: ${{ steps.configuration.outputs.DOCS_OUTPUT_DIR }}
@@ -33,7 +33,7 @@ jobs:
3333
- name: Push nightly documentation cleanup
3434
uses: ./skript/.github/workflows/docs/push-docs
3535
with:
36-
docs_repo_dir: ${{ steps.configuration.outputs.DOCS_REPO_DIR }}
37-
git_name: Nightly Docs Bot
38-
git_email: nightlydocs@skriptlang.org
39-
git_commit_message: "Delete ${{ steps.configuration.outputs.BRANCH_NAME }} branch nightly docs"
36+
docs_repo_dir: ${{ steps.configuration.outputs.DOCS_REPO_DIR }}
37+
git_name: Nightly Docs Bot
38+
git_email: nightlydocs@skriptlang.org
39+
git_commit_message: "Delete ${{ steps.configuration.outputs.BRANCH_NAME }} branch nightly docs"

.github/workflows/java-21-builds.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
with:
2929
submodules: recursive
3030
- name: validate gradle wrapper
31-
uses: gradle/actions/wrapper-validation@v5
31+
uses: gradle/actions/wrapper-validation@v6
3232
- name: Set up JDK 21
3333
uses: actions/setup-java@v5
3434
with:

.github/workflows/junit-21-builds.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
with:
2929
submodules: recursive
3030
- name: validate gradle wrapper
31-
uses: gradle/actions/wrapper-validation@v5
31+
uses: gradle/actions/wrapper-validation@v6
3232
- name: Set up JDK 21
3333
uses: actions/setup-java@v5
3434
with:

.github/workflows/repo.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
with:
1313
submodules: recursive
1414
- name: validate gradle wrapper
15-
uses: gradle/actions/wrapper-validation@v5
15+
uses: gradle/actions/wrapper-validation@v6
1616
- name: Set up JDK 21
1717
uses: actions/setup-java@v5
1818
with:

.github/workflows/update-gradle-wrapper.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
sed -i "s|^distributionUrl=.*$|distributionUrl=${LATEST_GRADLE_DOWNLOAD_URL}|" gradle/wrapper/gradle-wrapper.properties
3535
./gradlew wrapper --gradle-version ${LATEST_GRADLE_VERSION}
3636
- name: Validate gradle wrapper
37-
uses: gradle/actions/wrapper-validation@v5
37+
uses: gradle/actions/wrapper-validation@v6
3838
- name: Build Skript and run test scripts
3939
run: ./gradlew clean quickTest
4040
- name: Commit and push changes

build.gradle

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import org.apache.tools.ant.filters.ReplaceTokens
44
import java.time.LocalTime
55

66
plugins {
7-
id 'com.gradleup.shadow' version '9.2.2'
7+
id 'com.gradleup.shadow' version '9.4.1'
88
id 'maven-publish'
99
id 'java'
1010
id 'checkstyle'
@@ -27,7 +27,6 @@ allprojects {
2727
dependencies {
2828
shadow group: 'io.papermc', name: 'paperlib', version: '1.0.8'
2929
shadow group: 'org.bstats', name: 'bstats-bukkit', version: '3.1.0'
30-
shadow group: 'net.kyori', name: 'adventure-text-serializer-bungeecord', version: '4.4.1'
3130

3231
implementation group: 'io.papermc.paper', name: 'paper-api', version: '1.21.11-R0.1-SNAPSHOT'
3332
implementation group: 'com.google.code.findbugs', name: 'findbugs', version: '3.0.1'
@@ -105,7 +104,6 @@ tasks.withType(ShadowJar).configureEach {
105104
include(dependency('io.papermc:paperlib'))
106105
include(dependency('org.bstats:bstats-bukkit'))
107106
include(dependency('org.bstats:bstats-base'))
108-
include(dependency('net.kyori:adventure-text-serializer-bungeecord'))
109107
}
110108
relocate 'io.papermc.lib', 'ch.njol.skript.paperlib'
111109
relocate 'org.bstats', 'ch.njol.skript.bstats'

code-conventions.md

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,25 @@ but this is not strictly required:
141141
String string = "example string " +
142142
"with more to add";
143143
```
144-
144+
145+
#### Module Organization
146+
147+
When creating modules, they should be organized in the following manner:
148+
```text
149+
module
150+
|- elements
151+
| |- expressions
152+
| | |- ExprX.java
153+
| |- effects
154+
| | |- EffY.java
155+
|- submodule
156+
| |- elements
157+
| |- Submodule.java
158+
|- Module.java
159+
```
160+
161+
#### Syntax Class Organization
162+
145163
* When extending one of following classes: SimpleExpression, SimplePropertyExpression, Effect, Condition...
146164
- Put overridden methods in order
147165
- Put static registration before all methods
@@ -153,7 +171,6 @@ but this is not strictly required:
153171
- Section: init -> walk -> toString
154172
- Structure: init -> (preLoad) -> load -> (postLoad) -> unload -> (postUnload) -> (getPriority) -> toString
155173
156-
157174
### Naming
158175
* Class names are written in `UpperCamelCase`
159176
- The file name should match its primary class name (e.g. `MyClass` goes in `MyClass.java`.)

0 commit comments

Comments
 (0)