moevm / oclint_extensions

2 stars 1 forks source link

Аггрегация значений в выходной таблице #33

Open thehighestmath opened 2 months ago

thehighestmath commented 2 months ago

При запуске скрипта на большом наборе данных количество строк в выходной таблице велико, а количество уникальных ошибок не особо

Предлагаю сделать группировку. Чтобы вместо результирующей таблицы (по флагу) можно было получить её аггрегированную версию

origin: rule text
missing break in switch statement  
only main function all logic inside single function
only main function all logic inside single function
short variable name Length of variable name a is 1, which is shorter than the threshold of 3
short variable name Length of variable name b is 1, which is shorter than the threshold of 3
short variable name Length of variable name f is 1, which is shorter than the threshold of 3
short variable name Length of variable name s is 1, which is shorter than the threshold of 3
short variable name Length of variable name i is 1, which is shorter than the threshold of 3
short variable name Length of variable name c is 1, which is shorter than the threshold of 3
useless parentheses  

aggregated:

rule text count
missing break in switch statement    
only main function all logic inside single function 2
short variable name Length of variable name a is 1, which is shorter than the threshold of 3 6
useless parentheses   1

Ref: https://drive.google.com/file/d/1xcRs4AdzohOuQ9fumlCSx8JICF3sPnnD/view?usp=sharing

zmm commented 2 months ago

Коллеги, у данной задачи низкий приоритет.