vala-lint icon indicating copy to clipboard operation
vala-lint copied to clipboard

Naming of constant arrays of structs

Open jeremypw opened this issue 6 years ago • 1 comments

At the moment a format mistake is reported for lines such as:

private const GLib.OptionEntry[] options = {{......}, {......}};

because an uppercase name is expected. I am not sure this is correct. Such arrays nearly always are given lowercase names.


Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

jeremypw avatar Aug 29 '19 09:08 jeremypw

At the moment, all constant variables are expected to have uppercase names (as written in the elementary code style. So, what can be done to solve this issue? Should we exclude all constant arrays from uppercase names?

pantor avatar Sep 16 '19 14:09 pantor