cc cloc

Count lines of code across modules in the active project using Odoo's built-in cloc tool.

Usage

cc cloc              # scan modules in the active project
cc cloc PROJECT      # scan modules in a specific project

Example

Select modules to scan (Space to toggle, Enter to confirm)
Filter: se
----------------
   ○  SELECT ALL
 ❯ ●  acme_base
   ○  warehouse_record_rules
   ●  acme_approvals
   ○  qty_block_base
   ○  base_record_rules

CLOC Report (2 modules)
───────────────────────────────────────────────────────────────
Module                                               Code Lines
───────────────────────────────────────────────────────────────
acme_approvals                                              269
acme_base                                                   142
───────────────────────────────────────────────────────────────
TOTAL                                                       411
───────────────────────────────────────────────────────────────

Use the fuzzy filter to narrow down modules, Space to toggle selection, Enter to confirm. Selecting SELECT ALL scans every module in the project.

Last updated

Was this helpful?