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.
It will read and generate title, tags, descriptions and semantics automatically in the following order:
1 - The first line of comment is always the following
// TODO
2- To continue to create the issue of step 1, keep using in the next lines without real code of the class ==Correct== <code> TODO same issue comment someMethod() </code> ==Wrong== <code> TODO someMethod() same issue comment </code> —– 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
// TODOx` // something // TODO // something else method();
// TODO // something method(); // TODO // something else
// 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, inside any TODO, you can add certain codes in the middle of the comment to create context to the issue reader
@#ADD_METHOD = “Here needs to add this method some_method()”
// TODO // @#ADD_METHOD some_method()
- The method some_method() needs to be added
Some_Library on File_Name.java -> 1 Add Method
Some_Library on File_Name.java
5- Following are all the ID's for these codes, what they mean and how to use respectively
@#ADD_METHOD something_method()
@#REMOVE_METHOD something_method()
@#ADD_CONSTANT SOME_CONSTANT
@#REMOVE_CONSTANT SOME_CONSTANT
@#FIX_BUG description of the bug @#END_BUG
@#IMPROVE_PERFORMANCE description of performance issue @#END_PERFORMANCE
#REFACTOR_CODE description of what to refactor @#END_REFACTOR
@#UPDATE_DEPENDENCY library_name
@#ADD_DOCUMENTATION description of what needs documenting @#END_DOCUMENTATION
@#REMOVE_DEPRECATED description of deprecated code @#END_DEPRECATED
@#HANDLE_ERROR description of error @#END_ERROR
@#ADD_TEST description of test case @#END_TEST
Following is a link of a sample of a issue generated using step 5 Sample issue
// TODO // @#REFACTOR_CODE Handle a uniform encoding? 4 @#END_REFACTOR // the one above was added in the title // TODO // @#REFACTOR_CODE Handle a uniform encoding? 5 @#END_REFACTOR // the one above was added in the title
Testing on ProxyDisk.java -> 2 Refactor Codes
// TODO // @#REFACTOR_CODE Handle a uniform encoding? 4 @#END_REFACTOR // the one above was added in the title // @#REFACTOR_CODE Handle a uniform encoding? 5 @#END_REFACTOR // will not be added to the title
Testing on ProxyDisk.java -> 1 Refactor Codes
// TODO // @#REFACTOR_CODE Handle a uniform encoding? 4 @#END_REFACTOR // @#REFACTOR_CODE Handle a uniform encoding? 5 @#END_REFACTOR // only the first one counted here some_method() // TODO // @#REFACTOR_CODE Handle a uniform encoding? 6 @#END_REFACTOR
Testing on ProxyDisk.java -> 2 Refactor Codes