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)
23return new MatchInfo(MatchInfo.BuiltIn.ShortName, name, MatchKind.Mismatch); 32return new MatchInfo(MatchInfo.BuiltIn.ShortName, name, MatchKind.Mismatch); 82return new MatchInfo(MatchInfo.BuiltIn.Name, name, MatchKind.Mismatch); 117return new MatchInfo(MatchInfo.BuiltIn.Language, language, MatchKind.Mismatch);
TemplateResolution\TemplateGroupMatchInfo.cs (4)
49internal bool IsGroupMatch => _groupDispositions.All(x => x.Kind != MatchKind.Mismatch); 208if (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)
37if (otherMatches.Any(mi => mi.Kind == MatchKind.Mismatch || mi.Kind == MatchKind.InvalidName || mi.Kind == MatchKind.InvalidValue)) 42return constraintsMatches.Any(mi => mi.Kind == MatchKind.Mismatch); 59if (otherMatches.Any(mi => mi.Kind == MatchKind.Mismatch || mi.Kind == MatchKind.InvalidName || mi.Kind == MatchKind.InvalidValue)) 64return 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"/>. 42return 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"/>. 74return 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"/>. 90return 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"/>. 106return 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"/>. 122return 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"/>. 138return 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"/>. 170return 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/> 77return new MatchInfo(MatchInfo.BuiltIn.Name, name, MatchKind.Mismatch); 85/// - adds match disposition <see cref="MatchInfo.BuiltIn.Type"/> with <see cref="MatchKind.Mismatch"/> otherwise.<br/> 104return new MatchInfo(MatchInfo.BuiltIn.Type, type, MatchKind.Mismatch); 113/// - adds match disposition <see cref="MatchInfo.BuiltIn.Classification"/> with <see cref="MatchKind.Mismatch"/> otherwise.<br/> 128return new MatchInfo(MatchInfo.BuiltIn.Classification, classification, MatchKind.Mismatch); 136/// - adds match disposition <see cref="MatchInfo.BuiltIn.Language"/> with <see cref="MatchKind.Mismatch"/> otherwise.<br/> 154return new MatchInfo(MatchInfo.BuiltIn.Language, language, MatchKind.Mismatch); 163/// - adds match disposition <see cref="MatchInfo.BuiltIn.Baseline"/> with <see cref="MatchKind.Mismatch"/> otherwise.<br/> 181return 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/> 206return new MatchInfo(MatchInfo.BuiltIn.Author, author, MatchKind.Mismatch); 220return 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/> 250return new MatchInfo($"{MatchInfo.BuiltIn.Constraint}.{constraintDefinition.Type}", null, MatchKind.Mismatch);