guide_to_comments_in_project_the_code
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| guide_to_comments_in_project_the_code [2025/01/16 16:46] – serradfh | guide_to_comments_in_project_the_code [2025/01/21 16:53] (current) – serradfh | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ===== Guide to comment in the code of PTIDEJ Project | + | ===== Guide comments |
| + | While contributing to the project, you may encounter issues that you could ask help from colleagues, with that in mind, a tool to create issues automatically in the github PTIDEJ repository was made. | ||
| - | 1- The first line of comment is always: "// TODO" | + | It will read and generate title, tags, descriptions and semantics automatically in the following order: |
| - | 2- To keep same issue after step 1, keep using "//" | + | ----- |
| - | Correct: | + | =====1 - The first line of comment is always |
| - | // TODO | + | < |
| + | |||
| + | ----- | ||
| + | |||
| + | =====2- To continue to create the issue of step 1, keep using // in the next lines without real code of the class===== | ||
| + | |||
| + | ==Correct== | ||
| + | |||
| + | < | ||
| + | // TODO | ||
| // same issue comment | // same issue comment | ||
| someMethod() | someMethod() | ||
| - | + | </ | |
| - | Wrong: | + | ==Wrong== |
| - | // TODO | + | < |
| + | // TODO | ||
| someMethod() | someMethod() | ||
| // same issue comment | // same issue comment | ||
| + | </ | ||
| + | ----- | ||
| + | =====3 - Issues are created by files, so different "// TODO" in same file and SEPARATED by at least ONE LINE REAL OF CODE will be in the same issue but different section===== | ||
| - | 3- Issues are created by files, so different "// TODO" in same file and SEPARATED by at least ONE LINE REAL OF CODE will be in the same issue but different section. | + | ==One TODO== |
| - | + | < | |
| - | One TODO: | + | |
| // TODOx` | // TODOx` | ||
| // something | // something | ||
| Line 26: | Line 38: | ||
| // something else | // something else | ||
| method(); | method(); | ||
| - | + | </ | |
| - | Two TODO: | + | ==Two TODO== |
| + | < | ||
| // TODO | // TODO | ||
| // something | // something | ||
| Line 34: | Line 46: | ||
| // TODO | // TODO | ||
| // something else | // something else | ||
| - | + | </ | |
| - | 4- Inside any TODO, add certain codes in the middle of the comment to create context to the issue reader | + | ==Three |
| - | + | < | |
| - | Example | + | // TODO |
| - | @# | + | // something of issue 1 |
| + | method(); | ||
| + | // TODO | ||
| + | // something of the issue 2 | ||
| // TODO | // TODO | ||
| - | // @# | + | // something of the issue 3 |
| + | // TODO | ||
| + | // something else of the issue 3 | ||
| + | </ | ||
| - | Result of example 1: | + | ====Next steps are optional but highly encouraged |
| - | "The method some_method() needs to be added | + | |
| - | 5- Following are all the ID's for these codes, what they do and how to use respectively: | + | =====4- To generate extra information to make a precise tittle |
| - | @# | + | ==Example 1== |
| + | @# | ||
| + | <code> | ||
| + | // TODO | ||
| + | // @# | ||
| + | </ | ||
| - | @#REMOVE_METHOD | + | ==Result of example 1 in FAST DESCRIPTION== |
| + | < | ||
| + | - The method some_method() needs to be added | ||
| + | </ | ||
| + | ==Result of example 1 in the TITLE== | ||
| + | < | ||
| + | Some_Library on File_Name.java -> 1 Add Method | ||
| + | </ | ||
| + | ==Result of example 1 TITLE if not used the @#ADD_METHOD== | ||
| + | <code> | ||
| + | Some_Library on File_Name.java | ||
| + | </ | ||
| + | ------ | ||
| + | =====5- Following are all the ID's for these codes, what they mean and how to use respectively===== | ||
| + | ==If the ID code has a @#END_, any text in the middle of the start and the @#END_, will be used in the description== | ||
| - | @# | + | ===@# |
| - | + | ==" | |
| - | @# | + | < |
| - | + | ------- | |
| - | @#FIX_BUG / @#END_BUG = Fix a bug => `@#FIX_BUG description of the bug @#END_BUG` | + | ===@# |
| - | + | ==" | |
| - | @# | + | < |
| - | + | ------- | |
| - | @# | + | ===@# |
| - | + | ==" | |
| - | @# | + | <code> |
| - | + | ------- | |
| - | @# | + | ===@# |
| - | + | ==" | |
| - | @# | + | <code> |
| - | + | ------- | |
| - | @# | + | ===@#FIX_BUG / @#END_BUG=== |
| - | + | ==Need to fix the bug: " | |
| - | @#ADD_TEST | + | <code> |
| + | ------- | ||
| + | ===@# | ||
| + | ==Need to improve | ||
| + | <code> | ||
| + | ------- | ||
| + | ===@# | ||
| + | ==Need to refactor | ||
| + | <code># | ||
| + | ------- | ||
| + | ===@# | ||
| + | ==" | ||
| + | <code> | ||
| + | ------- | ||
| + | ===@# | ||
| + | ==" | ||
| + | <code>@#ADD_DOCUMENTATION | ||
| + | ------- | ||
| + | ===@# | ||
| + | ==" | ||
| + | < | ||
| + | ------- | ||
| + | ===@# | ||
| + | ==" | ||
| + | < | ||
| + | ------- | ||
| + | ===@# | ||
| + | ==" | ||
| + | < | ||
| + | ====Following is a link of a sample of a issue generated using step 5==== | ||
| + | [[https:// | ||
| + | =====Known bugs===== | ||
| + | ===If the step 5 is used to generate the title, and inside a comment is used more than one same Id, if a "// TODO" is not used before every next same Id, will not count towards the title=== | ||
| + | ==Example 1== | ||
| + | < | ||
| + | // TODO | ||
| + | // @# | ||
| + | // the one above was added in the title | ||
| + | // TODO | ||
| + | // @# | ||
| + | // the one above was added in the title | ||
| + | </ | ||
| + | ==Title output of example 1== | ||
| + | < | ||
| + | Testing on ProxyDisk.java -> 2 Refactor Codes | ||
| + | </ | ||
| + | ==Example 2== | ||
| + | < | ||
| + | // TODO | ||
| + | // @# | ||
| + | // the one above was added in the title | ||
| + | // @# | ||
| + | // will not be added to the title | ||
| + | </ | ||
| + | ==Title output of example 2== | ||
| + | < | ||
| + | Testing on ProxyDisk.java -> 1 Refactor Codes | ||
| + | </ | ||
| + | ==Example 3== | ||
| + | < | ||
| + | // TODO | ||
| + | // @# | ||
| + | // @# | ||
| + | // only the first one counted here | ||
| + | some_method() | ||
| + | // TODO | ||
| + | // @# | ||
| + | </ | ||
| + | ==Title output of example 3== | ||
| + | < | ||
| + | Testing on ProxyDisk.java -> 2 Refactor Codes | ||
| + | </ | ||
guide_to_comments_in_project_the_code.1737046002.txt.gz · Last modified: by serradfh
