-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathNoesisParserConfig.cs
More file actions
65 lines (64 loc) · 3.89 KB
/
NoesisParserConfig.cs
File metadata and controls
65 lines (64 loc) · 3.89 KB
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
namespace TestConfigs;
public static class NoesisConfig
{
// [FullAnalysisConfig]
// public static FullAnalysisConfig Create() => FullAnalysisConfigBuilder
// .System("Noesis")
// .Repositories(repositories => repositories
// .UseLocal("Main", "noesis-dotnet"))
// .Conventions(conventions => conventions
// .ForDomainModules(convention => convention
// .UseNamespaceHierarchy()
// .WithPathMatching(new Regex(@"^((?!\.Tests).)*$")))
// .ForDomainObjects(NoesisTags.Domain.DDD.DddDomainService, convention => convention
// .UseTypes()
// .WithNameEndingWith("Analyzer")
// .SetName(type => type.Name.Replace("Analyzer", " Analyzer")))
// .ForDomainObjects(NoesisTags.Domain.DDD.DddFactory, convention => convention
// .UseTypes()
// .WithNameEndingWith("Provider")
// .SetName(type => type.Name.Replace("Provider", " Provider")))
// .ForDomainObjects(NoesisTags.Domain.DDD.DddFactory, convention => convention
// .UseTypes()
// .WithNameEndingWith("Builder")
// .SetName(type => type.Name.Replace("Builder", " Builder")))
// .ForDomainObjects(NoesisTags.Domain.DDD.DddFactory, convention => convention
// .UseTypes()
// .WithNameEndingWith("Parser")
// .SetName(type => type.Name.Replace("Parser", " Parser")))
// .ForDomainObjects(NoesisTags.Domain.DDD.DddDomainService, convention => convention
// .UseTypes()
// .OfKind(TypeKind.Class)
// .WithNameMatching(new Regex(@"^(Project|NamedType|DeclaredType|Method|Property|Field|Annotation|IntermediateModel|CompilationContext|ParsingContext)$"))
// .SetName(type => type.Name))
// .ForDomainObjects(NoesisTags.Domain.DDD.DddValueObject, convention => convention
// .UseTypes()
// .OfKind(TypeKind.Struct)
// .WithNameMatching(new Regex(@"^(TypeKind|TargetFramework|SystemRevision|SourceLocation)$"))
// .SetName(type => type.Name))
// .ForDomainObjects(NoesisTags.Domain.DDD.DddFactory, convention => convention
// .UseTypes()
// .WithNameEndingWith("Factory")
// .SetName(type => type.Name.Replace("Factory", " Factory")))
// .ForDomainBehaviors(NoesisTags.Domain.DDD.DddFactory, convention => convention
// .UseMethods()
// .WithNameStartingWith("Execute")
// .SetName(method => method.ContainingType.Name + "-execute"))
// .ForDomainBehaviors(NoesisTags.Domain.EntryPoint, convention => convention
// .UseMethods()
// .FromTypes(types => types
// .OfKind(TypeKind.Class)
// .ConvertibleTo("ComponentBase", "Microsoft.AspNetCore.Components", "Microsoft.AspNetCore.Components"))
// .WithNameMatching(new Regex(@"^OnInitialized|^OnInitializedAsync|^OnParametersSet|^OnParametersSetAsync|^OnAfterRender|^OnAfterRenderAsync$"))
// .SetName(method =>
// $"{method.ContainingType.Name}.{method.Name}"))
// .ForDomainBehaviors(NoesisTags.Domain.EntryPoint, convention => convention
// .UseMethods()
// .FromTypes(types => types
// .OfKind(TypeKind.Class)
// .ConvertibleTo("ComponentBase", "Microsoft.AspNetCore.Components", "Microsoft.AspNetCore.Components"))
// .WithNameMatching(new Regex(@"^NavigateTo|^Run|^Execute|^Start|^Stop|^Load|^Save|^Create|^Update|^Delete$"))
// .SetName(method =>
// $"{method.ContainingType.Name}.{method.Name}")))
// .Build();
}