As the grand-pappy of the detective fiction genre, the Sherlock Holmes stories are filled with liars. Otherwise what would be the fun of solving anything? Suspects, victims, even random bystanders may be lying at any given time. And Holmes himself frequently uses disguises, tricks, and misdirection to solve cases. He's like an illusionist, without the snazzy cape. What's notable is that lies and deceit never derail Holmes. Truth always triumphs in the end. In a scene repeated in every detective show ever, everyone always stands around at the end confessing/explaining everything about the case. The Sherlock Holmes stories suggest that truth can always win out in the end. But truth is not always welcome. In fact, the desire for privacy is a major thematic companion to Holmes's hunt for the truth. Balancing out the desire for the truth and the respect for certain secrets is a juggling act for Holmes and Watson.
Holmes has a flair for the dramatic and seems to enjoy deliberately startling people by revealing the truth in a dramatic fashion.
As much as Holmes pursues the truth, he also has a huge respect for people's privacy, which at times outweighs his commitment to upholding the law.