-
Notifications
You must be signed in to change notification settings - Fork 3
/
framework.go
43 lines (37 loc) · 885 Bytes
/
framework.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
package detection
import (
"github.com/anchordotdev/cli/anchorcli"
)
var (
// Python Frameworks
Django = &FileDetector{
Title: "Django",
Paths: []string{"manage.py"},
FollowUpDetectors: nil,
AnchorCategory: anchorcli.CategoryPython,
}
Flask = &FileDetector{
Title: "Flask",
Paths: []string{"app.py"},
FollowUpDetectors: nil,
AnchorCategory: anchorcli.CategoryPython,
}
// Ruby Frameworks
Rails = &FileDetector{
Title: "Ruby on Rails",
Paths: []string{
"config.ru", "app", "config", "db", "lib", "public", "vendor",
},
FollowUpDetectors: nil,
AnchorCategory: anchorcli.CategoryRuby,
}
Sinatra = &FileDetector{
Title: "Sinatra",
Paths: []string{
"app.rb",
},
FollowUpDetectors: nil,
AnchorCategory: anchorcli.CategoryRuby,
RequiredFiles: []string{"app.rb"},
}
)