The longer this line of reasoning goes on, the more nervous the believing reader becomes, hearing Job speak of himself in this way. A man without sin may be able to speak entirely clinically about his own reputation and righteousness, but a man with a fallen heart cannot safely do so for long.
Nevertheless, Job had a reputation for righteousness with the people and they expected him to consistently behave in a righteous way and especially when engaged in public duties. This is commendable but it is a minimum expectation for all Christians who take on public office. He is not speaking here of how God saw him but of his reputation with the people. This of course is also a danger because we are able to feed our own pride based on what we believe others think of us. We imagine that it is natural that someone as noble and gifted as we are should be regarded in such a way. Our reputation grows in our minds so that when anything threatens to take it away, we become angry and fight to defend it. Job had said, ‘The Lord gives and the Lord takes away’, but the Lord also does the same with our standing in the eyes of others.