shouldTaskUseGitignore resolves whether gitignore filtering applies to a task: the task-level value takes precedence, falling back to the Taskfile's global use_gitignore when the task does not set it.
(t *ast.Task)
| 23 | // task: the task-level value takes precedence, falling back to the Taskfile's |
| 24 | // global use_gitignore when the task does not set it. |
| 25 | func (e *Executor) shouldTaskUseGitignore(t *ast.Task) bool { |
| 26 | if t.UseGitignore != nil { |
| 27 | return *t.UseGitignore |
| 28 | } |
| 29 | return e.Taskfile.UseGitignore != nil && *e.Taskfile.UseGitignore |
| 30 | } |
| 31 | |
| 32 | // CompiledTask returns a copy of a task, but replacing variables in almost all |
| 33 | // properties using the Go template package. |
no outgoing calls
no test coverage detected