Skip to content

Conversation

@RobinMalfait
Copy link
Member

We currently have both parseCandidateStringsFromFiles and parseCandidateStrings. The parseCandidateStrings can take some options to make sure that you are running IO or the Parsing step in a sequential or parallel way.

Both functions accept ChangedContent which is an extension and either the raw content or a file path. We make use of the raw content in our tests, but this is also used when using the safelist option in your config.

But, now that both functions exists and one can be implementation in function of the other, it is a bit nicer to remove the duplication and just support a single function.

This code doesn't exist in "production" builds right now and the code is purely internal API so there should be no breaking chnages when deleting the parseCandidateStringsFromFiles function.

+ drop the `parseCandidateStringsFromFiles` since this can be
  implemented using `parseCandidateStrings` already.
@RobinMalfait RobinMalfait merged commit 3be6d28 into master Jun 1, 2023
@RobinMalfait RobinMalfait deleted the refactor/use-parse-candidate-strings branch June 1, 2023 11:25
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