pinterest / arcanist-linters

A collection of custom Arcanist linters
Apache License 2.0
62 stars 45 forks source link

Handle missing "offense" values #63

Closed jparise closed 3 years ago

jparise commented 3 years ago

We've encountered a number of cases where the eslint result doesn't include values for all of these expected keys. Harden the code for these cases using idx(). The internal Arcanist interface allows these values to be null, which is idx()'s default value.

Fixes #62