incorrect-firebase-event-name
Warns when the event name does not comply with Firebase limitations.
Firebase requires the event name to contain 1 to 40 alphanumeric characters or underscores and start with an alphabetic character.
Additional resources:
- https://firebase.google.com/docs/reference/cpp/group/event-names
- https://firebase.google.com/docs/analytics/errors
Example
❌ Bad:
void fn() {
_analytics.logEvent(name: ''); // LINT
_analytics.logEvent(name: '😅'); // LINT
_analytics.logEvent(name: '_'); // LINT
}
✅ Good:
void fn() {
_analytics.logEvent(name: 'correct_name');
}