-
-
Notifications
You must be signed in to change notification settings - Fork 47
/
weeder.toml
79 lines (78 loc) · 2.67 KB
/
weeder.toml
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
unused-types = true
type-class-roots = false
roots = [
# General
".main$",
"^Main.spec$",
"^Paths_.*",
# Specific
# For using smos-data as a library
"^Smos.Data.Types.",
# For using smos as a library
"smosWithoutRuntimeConfig",
"Smos.Config.",
"^Smos.Actions.",
"^Smos.Cursor.",
# For calling the smos-client as a library
"^Smos.Client.",
# Should be ignored
"^StripeClient",
# False positives
"_cast",
"asciinema_player_js",
"casts_",
"ensureCasts",
"favicon_ico",
"logo_svg",
"mkCasts",
"mkStatic",
"mkStyle",
"smos_cheat_sheet_jpeg",
"smos_cheat_sheet_pdf",
"smos_png",
"static_",
"smos_release_zip",
"tom_sydney_kerckhove_smos_self_management_svg",
"widgetFile",
]
root-instances = [
# False positives
{class = 'IsString'},
{class = 'IsList'},
{instance = 'Lift Day'},
{instance = 'Lift Changelog'},
{instance = 'Lift ModuleOption'},
{instance = 'Lift NixValue'},
{instance = 'Lift DocPage'},
{instance = 'Ord Comparison'},
# Generated
## DB
{class = 'ToBackendKey', module = "^Smos.Sync.Client.DB$"},
{instance = 'AtLeastOneUniqueKey .*', module = "Smos.Sync.Client.DB"},
{instance = 'OnlyOneUniqueKey .*', module = "Smos.Sync.Client.DB"},
{instance = '^SymbolToField .*', module = "Smos.Sync.Client.DB"},
{instance = '^ToBackendKey .*', module = "Smos.Sync.Client.DB"},
{instance = '^SafeToInsert .*', module = "Smos.Sync.Client.DB"},
{class = 'ToBackendKey', module = "^Smos.Notify.DB$"},
{instance = 'AtLeastOneUniqueKey .*', module = "Smos.Notify.DB"},
{instance = 'OnlyOneUniqueKey .*', module = "Smos.Notify.DB"},
{instance = '^SymbolToField .*', module = "Smos.Notify.DB"},
{instance = '^ToBackendKey .*', module = "Smos.Notify.DB"},
{instance = '^SafeToInsert .*', module = "Smos.Notify.DB"},
{instance = 'AtLeastOneUniqueKey .*', module = "Smos.Server.DB"},
{instance = 'OnlyOneUniqueKey .*', module = "Smos.Server.DB"},
{instance = '^SymbolToField .*', module = "Smos.Server.DB"},
{instance = '^ToBackendKey .*', module = "Smos.Server.DB"},
{instance = '^SafeToInsert .*', module = "Smos.Server.DB"},
{instance = '^PathPiece \(Key .*\)$'},
{instance = '^ToHttpApiData \(Key .*\)$'},
{instance = '^FromHttpApiData \(Key .*\)$'},
{instance = '^PersistFieldSql \(Key .*\)$'},
{instance = '^PersistFieldSql .*$', module = "Smos.Notify.DB"},
{instance = '^PersistFieldSql .*$', module = "Smos.Sync.Client.DB"},
{instance = '^PersistFieldSql .*$', module = "Smos.Server.DB"},
## Routes
{instance = 'RouteAttrs', module = "Smos.Web.Server.Foundation"},
{instance = 'RouteAttrs', module = "Smos.Docs.Site.Foundation"},
{instance = 'ParseRoute', module = "Smos.Docs.Site.Foundation"},
]