45 references to Mismatch
Microsoft.TemplateEngine.Abstractions (2)
TemplateFiltering\MatchKind.cs (2)
40
[Obsolete("This value will be removed in next release, use + " + nameof(MatchKind.
Mismatch
) + " or " + nameof(MatchKind.InvalidValue) + " instead")]
43
[Obsolete("This value will be removed in next release, use + " + nameof(MatchKind.
Mismatch
) + " or " + nameof(MatchKind.InvalidValue) + " instead")]
Microsoft.TemplateEngine.Cli (13)
TemplateResolution\CliFilters.cs (4)
23
return new MatchInfo(MatchInfo.BuiltIn.ShortName, name, MatchKind.
Mismatch
);
32
return new MatchInfo(MatchInfo.BuiltIn.ShortName, name, MatchKind.
Mismatch
);
82
return new MatchInfo(MatchInfo.BuiltIn.Name, name, MatchKind.
Mismatch
);
117
return new MatchInfo(MatchInfo.BuiltIn.Language, language, MatchKind.
Mismatch
);
TemplateResolution\TemplateGroupMatchInfo.cs (4)
49
internal bool IsGroupMatch => _groupDispositions.All(x => x.Kind != MatchKind.
Mismatch
);
208
if (groupMatchDispositions.Any(x => x.Kind == MatchKind.
Mismatch
))
295
.All(match => match.Kind != MatchKind.
Mismatch
);
302
.All(match => match.Kind != MatchKind.
Mismatch
);
TemplateResolution\TemplateMatchInfoExtensions.cs (4)
37
if (otherMatches.Any(mi => mi.Kind == MatchKind.
Mismatch
|| mi.Kind == MatchKind.InvalidName || mi.Kind == MatchKind.InvalidValue))
42
return constraintsMatches.Any(mi => mi.Kind == MatchKind.
Mismatch
);
59
if (otherMatches.Any(mi => mi.Kind == MatchKind.
Mismatch
|| mi.Kind == MatchKind.InvalidName || mi.Kind == MatchKind.InvalidValue))
64
return filterMatches.Any(mi => mi.Kind == MatchKind.
Mismatch
);
TemplateResolution\TemplateResolutionResult.cs (1)
296
&& matchInfo.Kind == MatchKind.
Mismatch
)))
Microsoft.TemplateEngine.Utils (30)
TemplateMatchInfoExtensions.cs (14)
38
/// Returns true when <paramref name="templateMatchInfo"/> has <see cref="MatchKind.
Mismatch
" /> on <see cref="MatchInfo.BuiltIn.Name"/>.
42
return templateMatchInfo.MatchDisposition.Any(x => x.Name == MatchInfo.BuiltIn.Name && x.Kind == MatchKind.
Mismatch
);
70
/// Returns true when <paramref name="templateMatchInfo"/> has <see cref="MatchKind.
Mismatch
" /> on <see cref="MatchInfo.BuiltIn.ShortName"/>.
74
return templateMatchInfo.MatchDisposition.Any(x => x.Name == MatchInfo.BuiltIn.ShortName && x.Kind == MatchKind.
Mismatch
);
86
/// Returns true when <paramref name="templateMatchInfo"/> has <see cref="MatchKind.
Mismatch
" /> on <see cref="MatchInfo.BuiltIn.Type"/>.
90
return templateMatchInfo.MatchDisposition.Any(x => x.Name == MatchInfo.BuiltIn.Type && x.Kind == MatchKind.
Mismatch
);
102
/// Returns true when <paramref name="templateMatchInfo"/> has <see cref="MatchKind.
Mismatch
" /> on <see cref="MatchInfo.BuiltIn.Classification"/>.
106
return templateMatchInfo.MatchDisposition.Any(x => x.Name == MatchInfo.BuiltIn.Classification && x.Kind == MatchKind.
Mismatch
);
118
/// Returns true when <paramref name="templateMatchInfo"/> has <see cref="MatchKind.
Mismatch
" /> on <see cref="MatchInfo.BuiltIn.Language"/>.
122
return templateMatchInfo.MatchDisposition.Any(x => x.Name == MatchInfo.BuiltIn.Language && x.Kind == MatchKind.
Mismatch
);
134
/// Returns true when <paramref name="templateMatchInfo"/> has <see cref="MatchKind.
Mismatch
" /> on <see cref="MatchInfo.BuiltIn.Baseline"/>.
138
return templateMatchInfo.MatchDisposition.Any(x => x.Name == MatchInfo.BuiltIn.Baseline && x.Kind == MatchKind.
Mismatch
);
166
/// Returns true when <paramref name="templateMatchInfo"/> has <see cref="MatchKind.
Mismatch
" /> on <see cref="MatchInfo.BuiltIn.Author"/>.
170
return templateMatchInfo.MatchDisposition.Any(x => x.Name == MatchInfo.BuiltIn.Author && x.Kind == MatchKind.
Mismatch
); // CodeQL [cs/campaign/constantine] False Positive: CodeQL wrongly detected "Author"
WellKnownSearchFilters.cs (16)
34
/// - adds match disposition <see cref="MatchInfo.BuiltIn.Name"/> with <see cref="MatchKind.
Mismatch
"/> otherwise.<br/>
77
return new MatchInfo(MatchInfo.BuiltIn.Name, name, MatchKind.
Mismatch
);
85
/// - adds match disposition <see cref="MatchInfo.BuiltIn.Type"/> with <see cref="MatchKind.
Mismatch
"/> otherwise.<br/>
104
return new MatchInfo(MatchInfo.BuiltIn.Type, type, MatchKind.
Mismatch
);
113
/// - adds match disposition <see cref="MatchInfo.BuiltIn.Classification"/> with <see cref="MatchKind.
Mismatch
"/> otherwise.<br/>
128
return new MatchInfo(MatchInfo.BuiltIn.Classification, classification, MatchKind.
Mismatch
);
136
/// - adds match disposition <see cref="MatchInfo.BuiltIn.Language"/> with <see cref="MatchKind.
Mismatch
"/> otherwise.<br/>
154
return new MatchInfo(MatchInfo.BuiltIn.Language, language, MatchKind.
Mismatch
);
163
/// - adds match disposition <see cref="MatchInfo.BuiltIn.Baseline"/> with <see cref="MatchKind.
Mismatch
"/> otherwise.<br/>
181
return new MatchInfo(MatchInfo.BuiltIn.Baseline, baselineName, MatchKind.
Mismatch
);
189
/// - if <see cref="ITemplateMetadata.Author"/> is null or empty, adds match disposition <see cref="MatchInfo.BuiltIn.Author"/> with <see cref="MatchKind.
Mismatch
"/>;<br/>
192
/// - <see cref="MatchInfo.BuiltIn.Author"/> with <see cref="MatchKind.
Mismatch
"/> otherwise.<br/>
206
return new MatchInfo(MatchInfo.BuiltIn.Author, author, MatchKind.
Mismatch
);
220
return new MatchInfo(MatchInfo.BuiltIn.Author, author, MatchKind.
Mismatch
);
229
/// - if the template does not meet the constraint or constraint cannot be evaluated, adds match disposition with <see cref="MatchKind.
Mismatch
"/>.<br/>
250
return new MatchInfo($"{MatchInfo.BuiltIn.Constraint}.{constraintDefinition.Type}", null, MatchKind.
Mismatch
);