Function: projectile--maybe-warn-prefixless-entries
projectile--maybe-warn-prefixless-entries is a byte-compiled function
defined in projectile.el.
Signature
(projectile--maybe-warn-prefixless-entries PROJECT-ROOT CFG)
Documentation
Warn once per session about prefix-less ignore entries in CFG for PROJECT-ROOT.
CFG is a projectile-dirconfig struct.
Source Code
;; Defined in ~/.emacs.d/elpa/projectile-20260820.1509/projectile.el
(defun projectile--maybe-warn-prefixless-entries (project-root cfg)
"Warn once per session about prefix-less ignore entries in CFG for PROJECT-ROOT.
CFG is a `projectile-dirconfig' struct."
(when (and projectile-warn-on-prefixless-dirconfig-lines
cfg
(projectile-dirconfig-prefixless-ignore cfg)
(not (gethash project-root
projectile--prefixless-dirconfig-warned-projects)))
(puthash project-root t projectile--prefixless-dirconfig-warned-projects)
(display-warning
'projectile
(format "%s contains entries without a `+'/`-'/`!' prefix: %s. \
The implicit form is treated as an ignore rule for backward \
compatibility but is being phased out — please prefix the lines \
explicitly. Set `projectile-warn-on-prefixless-dirconfig-lines' \
to nil to silence this warning."
(expand-file-name projectile-dirconfig-file project-root)
(mapconcat (lambda (s) (format "`%s'" s))
(projectile-dirconfig-prefixless-ignore cfg)
", "))
:warning)))