I may not be right but I think that the alignment of a "good" person like you described is considered to be good even if they're not good people.
A good example of this is Miko Miyazaki. She is a lawful "good" paladin but a terrible person..
Spoiler: OOTS Comic #251
Show



And yet she still retains her paladin status (until later when.._
Spoiler: OOTS Comic #408
Show



One could argue both ways but unfortunately in real life people trying to do good as we know might not actually be good people.