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

fail compile on match exhaustiveness warnings #1264

Merged
merged 3 commits into from
Nov 15, 2023

Conversation

twrichards
Copy link
Contributor

@twrichards twrichards commented Oct 9, 2023

Looks like warnings as errors was turned off in 2017 38ec8bd

This reinstates that but just for match exhaustiveness warnings.

Tested and would've caught the issue in #1082 which needed to be fixed in #1262 (yep 180 PRs later).

FIXES required (before this will compile):

  • app/utils/Retriable.scala:13:58: match may not be exhaustive.
    [error] It would fail on the following inputs: Cons(), Empty
  • conf/routes:114:1: match may not be exhaustive.
    [error] It would fail on the following input: (_, _)

@twrichards twrichards requested review from a team as code owners October 9, 2023 16:12
@twrichards twrichards marked this pull request as draft October 9, 2023 16:12
Copy link
Contributor

github-actions bot commented Nov 9, 2023

This PR is stale because it has been open 30 days with no activity. Unless a comment is added or the “stale” label removed, this will be closed in 3 days

@github-actions github-actions bot added the Stale label Nov 9, 2023
@twrichards twrichards removed the Stale label Nov 9, 2023
@twrichards twrichards force-pushed the sbt-error-on-match-exhaust-warnings branch from 072d436 to 500e635 Compare November 9, 2023 09:25
@twrichards twrichards marked this pull request as ready for review November 9, 2023 09:25
@twrichards twrichards force-pushed the sbt-error-on-match-exhaust-warnings branch from 500e635 to 6d01894 Compare November 9, 2023 09:34
Copy link
Member

@akash1810 akash1810 left a comment

Choose a reason for hiding this comment

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

💎 thanks!

@twrichards twrichards force-pushed the sbt-error-on-match-exhaust-warnings branch from 6d01894 to 5c2324c Compare November 15, 2023 09:17
@twrichards twrichards enabled auto-merge November 15, 2023 09:17
@twrichards twrichards merged commit 5039fbd into main Nov 15, 2023
1 check passed
@twrichards twrichards deleted the sbt-error-on-match-exhaust-warnings branch November 15, 2023 09:22
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