CodeQL's Ruby breaks parsing breaks for the following code:
sorted_array = array.sort(& custom_sorts[params[:sortby]])
I understand that the following should be how this is written, but sometimes people put weird syntax in and it shouldn't break a whole file being parsed:
sorted_array = array.sort(&custom_sorts[params[:sortby]])
CodeQL's Ruby breaks parsing breaks for the following code:
I understand that the following should be how this is written, but sometimes people put weird syntax in and it shouldn't break a whole file being parsed: