feat: More stats
This commit is contained in:
parent
1c303f8741
commit
63fcbf3da7
2 changed files with 22 additions and 2 deletions
|
@ -175,4 +175,19 @@ def noInformalDefs : MetaM Nat := do
|
|||
let x := x.filter (Informal.isInformalDef)
|
||||
pure x.toList.length
|
||||
|
||||
/-- The number of TODO items. -/
|
||||
def noTODOs : IO Nat := do
|
||||
let imports ← HepLean.allImports
|
||||
let x ← imports.mapM HepLean.Imports.getLines
|
||||
let x := x.flatten
|
||||
let x := x.filter fun l => l.startsWith "/-! TODO:"
|
||||
pure x.size
|
||||
|
||||
/-- The number of files with a TODO item. -/
|
||||
def noFilesWithTODOs : IO Nat := do
|
||||
let imports ← HepLean.allImports
|
||||
let x ← imports.mapM HepLean.Imports.getLines
|
||||
let x := x.filter (fun M => M.any fun l => l.startsWith "/-! TODO:")
|
||||
pure x.size
|
||||
|
||||
end HepLean
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue