Trivadis / plsql-cop-validators

db* CODECOP Validators

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

G-9102: false positive for collection type

PhilippSalvisberg opened this issue · comments

The following code

declare
   t_words word_ct;
begin
   t_words := word_ct();
   pkg.proc(t_words);
end;
/

throws a G-9102: Always prefix local variables with 'l_' warning.

The rule should consider the prefix t_ as valid. This might lead to false negatives, but I think it's better.

Allow also cursor names starting with c_, object names starting with o_ and common indices i and j