generated from LiteLDev/liteloaderbds-plugin-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from killcerr/LeviLaminaTest
update
- Loading branch information
Showing
25 changed files
with
1,334 additions
and
428 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
BasedOnStyle: LLVM | ||
AccessModifierOffset: -4 | ||
AlignAfterOpenBracket: BlockIndent | ||
AlignArrayOfStructures: Left | ||
AlignConsecutiveDeclarations: | ||
Enabled: true | ||
AcrossEmptyLines: false | ||
AcrossComments: false | ||
AlignConsecutiveAssignments: | ||
Enabled: true | ||
AcrossEmptyLines: false | ||
AcrossComments: false | ||
AlignCompound: true | ||
PadOperators: true | ||
AlignConsecutiveMacros: | ||
Enabled: true | ||
AcrossEmptyLines: false | ||
AcrossComments: false | ||
AllowAllParametersOfDeclarationOnNextLine: false | ||
AllowAllArgumentsOnNextLine: false | ||
AlignOperands: AlignAfterOperator | ||
AlignConsecutiveBitFields: | ||
Enabled: true | ||
AcrossEmptyLines: false | ||
AcrossComments: false | ||
AllowShortLambdasOnASingleLine: All | ||
AllowShortBlocksOnASingleLine: Empty | ||
AllowShortIfStatementsOnASingleLine: AllIfsAndElse | ||
AllowShortLoopsOnASingleLine: true | ||
AlwaysBreakAfterDefinitionReturnType: None | ||
AlwaysBreakTemplateDeclarations: 'Yes' | ||
BinPackArguments: false | ||
BinPackParameters: false | ||
BreakBeforeBraces: Custom | ||
BreakBeforeBinaryOperators: NonAssignment | ||
ColumnLimit: 120 | ||
CommentPragmas: '^ IWYU pragma:' | ||
ConstructorInitializerIndentWidth: 0 | ||
IndentWidth: 4 | ||
Language: Cpp | ||
MaxEmptyLinesToKeep: 2 | ||
PackConstructorInitializers: CurrentLine | ||
PointerAlignment: Left | ||
TabWidth: 4 | ||
UseTab: Never | ||
SortIncludes: CaseSensitive | ||
IncludeBlocks: Regroup |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,145 @@ | ||
# Generated from CLion Inspection settings | ||
--- | ||
Checks: '-*, | ||
bugprone-argument-comment, | ||
bugprone-assert-side-effect, | ||
bugprone-bad-signal-to-kill-thread, | ||
bugprone-branch-clone, | ||
bugprone-copy-constructor-init, | ||
bugprone-dangling-handle, | ||
bugprone-dynamic-static-initializers, | ||
bugprone-fold-init-type, | ||
bugprone-forward-declaration-namespace, | ||
bugprone-forwarding-reference-overload, | ||
bugprone-inaccurate-erase, | ||
bugprone-incorrect-roundings, | ||
bugprone-integer-division, | ||
bugprone-lambda-function-name, | ||
bugprone-macro-parentheses, | ||
bugprone-macro-repeated-side-effects, | ||
bugprone-misplaced-operator-in-strlen-in-alloc, | ||
bugprone-misplaced-pointer-arithmetic-in-alloc, | ||
bugprone-misplaced-widening-cast, | ||
bugprone-move-forwarding-reference, | ||
bugprone-multiple-statement-macro, | ||
bugprone-no-escape, | ||
bugprone-not-null-terminated-result, | ||
bugprone-parent-virtual-call, | ||
bugprone-posix-return, | ||
bugprone-reserved-identifier, | ||
bugprone-sizeof-container, | ||
bugprone-sizeof-expression, | ||
bugprone-spuriously-wake-up-functions, | ||
bugprone-string-constructor, | ||
bugprone-string-integer-assignment, | ||
bugprone-string-literal-with-embedded-nul, | ||
bugprone-suspicious-enum-usage, | ||
bugprone-suspicious-include, | ||
bugprone-suspicious-memory-comparison, | ||
bugprone-suspicious-memset-usage, | ||
bugprone-suspicious-missing-comma, | ||
bugprone-suspicious-semicolon, | ||
bugprone-suspicious-string-compare, | ||
bugprone-swapped-arguments, | ||
bugprone-terminating-continue, | ||
bugprone-throw-keyword-missing, | ||
bugprone-too-small-loop-variable, | ||
bugprone-undefined-memory-manipulation, | ||
bugprone-undelegated-constructor, | ||
bugprone-unhandled-self-assignment, | ||
bugprone-unused-raii, | ||
bugprone-unused-return-value, | ||
bugprone-use-after-move, | ||
bugprone-virtual-near-miss, | ||
cert-dcl21-cpp, | ||
cert-dcl58-cpp, | ||
cert-err34-c, | ||
cert-err52-cpp, | ||
cert-err60-cpp, | ||
cert-flp30-c, | ||
cert-msc50-cpp, | ||
cert-msc51-cpp, | ||
cert-str34-c, | ||
cppcoreguidelines-interfaces-global-init, | ||
cppcoreguidelines-narrowing-conversions, | ||
cppcoreguidelines-pro-type-member-init, | ||
cppcoreguidelines-slicing, | ||
google-default-arguments, | ||
google-explicit-constructor, | ||
google-runtime-operator, | ||
hicpp-exception-baseclass, | ||
hicpp-multiway-paths-covered, | ||
misc-misplaced-const, | ||
misc-new-delete-overloads, | ||
misc-non-copyable-objects, | ||
misc-throw-by-value-catch-by-reference, | ||
misc-unconventional-assign-operator, | ||
misc-uniqueptr-reset-release, | ||
modernize-avoid-bind, | ||
modernize-concat-nested-namespaces, | ||
modernize-deprecated-headers, | ||
modernize-deprecated-ios-base-aliases, | ||
modernize-loop-convert, | ||
modernize-make-shared, | ||
modernize-make-unique, | ||
modernize-pass-by-value, | ||
modernize-raw-string-literal, | ||
modernize-redundant-void-arg, | ||
modernize-replace-auto-ptr, | ||
modernize-replace-disallow-copy-and-assign-macro, | ||
modernize-replace-random-shuffle, | ||
modernize-return-braced-init-list, | ||
modernize-shrink-to-fit, | ||
modernize-unary-static-assert, | ||
modernize-use-auto, | ||
modernize-use-bool-literals, | ||
modernize-use-emplace, | ||
modernize-use-equals-default, | ||
modernize-use-equals-delete, | ||
modernize-use-nodiscard, | ||
modernize-use-noexcept, | ||
modernize-use-nullptr, | ||
modernize-use-override, | ||
modernize-use-transparent-functors, | ||
modernize-use-uncaught-exceptions, | ||
mpi-buffer-deref, | ||
mpi-type-mismatch, | ||
openmp-use-default-none, | ||
performance-faster-string-find, | ||
performance-for-range-copy, | ||
performance-implicit-conversion-in-loop, | ||
performance-inefficient-algorithm, | ||
performance-inefficient-string-concatenation, | ||
performance-inefficient-vector-operation, | ||
performance-move-const-arg, | ||
performance-move-constructor-init, | ||
performance-no-automatic-move, | ||
performance-noexcept-move-constructor, | ||
performance-trivially-destructible, | ||
performance-type-promotion-in-math-fn, | ||
performance-unnecessary-copy-initialization, | ||
performance-unnecessary-value-param, | ||
portability-simd-intrinsics, | ||
readability-avoid-const-params-in-decls, | ||
readability-const-return-type, | ||
readability-container-size-empty, | ||
readability-convert-member-functions-to-static, | ||
readability-delete-null-pointer, | ||
readability-deleted-default, | ||
readability-inconsistent-declaration-parameter-name, | ||
readability-make-member-function-const, | ||
readability-misleading-indentation, | ||
readability-misplaced-array-index, | ||
readability-non-const-parameter, | ||
readability-redundant-control-flow, | ||
readability-redundant-declaration, | ||
readability-redundant-function-ptr-dereference, | ||
readability-redundant-smartptr-get, | ||
readability-redundant-string-cstr, | ||
readability-redundant-string-init, | ||
readability-simplify-subscript-expr, | ||
readability-static-accessed-through-instance, | ||
readability-static-definition-in-anonymous-namespace, | ||
readability-string-compare, | ||
readability-uniqueptr-delete-release, | ||
readability-use-anyofallof' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
Diagnostics: | ||
Suppress: | ||
- "-Wmicrosoft-enum-forward-reference" | ||
- "-Wc++11-narrowing" | ||
- "-Wc++2b-extensions" | ||
- "-Wmicrosoft-cast" | ||
CompileFlags: | ||
Add: | ||
- "-ferror-limit=0" | ||
- '-D__FUNCTION__="dummy"' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
name: Bug Report | ||
description: Create a report to help us improve | ||
title: "[Bug]: " | ||
labels: ["bug"] | ||
body: | ||
- type: textarea | ||
attributes: | ||
label: Describe the bug | ||
description: A clear and concise description of what the bug is. | ||
validations: | ||
required: true | ||
|
||
- type: textarea | ||
attributes: | ||
label: To Reproduce | ||
description: Steps to reproduce the behavior. | ||
validations: | ||
required: true | ||
|
||
- type: textarea | ||
attributes: | ||
label: Expected behavior | ||
description: A clear and concise description of what you expected to happen. | ||
validations: | ||
required: true | ||
|
||
- type: textarea | ||
attributes: | ||
label: Screenshots | ||
description: If applicable, add screenshots to help explain your problem. | ||
|
||
- type: input | ||
attributes: | ||
label: Platform | ||
description: The platform you are using. (e.g. Windows 10) | ||
|
||
- type: input | ||
attributes: | ||
label: BDS Version | ||
description: The version of BDS you are using. (e.g. 1.20.32.1) | ||
|
||
- type: input | ||
attributes: | ||
label: LeviLamina Version | ||
description: The version of LeviLamina you are using. (e.g. 1.0.0) | ||
|
||
- type: input | ||
attributes: | ||
label: Version | ||
description: The version of the plugin you are using. (e.g. 1.0.0) | ||
|
||
- type: textarea | ||
attributes: | ||
label: Additional context | ||
description: Add any other context about the problem here. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
name: Feature request | ||
description: Suggest an idea for this project | ||
title: "[Feature]: " | ||
labels: ["enhancement"] | ||
body: | ||
- type: textarea | ||
attributes: | ||
label: Is your feature request related to a problem? Please describe. | ||
description: A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] | ||
validations: | ||
required: true | ||
|
||
- type: textarea | ||
attributes: | ||
label: Describe the solution you'd like | ||
description: A clear and concise description of what you want to happen. | ||
validations: | ||
required: true | ||
|
||
- type: textarea | ||
attributes: | ||
label: Describe alternatives you've considered | ||
description: A clear and concise description of any alternative solutions or features you've considered. | ||
|
||
- type: textarea | ||
attributes: | ||
label: Additional context | ||
description: Add any other context or screenshots about the feature request here. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
## What does this PR do? | ||
|
||
|
||
|
||
## Which issues does this PR resolve? | ||
|
||
|
||
|
||
## Checklist before merging | ||
|
||
Thank you for your contribution to the repository. | ||
Before submitting this PR, please make sure: | ||
|
||
- [ ] Your code builds clean without any errors or warnings | ||
- [ ] Your code follows [LeviLamina C++ Style Guide](https://github.com/LiteLDev/LeviLamina/wiki/CPP-Style-Guide) | ||
- [ ] You have tested all functions | ||
- [ ] You have not used code without license | ||
- [ ] You have added statement for third-party code |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,42 +1,42 @@ | ||
name: build | ||
|
||
on: [workflow_dispatch] | ||
on: | ||
pull_request: | ||
push: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build: | ||
runs-on: windows-2022 | ||
|
||
runs-on: windows-latest | ||
steps: | ||
- uses: actions/checkout@v3.2.0 | ||
- uses: actions/checkout@v4 | ||
|
||
- uses: xmake-io/github-action-setup-xmake@v1 | ||
|
||
- run: | | ||
xmake repo -u | ||
- run: | | ||
xmake f -a x64 -m release -p windows -v -y | ||
- run: | | ||
xmake -w -y | ||
- uses: actions/upload-artifact@v3 | ||
with: | ||
submodules: "true" | ||
|
||
- name: Download Server | ||
working-directory: ${{ env.GITHUB_WORKSPACE }} | ||
run: | | ||
cd ./SDK/tools | ||
curl -L -o ./server.zip "https://minecraft.azureedge.net/bin-win/bedrock-server-1.20.30.02.zip" | ||
unzip server.zip | ||
shell: bash | ||
|
||
- name: Build Library | ||
working-directory: ${{env.GITHUB_WORKSPACE}} | ||
run: | | ||
cd ./SDK/tools | ||
./PeEditor.exe -l | ||
cp bedrock_server_var.lib ../lib | ||
cp bedrock_server_api.lib ../lib | ||
shell: bash | ||
|
||
- name: Build | ||
working-directory: ${{env.GITHUB_WORKSPACE}} | ||
run: | | ||
mkdir build | ||
cmake -B ./build -DCMAKE_BUILD_TYPE=Release | ||
cmake --build ./build --config Release --target ALL_BUILD | ||
shell: cmd | ||
|
||
- name: Upload Plugin | ||
uses: actions/upload-artifact@v3.1.0 | ||
name: ${{ github.event.repository.name }}-windows-x64-${{ github.sha }} | ||
path: | | ||
bin/ | ||
check-style: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- uses: actions/setup-node@v3 | ||
with: | ||
name: build | ||
path: ${{ github.workspace }}/build/Release/ | ||
node-version: 18 | ||
|
||
- run: | | ||
npm install clang-format@1.8.0 | ||
- run: | | ||
npx clang-format --dry-run --Werror $(find . -type f -name '*.cpp' -o -name '*.h') |
Oops, something went wrong.