以前までの章でやってきた例の続きです:hello-worldプロジェクトに 暗黙的なタグづけの方法を使ってみましょう:
% cd ~/wd/hello-world
% larch tagging-method implicit
さて、tree-lint は、何を報告するでしょうか?
% larch tree-lint
[...]
** WARNING: untagged files
This directory uses the "implicit" inventory method, but
these files do not have either implicit or explicit tags.
*** file-list
./hw.c
./main.c
タグを追加するためにソースファイルを編集すると、:
% tail -3 main.c
/* tag: main module of the hello-world project
*/
% tail -3 hw.c
/* tag: hello_world module of the hello-world project
*/
それから、tree-lint を実行すると警告は出なくなります。
利用に関する注意 1: {arch}中のどのファイルにもタグをつけなかったことに注意して ください。arch はすべての制御ファイルに暗黙的なタグを用意 します。
利用に関する注意 2: 今回の小さなサンプルプロジェクトではarchコントロールディレクトリ 以外のサブディレクトリはありません。もしそのようなサブディレクトリがある場合は、 それに対してlarch addでタグを付けたいと思うかも知れません。