Skip to content

fix: analyze string const by comparing with full name - #79

Closed
Lorilatschki wants to merge 2 commits into
BenMorris:masterfrom
Lorilatschki:strings-matching-types-checked
Closed

Lorilatschki wants to merge 2 commits into
BenMorris:masterfrom
Lorilatschki:strings-matching-types-checked

Conversation

@Lorilatschki

Copy link
Copy Markdown

The version <=1.2.6 has checked const string values. This is missing in the new dependency implementation and has been fixed by this commit. A test has also been added.

The version <=1.2.6 has checked const string values. This is missing in the new dependency implementation and has been fixed by this commit. A test has also been added.
@Lorilatschki Lorilatschki changed the title Strings matching types checked fix: analyze string const by comparing with full name Nov 7, 2020
@NeVeSpl

NeVeSpl commented Nov 7, 2020 •

Copy link
Copy Markdown
Contributor

I would say that is a very exotic use case, looking for dependencies in string literals :D.
Anyway, you forgot to check if a string value contains any dependency, right now you are adding all string literals to _foundDependencies, no matter what they contain.
Also, you should not include files from your previous PR in this PR.

@Lorilatschki

Copy link
Copy Markdown
Author

Yes Ben you are right, this is a very exotic usecase. We do have some legacy stuff which is bound to a meta based entity framework. Therefor we have such exotic usecases which in fact are broken with the new version.
I will consider your comments and reopen another PR which only consists of this change.

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