How to sort/filter/search results

How to sort/filter/search results #

The analysis results you receive in Sider Scan can be ordered in various ways.

Below you will see numbers on the header tabs 1, 2, and 3 (which are priority numbers), and next to each, there are up or down arrows (sorting).

The down arrows mean that the list is sorted in descending order for that column. The up arrows mean that the list is sorted in ascending order for that column.

Combined with the numbers, the below shows that the sorting order is

  1. firstly in descending order of the # of duplicate statements
  2. followed by ascending order of the similarity score
  3. followed by descending order of the importance index

The sorting order and the sorting priority order can be changed by clicking on each column header multiple times. By clicking on it, it will cycle through

  • ascending order
  • descending order
  • no particular order (subordinate to the order of a column of higher priority)

Once you reach ‘no particular order’, then any priority hold will also be released, and the priority number will disappear. If you cycle through this again, a different priority number will be assigned depending on whether another column already has priority.

By importance #

Under the important duplicates tab (and also possible misses tab), there is an ‘Importance’ index column that ranks the level of perceived importance of the duplicate or miss. The default setting will sort the list in order of importance in descending order. The higher the importance index, the more important it is deemed. The importance index is determined by various factors such as the number of similar statements, the similarity score between duplicates and more (under Sider’s proprietary algorithm).

By similarity score #

The similarity score between duplicates is the percentage that two duplicate pairs are identical. If a duplicate pair is an exact copy line for line, then the similarity score would be 100%. If the pair is a duplicate where certain elements such as functions name and variable names have been modified, then the similarity score would be less. Here, you can order duplicate pairs in order of similarity. Click on the header multiple to cycle through the sorting order.

By number of statements #

The number of statements of a code block is comparable to the lines of code. However, a single statement can span multiple lines, or multiple statements can be within a single line depending on the coding language. The list below can be sorted in order of the number of statements of a duplicate pair. The greater the number of statements, the greater the importance is deemed.

By buggy-ness #

In the ‘Possible misses’ tab, ‘buggy-ness’ is a relative indicator that detects possible coding mistakes and potential bugs. It is either ‘high’, ‘medium’, or ‘low’, and is determined separately from the duplicate code importance index. Buggy-ness is based on an original algorithm created by Sider.

By tag #

The list items can also be tagged, and filtered through the star tag and the ignore tab. See details here. To see them grouped, the ‘starred’ and ‘ignored’ subtabs provided a filtered view that shows just the starred ones, or the ignored ones.

By search #

Filenames or filepaths can also be searched using the search bar. Any keyword that matches the file path/directories will be returned.