Filter out dotfiles in code hints

Quick fix for #6067, but this may not be the total fix if we want to filter out more than dotfiles