Skip to content

Adding PatternString attribute and analyzer#988

Closed
toddlang wants to merge 6 commits into
mainfrom
littlefoot/stringpatternanalyzer
Closed

Adding PatternString attribute and analyzer#988
toddlang wants to merge 6 commits into
mainfrom
littlefoot/stringpatternanalyzer

Conversation

@toddlang

Copy link
Copy Markdown
Contributor

No description provided.

#region Failing both patterns is flagged once per pattern
model.MultiPattern = /* PatternStringDoesNotMatch(ab, to match, ^[0-9]+$) | PatternStringDoesNotMatch(ab, to match, ^.{3}$) */ "ab" /**/;
#endregion
}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you add a test for implicit cast?
Like this guy: https://code.d2l.dev/#D2L/dataProvider/queryInfo/queryInfo.cs,73

public const string GoodMultiConst = "123";
}

public sealed class FieldList {

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These are explicitly for the case you came over to show me.

#endregion
}

void ConversionTests() {

@toddlang toddlang Jul 23, 2026

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These are to cover conversions.

@toddlang toddlang closed this Jul 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants