| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
There was a problem hiding this comment.
Good catch.
Sorry, something went wrong.
Fixes a bug where we were looking for incorrect keys for metrics rules. Previously, we were using full language names in the keys. Now, we use the short language names in the metric ids. This is done through a simplification of the code. Also, this change does two smaller things: 1. Prints out the baseline count to the logs 2. Adds the `assertNever` function to ensure we never miss a case in a switch statement. This function is borrowed from vscode-codeql.
|
Thanks for the quick review @adityasharad, but I decided to make a change. I think this simplifies things a bit. Could you take another look? |
Sorry, something went wrong.
There was a problem hiding this comment.
Makes sense. We use the Language entity wherever possible, and convert only at the points where the ID prefix or Linguist name is needed.
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Fixes a bug where we were looking for incorrect keys for metrics rules.
Previously, we were using full language names in the keys. Now, we use
the short language names in the metric ids. This is done through a
simplification of the code.
Also, this change does two smaller things:
a switch statement. This function is borrowed from vscode-codeql.### Merge / deployment checklist