You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: CONTRIBUTING.md
+23-9
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,7 @@
1
1
# Contributing Guidelines
2
2
3
-
Thank you for considering contributing to our project! We welcome contributions from everyone. Before getting started, please take a moment to read our guidelines.
3
+
Thank you for considering contributing to our project! We welcome contributions from everyone.
4
+
Before getting started, please take a moment to read our guidelines.
4
5
5
6
## How to contribute
6
7
@@ -12,11 +13,14 @@ Thank you for considering contributing to our project! We welcome contributions
12
13
13
14
## Reporting bugs
14
15
15
-
If you find a bug, please let us know by opening an issue. Be as detailed as possible when describing the issue, including any steps to reproduce the bug. If applicable, please provide your `modloader.log` file from the `user://` (Godot app_userdata) folder. This file contains valuable information that can help us identify the cause of the issue.
16
+
If you find a bug, please let us know by opening an issue. Be as detailed as possible when describing the issue,
17
+
including any steps to reproduce the bug. If applicable, please provide your `modloader.log` file from the `user://`
18
+
(Godot app_userdata) folder. This file contains valuable information that can help us identify the cause of the issue.
16
19
17
20
## Suggesting features
18
21
19
-
If you have an idea for a new feature or improvement, please open an issue to discuss it. We welcome all suggestions and will consider them carefully.
22
+
If you have an idea for a new feature or improvement, please open an issue to discuss it.
23
+
We welcome all suggestions and will consider them carefully.
20
24
21
25
## Coding style
22
26
@@ -27,17 +31,22 @@ In addition, please follow these guidelines:
27
31
### Naming Convention
28
32
- Prefix local (private) to file vars / functions with `_`
29
33
- Prefix classes that should only be used by the ModLoader with `_`
30
-
- If a method is in a non-prefixed class and ModLoader Internal, but used outside of the private scope, prefix with `_`, use it outside the scope, but add a comment why it was used there
34
+
- If a method is in a non-prefixed class and ModLoader Internal, but used outside the private scope, prefix with `_`,
35
+
use it outside the scope, but add a comment why it was used there
31
36
32
37
Reasoning:
33
38
1. Underscore methods/vars should only be used within the same file
34
-
2. Most classes should not be used by mods, only by the ModLoader. if they are prefixed with an underscore, no mod should access them and we are free to change the internal structure without breaking mods and needing deprecations
35
-
3. In some cases we need to use private methods outside of their file (`_rotate_log_file` for example) and the class is a public one (`ModLoaderLog` here). Since the method should not be accessible to mods, we are using a "private" method outside of its scope here - and that needs an explanation
39
+
2. Most classes should not be used by mods, only by the ModLoader. if they are prefixed with an underscore,
40
+
no mod should access them and we are free to change the internal structure without breaking mods and needing deprecations
41
+
3. In some cases we need to use private methods outside their file (`_rotate_log_file` for example) and the class is a
42
+
public one (`ModLoaderLog` here). Since the method should not be accessible to mods, we are using a "private" method outside
43
+
its scope here - and that needs an explanation
36
44
37
45
### String Standards
38
46
- Double quotes over single quotes: `"string"`, not `'string'`
39
47
- Quote escaping over single quotes : `"\"hello\" world"`, not `'"hello" world'`
40
-
- Format strings over string concatenation and `str()`: `"hello %s!" % place`, not `"hello " + place + "!"`, not `str("hello", place)`. Except for very simple cases/single concatenation: `"hello " + place`, not `"hello %s" % place`
48
+
- Format strings over string concatenation and `str()`: `"hello %s!" % place`, not `"hello " + place + "!"`,
49
+
not `str("hello", place)`. Except for very simple cases/single concatenation: `"hello " + place`, not `"hello %s" % place`
41
50
- split long strings into shorter ones with string concatenation `"" + "" + ...`, not `str("", "", ...)`
42
51
```gdscript
43
52
ModLoaderLog.info(
@@ -49,8 +58,13 @@ ModLoaderLog.info(
49
58
50
59
## Documentation
51
60
52
-
The documentation for this project is located in the repository's wiki. Please make sure to update the relevant documentation pages when making changes to the code. If you're not sure what needs to be updated, please ask in your pull request or issue.
53
-
*Note that you will mostly edit the [Upcoming Features](https://github.com/GodotModding/godot-mod-loader/wiki/Upcoming-Features) page, where all changes to the dev branch are documented until they become part of the next major update.*
61
+
The documentation for this project is kept in the [gmlwiki repository](https://github.com/GodotModding/gmlwiki).
62
+
Please make sure to update the relevant documentation pages when making changes to the code. If you're not sure what
63
+
needs to be updated, please ask in your pull request or issue.
64
+
*Note that you will mostly edit the [Upcoming Features](https://github.com/GodotModding/godot-mod-loader/wiki/Upcoming-Features)
65
+
page, where all changes to the dev branch are documented until they become part of the next major update.*
66
+
67
+
54
68
55
69
## Communicating over Discord
56
70
We use Discord for communication and collaboration. You can join our Discord server at [discord.godotmodding.com](https://discord.godotmodding.com). Please use appropriate channels for your discussions and keep conversations respectful and on-topic.
0 commit comments