And just how does the priest know what sins everyone is up to?
Canon 915 is concerned ONLY with grave sins that EVERYONE knows about. In all other cases, Communion is to be given.