Added a style check for using unpure code in pure classes.