Little bit tricky but you can achieve without code.
- Add a new boolean field to taxonomy term.(eg: show link(field name))
Save for each term show link value either true or false. Depend you wants to show the link or hide the link for that term.
- Add three fields like shown in the image in your views.
- Taxonomy term: Name [hidden] -- Exclude from displadisplayy and deselect link to taxonomy term
- Taxonomy term: Term ID [hidden] -- Exclude from display
- Taxonomy term: show link