Skip to content

Commit

Permalink
Enable concurrent execution; explicitly disable generated code analysis
Browse files Browse the repository at this point in the history
  • Loading branch information
mykolav committed Feb 19, 2023
1 parent f3d60bc commit db43f01
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
7 changes: 6 additions & 1 deletion RequireNamedArgs/RequireNamedArgs.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,12 @@
<copyright>Copyright © Mykola Musiienko 2023</copyright>
<tags>roslyn roslyn-analyzer</tags>
<repository url="https://github.com/mykolav/require-named-args-fs" />
<releaseNotes>Added support for the implicit object creation syntax and an attribute's constructors</releaseNotes>
<releaseNotes>
- Added support for the implicit object creation syntax;
- Added support for an attribute's constructors;
- Enabled concurrent execution;
- Explicitly disabled generated code analysis.
</releaseNotes>

<dependencies>
<group>
Expand Down
5 changes: 5 additions & 0 deletions RequireNamedArgs/RequireNamedArgsAnalyzer.fs
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,11 @@ type public RequireNamedArgsAnalyzer() =


override this.Initialize (context: AnalysisContext) =
// We don't want to require named args in generated code.
context.ConfigureGeneratedCodeAnalysis(GeneratedCodeAnalysisFlags.None)
// We can handle concurrent invocations.
context.EnableConcurrentExecution()

// Register ourself to get invoked to analyze
// - invocation expressions; e. g., calling a method.
// - and object creation expressions; e. g., invoking a constructor.
Expand Down

0 comments on commit db43f01

Please sign in to comment.