We are using Codacy for our CI pipeline which is using SonarQube. There you can either select rules on codacy website or it can get the rules from a configuration file in the project repository and for SonarC# it is sonarlint.xml.
So by keeping single rule file locally in the repo I can sync rules for linting in rider and in codacy for CI pipeline.