Write rules xml file by SonarQube ordering.