guide_to_comments_in_project_the_code
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| guide_to_comments_in_project_the_code [2025/01/16 16:46] – created 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 | ||
| + | |||
| + | It will read and generate title, tags, descriptions and semantics automatically in the following order: | ||
| + | |||
| + | ----- | ||
| + | =====1 - The first line of comment | ||
| + | |||
| + | < | ||
| + | |||
| + | ----- | ||
| + | |||
| + | =====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 | ||
| + | someMethod() | ||
| + | </ | ||
| + | ==Wrong== | ||
| + | < | ||
| + | // TODO | ||
| + | someMethod() | ||
| + | // 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===== | ||
| + | |||
| + | |||
| + | ==One TODO== | ||
| + | < | ||
| + | // TODOx` | ||
| + | // something | ||
| + | // TODO | ||
| + | // something else | ||
| + | method(); | ||
| + | </ | ||
| + | ==Two TODO== | ||
| + | < | ||
| + | // TODO | ||
| + | // something | ||
| + | method(); | ||
| + | // TODO | ||
| + | // something else | ||
| + | </ | ||
| + | ==Three TODO== | ||
| + | < | ||
| + | // TODO | ||
| + | // something of issue 1 | ||
| + | method(); | ||
| + | // TODO | ||
| + | // something of the issue 2 | ||
| + | |||
| + | // TODO | ||
| + | // something of the issue 3 | ||
| + | // TODO | ||
| + | // something else of the issue 3 | ||
| + | |||
| + | </ | ||
| + | |||
| + | ====Next steps are optional but highly encouraged to give the issues FAST DESCRIPTION and a precise TITLE==== | ||
| + | |||
| + | =====4- To generate extra information to make a precise tittle and description, | ||
| + | |||
| + | ==Example 1== | ||
| + | @# | ||
| + | < | ||
| + | // TODO | ||
| + | // @# | ||
| + | </ | ||
| + | |||
| + | ==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 @# | ||
| + | < | ||
| + | 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== | ||
| + | |||
| + | ===@# | ||
| + | ==" | ||
| + | < | ||
| + | ------- | ||
| + | ===@# | ||
| + | ==" | ||
| + | < | ||
| + | ------- | ||
| + | ===@# | ||
| + | ==" | ||
| + | < | ||
| + | ------- | ||
| + | ===@# | ||
| + | ==" | ||
| + | < | ||
| + | ------- | ||
| + | ===@# | ||
| + | ==Need to fix the bug: " | ||
| + | < | ||
| + | ------- | ||
| + | ===@# | ||
| + | ==Need to improve performance: | ||
| + | < | ||
| + | ------- | ||
| + | ===@# | ||
| + | ==Need to refactor the code: " | ||
| + | < | ||
| + | ------- | ||
| + | ===@# | ||
| + | ==" | ||
| + | < | ||
| + | ------- | ||
| + | ===@# | ||
| + | ==" | ||
| + | < | ||
| + | |||
| + | ------- | ||
| + | ===@# | ||
| + | ==" | ||
| + | < | ||
| + | ------- | ||
| + | ===@# | ||
| + | ==" | ||
| + | < | ||
| + | ------- | ||
| + | ===@# | ||
| + | ==" | ||
| + | < | ||
| + | |||
| + | ====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.1737045972.txt.gz · Last modified: by serradfh
