Skip to content

Commit

Permalink
Merge pull request #4 from 98teg/godot-4.0
Browse files Browse the repository at this point in the history
Godot 4.0
  • Loading branch information
98teg authored Sep 8, 2023
2 parents beb227f + 006cac1 commit dbaa2ba
Show file tree
Hide file tree
Showing 200 changed files with 7,304 additions and 1,083 deletions.
3 changes: 3 additions & 0 deletions .codespellrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[codespell]
skip = godot-cpp,portable-file-dialogs
builtin = en-GB_to_en-US
46 changes: 46 additions & 0 deletions .gdlintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
class-definitions-order:
- tools
- classnames
- extends
- signals
- enums
- consts
- exports
- pubvars
- prvvars
- onreadypubvars
- onreadyprvvars
- others
class-load-variable-name: (([A-Z][a-z0-9]*)+|_?[a-z][a-z0-9]*(_[a-z0-9]+)*)
class-name: ([A-Z][a-z0-9]*)+
class-variable-name: _?[a-z][a-z0-9]*(_[a-z0-9]+)*
comparison-with-itself: null
constant-name: "[A-Z][A-Z0-9]*(_[A-Z0-9]+)*"
disable: []
duplicated-load: null
enum-element-name: "[A-Z][A-Z0-9]*(_[A-Z0-9]+)*"
enum-name: ([A-Z][a-z0-9]*)+
excluded_directories: !!set
.git: null
expression-not-assigned: null
function-argument-name: _?[a-z][a-z0-9]*(_[a-z0-9]+)*
function-arguments-number: 10
function-name: (_on_([A-Z][a-z0-9]*)+(_[a-z0-9]+)*|_?[a-z][a-z0-9]*(_[a-z0-9]+)*)
function-preload-variable-name: ([A-Z][a-z0-9]*)+
function-variable-name: "[a-z][a-z0-9]*(_[a-z0-9]+)*"
load-constant-name: (([A-Z][a-z0-9]*)+|[A-Z][A-Z0-9]*(_[A-Z0-9]+)*)
loop-variable-name: _?[a-z][a-z0-9]*(_[a-z0-9]+)*
max-file-lines: 1000
max-line-length: 100
max-public-methods: 1000
max-returns: 6
mixed-tabs-and-spaces: null
no-elif-return: null
no-else-return: null
private-method-call: null
signal-name: "[a-z][a-z0-9]*(_[a-z0-9]+)*"
sub-class-name: _?([A-Z][a-z0-9]*)+
tab-characters: 1
trailing-whitespace: null
unnecessary-pass: null
unused-argument: null
54 changes: 54 additions & 0 deletions .github/workflows/master.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
name: 🌟 Master

on:
pull_request:
branches: [master]

jobs:
gdscript:
name: 💅 Linting / 🤖 GDScript
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- run: pip3 install "gdtoolkit==4.*"
- run: bash -c 'for f in ./demo/addons/sprite_mesh/**/*.gd; do gdlint "$f"; done'
- run: bash -c 'for f in ./demo/addons/sprite_mesh/*.gd; do gdlint "$f"; done'
- run: bash -c 'for f in ./demo/**/*.gd; do gdlint "$f"; done'

spelling:
name: 💅 Linting / 👓 Spelling
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: codespell-project/actions-codespell@v1

markdown:
name: 💅 Linting / 📝 Markdown
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: DavidAnson/markdownlint-cli2-action@v9
with:
globs: README.md

package:
name: 📦 Package
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Create addon
run: |
mkdir addons
cp -R demo/addons/sprite_mesh addons
cp LICENSE.md addons/sprite_mesh
- name: Create package
run: |
zip -r sprite_mesh.zip addons
- name: Upload addon
uses: actions/upload-artifact@v3
with:
name: sprite_mesh
path: sprite_mesh.zip
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
.import/
export.cfg
export_presets.cfg
.vscode
.godot
3 changes: 3 additions & 0 deletions .markdownlint.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
MD013: false
MD024:
siblings_only: true
2 changes: 2 additions & 0 deletions LICENSE.txt → LICENSE.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
MIT License

Copyright (c) 2021 Tomás Espejo Gómez

Permission is hereby granted, free of charge, to any person obtaining a copy
Expand Down
Loading

0 comments on commit dbaa2ba

Please sign in to comment.