Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rewrite diff check algorithm + improve performance + fix linter fixes #1706

Merged
merged 19 commits into from
Sep 26, 2020
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
updateKeys
aminya committed Aug 2, 2020
commit 33ac2c05ce2277c34a8e642d5fed16819f929893
8 changes: 8 additions & 0 deletions lib/helpers.js
Original file line number Diff line number Diff line change
@@ -112,3 +112,11 @@ export function normalizeMessages(linterName: string, messages: Array<Message>)
message.key = messageKey(message)
}
}

// update the key of the given messages
export function updateKeys(messages: Array<Message>) {
for (let i = 0, { length } = messages; i < length; ++i) {
messages[i].key = messageKey(messages[i])
}
}