Function: projectile-dashboard--ignore-summary
projectile-dashboard--ignore-summary is a byte-compiled function
defined in projectile.el.
Signature
(projectile-dashboard--ignore-summary ROOT)
Documentation
Return a one-line summary of the ignore rules in effect at ROOT.
Counting compiled patterns is free - they are derived from the configuration and the project's dirconfig, both of which are cached.
Source Code
;; Defined in ~/.emacs.d/elpa/projectile-20260820.1509/projectile.el
(defun projectile-dashboard--ignore-summary (root)
"Return a one-line summary of the ignore rules in effect at ROOT.
Counting compiled patterns is free - they are derived from the
configuration and the project\\='s dirconfig, both of which are cached."
(ignore-errors
(let* ((default-directory root)
;; Reads the project's dirconfig; the parser caches it, so this
;; costs nothing the rest of Projectile isn't paying anyway.
(cfg (projectile-parse-dirconfig-file))
(local (if cfg
(+ (length (projectile-dirconfig-ignore cfg))
(length (projectile-dirconfig-ensure cfg)))
0))
(global (+ (length projectile-globally-ignored-directories)
(length projectile-globally-ignored-files)
(length projectile-globally-ignored-file-suffixes))))
(if (zerop local)
(format "%d global patterns" global)
(format "%d global patterns, %d from %s"
global local projectile-dirconfig-file)))))