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

Rule : Double Bang operator shouldn't be allowed. #6

Open
jd-alexander opened this issue Jun 17, 2020 · 0 comments
Open

Rule : Double Bang operator shouldn't be allowed. #6

jd-alexander opened this issue Jun 17, 2020 · 0 comments
Labels
enhancement New feature or request

Comments

@jd-alexander
Copy link
Contributor

Expected behavior

We shouldn't be able to use !! in our PRs. This should should fail the build because this is an unsafe nullable type conversion to a non-nullable type. It will throw an exception if the value is null.

Actual behavior

You are able to use the double bang instead of other approaches to managing nullability.

Steps to reproduce the behavior

  1. Add a double bang to a PR.
  2. Notice that when you run the lintCheck it doesn't fail.
@jd-alexander jd-alexander added the enhancement New feature or request label Jun 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant