Changes between Version 43 and Version 44 of CodeTagsPlugin


Ignore:
Timestamp:
Jun 13, 2015, 1:56:04 PM (9 years ago)
Author:
figaro
Comment:

Cosmetic changes, removed dead links, tagged with nosource

Legend:

Unmodified
Added
Removed
Modified
  • CodeTagsPlugin

    v43 v44  
     1[[PageOutline(2-5,Contents,pullout)]]
     2
    13= A plugin for displaying code tags (`XXX`, `FIXME`, `TODO`, etc.)
    24
    3 Demo [http://developer.wz2100.net/codetags here], [http://git.mortis.eu/codetags.git git repository].
    4 Since I cannot find any documentation directly I want to point out that you need a subdirectory named cache thats writeable by your Trac to make this work. This takes some time in the first time used. Also don't forget to grant the `CODETAGS_VIEW` permission.
     5== Description
    56
    6 To enable in the `trac.ini` file:
    7 {{{
    8 #!ini
    9 [components]
    10 codetags.* = enabled
    11 }}}
     7Code tags are additions to the code or wiki pages that flag to the reader that attention is needed.
     8 * `FIXME` is for things which are definitely broken, but where you want to not worry about it for the moment. Shows up as FIXME.
     9 * `TODO` is for useful features, optimizations or refactorings that might be worth doing in the future. Shows up as TODO.
     10 * `XXX` is for things that require more thought and that are arguably broken.
    1211
    13 Additional configuration options can be added to the `trac.ini` file:
    14 {{{
    15 #!ini
    16 [code-tags]
    17 scan_files = *.html, *.py, *.c, *.h, *.hh, *.m, *.pch, *.hpp
    18 scan_folders = trunk/*, branches/*
    19 tags = XXX, TODO, FIXME, BUG
    20 }}}
     12See [http://c2.com/cgi/wiki?FixmeComment FixmeComment].
    2113
    22  {{{scan_files}}} :: allows you to define specific file types to scan (default: *)
    23  {{{scan_folders}}} :: specifies which directories within the repository to scan (default: *) [[br]]
    24  {{{exclude_folders}}} :: specifies directories that are subdirectories of {{{scan_folders}}} but don't need to be scanned [[br]]
    25  {{{exclude_files}}} :: specifies files that shouldn't be scanned even though they're included by scan_files [[br]]
    26  {{{tags}}} :: allows you to specify what tags to locate, though only the defaults are colored at all. (default: XXX, TODO, FIXME) [[br]]
    27 
    28 By default, this plugin doesn't ignore binary files. If you use svn/trac in a web-dev environment, this is a pain, since the tagger finds tags in files such as `.gif`.
    29 
    30 This, however, shouldn't be a serious problem because CodeTagsPlugin plugin searches for word boundaries (regex '\b') at the edges of words.
     14You need a subdirectory named `cache` that's writeable by your Trac to make this work. This takes some time in the first time used. Also don't forget to grant the `CODETAGS_VIEW` permission.
    3115
    3216== Download / Source
     
    5842  * Chose display for only specified path in repository
    5943 * Allowing regex's for the [code-tags] fields would increase flexibility (scan_files, scan_folders, tags).
     44
     45== Installation / Configuration
     46
     47To enable in the `trac.ini` file:
     48{{{#!ini
     49[components]
     50codetags.* = enabled
     51}}}
     52
     53Additional configuration options can be added to the `trac.ini` file:
     54{{{#!ini
     55[code-tags]
     56scan_files = *.html, *.py, *.c, *.h, *.hh, *.m, *.pch, *.hpp
     57scan_folders = trunk/*, branches/*
     58tags = XXX, TODO, FIXME, BUG
     59}}}
     60
     61 {{{scan_files}}} :: allows you to define specific file types to scan (default: *)
     62 {{{scan_folders}}} :: specifies which directories within the repository to scan (default: *) [[br]]
     63 {{{exclude_folders}}} :: specifies directories that are subdirectories of {{{scan_folders}}} but don't need to be scanned [[br]]
     64 {{{exclude_files}}} :: specifies files that shouldn't be scanned even though they're included by scan_files [[br]]
     65 {{{tags}}} :: allows you to specify what tags to locate, though only the defaults are colored at all. (default: XXX, TODO, FIXME) [[br]]
     66
     67By default, this plugin doesn't ignore binary files. If you use svn/trac in a web-dev environment, this is a pain, since the tagger finds tags in files such as `.gif`.
     68
     69This, however, shouldn't be a serious problem because CodeTagsPlugin plugin searches for word boundaries (regex '\b') at the edges of words.