the builtin “Sonar way” quality profiles are read only.
If you want to change/expand it, you need to work with a copy of “Sonar way” quality profile
and add your custom rule there.
But still I have some couple of follow-up questions.
1.Is there a way to attach 2 quality profiles to a project in Sonarqube.
2.If the above scenario is not possible, is there a way to create a single quality profile consisting of two already available quality profiles.
no, a sonarqube project has one quality profile per language
no, but you may use this
First create a copy of the Sonar way quality profile, then expand this copy with your custom rules.
Then if you want to add rules from another existing quality profiles use the compare feature.
i.e. https://yoursonarhost/profiles/show?name=CopyOfSonarWay&language=java
and use compare > select the quality profile you want rules from
the diff dashboard makes it easy to add rules from another quality profile