Xcode task management plugin

Is there any plugin for task management (bug tracking, problems) to use with xcode? Or is there an api plugin that you can create plugins for it?

+1
source share
3 answers

Actually there is nothing that I know about it, as good as mylyn to communicate with bugzilla or trac. If you find anything, please let me know!

The best way to find out about problems or things is to put the // TODO: or // FIXME: code in your code. Then, when compiling Xcode, you can run a local shell script to send warnings for you

Here: (Goals → -> OLD PHASES → Launch Scripts (see screenshot)

Put this script at the end of your build phases:

KEYWORDS="FIXME|TODO:|FIXME:|\?\?\?:|\!\!\!:" find ${SRCROOT} \( -name "*.h" -or -name "*.m" \) -print0 | \ xargs -0 egrep --with-filename --line-number --only-matching "($KEYWORDS).*\$" | \ perl -p -e "s/($KEYWORDS)/ warning: \$1/" 

Finally, there is the infamous

#pragma mark YOURTEXTHERE

Good luck

Here is a wish list that people want: https://stackoverflow.com/questions/2025605/wishlist-for-objective-c-ide-xcode

Screenshot: enter image description here

+6
source

I used the Script launch phase for some time and modified it so that the generated build warnings directly refer to the file and the line where the keyword was found.

The solution is to print a line that matches the ones that Xcode knows how to parse:

 {filename}:{line}:{character}: warning: {The content of the warning}. 

So, Script looks like this:

 KEYWORDS="FIXME|TODO:|FIXME:|\?\?\?:|\!\!\!:\@todo\@warning" find "${SRCROOT}" \( -name "*.h" -or -name "*.m" \) -exec egrep -Hno "($KEYWORDS).*\$" {} \; | \ sed -e 's/^\([^:]\{1,\}\):\([0-9]\{1,\}\):\(.*\)$/\1:\2:1: warning: \3/' 

Note that I also included @todo and @warning in the keywords, as I often use javadoc / doxygen comments.

Bertrand

+1
source

I created an Xcode plugin for this -> http://github.com/trawor/XToDo

0
source

Source: https://habr.com/ru/post/1385403/


All Articles