ספר המדות, A Righteous Person / Part I A Righteous Person / Part I · צד
Sefer HaMiddot 2105
צד. יֵשׁ צַדִּיק נִקְרָא טוֹב, וְיֵשׁ צַדִּיק שֶׁאֵינוֹ נִקְרָא טוֹב, וְיֵשׁ רָשָׁע רָע, וְיֵשׁ רָשָׁע שֶׁאֵינוֹ רָע.
94. There is a tzaddik who is called "good", and there is a tzaddik who is not called "good", and there is an evildoer who is evil, and an evildoer who is not evil (t.n. Rabbi Nussun points out here that the Talmud explains that this additional designation of good and evil is dependent on whether the tzadik or evildoer also harmed or helped people).