Do (something) by the book

To follow the rules of something exactly.

Our boss likes to do everything by the book.