slocDir

Counts number source lines of code in a directory tree. (Requires sloc, FIle Exchange ID 3900)

現在この提出コンテンツをフォロー中です。

This function returns the line count for directory tree. If there are multiple functions in one file, subfunctions are not counted separately, but rather together. This function calls sloc.m to count lines of code on an individual file. Sloc can be obtained from the File Exchange on MATLAB Central.

The following statistics are calculated for a directory tree
- sum of lines of code from all mfiles in the directory tree
- sum of lines of code from all mfiles in parent directory
- sum of lines of code from all mfiles in subdirectories
- lines of code in each mfile in directory tree

The output of this function can either be to a text file or the MATLAB command prompt or both.

引用

David Roberts (2026). slocDir (https://jp.mathworks.com/matlabcentral/fileexchange/23837-slocdir), MATLAB Central File Exchange. に取得済み.

謝辞

ヒントを得たファイル: sloc

カテゴリ

Help Center および MATLAB AnswersFile Operations についてさらに検索

一般的な情報

MATLAB リリースの互換性

  • すべてのリリースと互換性あり

プラットフォームの互換性

  • Windows
  • macOS
  • Linux
バージョン 公開済み リリース ノート Action
1.1.0.0

Note in summary to also download sloc from the file exchange.

1.0.0.0