add code rules and remove Platform-dependent configurations