menu
prefer-array-literal
Prefer an empty array literal over the canonical Array constructor
The canonical zero-argument Array.new call constructs the same empty array as [].
Instead, you SHOULD use the array literal.
Reported
1function values(): int32[] {2 return Array.new();3}Accepted
1function values(): int32[] {2 return [];3}