Please notice the word "righteousness" (in verse 35) and the phrase "who went about doing good." It is not a matter that Jesus Christ was righteous in the sense that He kept the commandments of God; He did not limit it to that. He did not limit it just merely to being a good person. But He extended Himself. He sacrificed Himself. He did acts of generosity, of kindness, and of good. He "went about doing good." This is the pattern!
Perhaps the word "righteousness" might sum up both aspects. But on the one hand, we have to understand that there is the strictly legal aspect—which might be looked upon as being essentially negative. The Commandments state: You shall not commit adultery; you shall not bear false witness; etc. But there is also its counterpart, where one is conscientiously looking for, and sensitive to, ways of doing "good." That is, acts of kindness, of generosity, of mercy, and even correction (if it is done in the right spirit and way). Very frequently, to correct someone is to be merciful to him or her—even though it may be painful (to them and to you) as well.