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

mrc-5970 lint, codecov and other friends #230

Merged
merged 17 commits into from
Nov 14, 2024
Merged

mrc-5970 lint, codecov and other friends #230

merged 17 commits into from
Nov 14, 2024

Conversation

M-Kusumgar
Copy link
Collaborator

@M-Kusumgar M-Kusumgar commented Nov 6, 2024

main changes:

  • the npm package codecov is actually deprecated which explains a lot of the flakiness and problems, the recommendation is to use the github action which is what i have switch to here
  • i have added a coverage command configured with istanbul provider
  • set vitest to silent, vuex and vue warnings are very annoying in the buildkite stream
  • removed check formatting for now, this is for a later time when we have a discussion about eslint rules and prettier formatting and what we want to move forward with, so i have also not included a lot of eslint rules from our original wodin file either, i think the defaults right now are actually stricter anyway

@M-Kusumgar M-Kusumgar changed the title lint fixed mrc-5970 lint, codecov and other friends Nov 6, 2024
Copy link

codecov bot commented Nov 6, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Please upload report for BASE (mrc-5967@3f9f497). Learn more about missing BASE report.

Additional details and impacted files
@@             Coverage Diff             @@
##             mrc-5967     #230   +/-   ##
===========================================
  Coverage            ?   99.78%           
===========================================
  Files               ?      160           
  Lines               ?     4110           
  Branches            ?      939           
===========================================
  Hits                ?     4101           
  Misses              ?        8           
  Partials            ?        1           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Contributor

@EmmaLRussell EmmaLRussell left a comment

Choose a reason for hiding this comment

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

I don't know if you're planning on reinstating the eslint rules, but rather than removing some valid exceptions here, I think it might be better to just retain some rules which it seems are now switched off.

Specifically it feels like it would be good to retain the following to keep us tidy:

  • no-explicit-any
  • no-unused-vars
  • no-setup-props-destructure

Not especially bothered about this others personally!

@EmmaLRussell
Copy link
Contributor

Coverage changes look great, good to deflakify that! 😆

@M-Kusumgar M-Kusumgar requested review from EmmaLRussell and removed request for EmmaLRussell November 13, 2024 22:30
@M-Kusumgar
Copy link
Collaborator Author

have switched on the rules, i was planning to discuss the rules in more detail with you and anmol and prettier in this ticket https://mrc-ide.myjetbrains.com/youtrack/issue/mrc-5973/eslint-and-prettier-discussion-ticket but have added those three rules as they seem uncontroversial (although no-setup-props-destructure is something we do a lot and i may lean towards not having that rule but happy to put it in right now)

i also went on a mission to rid the codebase of all the anys, felt great but also discovered a bug! we were using object.details instead of object.detail in isApiError so also fixed some tests related to it and fixed the code

Copy link
Contributor

@EmmaLRussell EmmaLRussell left a comment

Choose a reason for hiding this comment

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

Great, thanks!

@M-Kusumgar M-Kusumgar changed the base branch from mrc-5967 to mrc-5945 November 14, 2024 20:18
@M-Kusumgar M-Kusumgar merged commit c172b2f into mrc-5945 Nov 14, 2024
3 checks passed
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