Skip to content

Commit

Permalink
add function.json ignoring by default. Closes #196
Browse files Browse the repository at this point in the history
  • Loading branch information
mthenw authored and tj committed Jan 31, 2016
1 parent a752017 commit a4004a3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion project/project.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ type Project struct {
func (p *Project) defaults() {
p.Memory = DefaultMemory
p.Timeout = DefaultTimeout
p.IgnoredPatterns = []string{"function.json"}

if p.Concurrency == 0 {
p.Concurrency = 5
Expand Down Expand Up @@ -98,10 +99,11 @@ func (p *Project) Open() error {
}
p.nameTemplate = t

p.IgnoredPatterns, err = utils.ReadIgnoreFile(p.Path)
patterns, err := utils.ReadIgnoreFile(p.Path)
if err != nil {
return err
}
p.IgnoredPatterns = append(p.IgnoredPatterns, patterns...)

return nil
}
Expand Down

0 comments on commit a4004a3

Please sign in to comment.