SonarScannerDotNet = '/analyzing-source-code/scanners/dotnet/introduction/',
SonarScannerGradle = '/analyzing-source-code/scanners/sonarscanner-for-gradle/',
SonarScannerMaven = '/analyzing-source-code/scanners/sonarscanner-for-maven/',
+ SonarWayQualityGate = '/user-guide/quality-gates/#using-sonar-way-the-recommended-quality-gate', // to be confirmed
Webhooks = '/project-administration/webhooks/',
}
return useQualityGateQueryInner(name);
}
-function useQualityGateForProjectQuery(project: string) {
+export function useQualityGateForProjectQuery(project: string) {
return useQuery({
queryKey: qualityQuery.projectAssoc(project),
queryFn: async ({ queryKey: [, , project] }) => {
custom_measures.metric=Metric
+#------------------------------------------------------------------------------
+#
+# AI GENERATED CODE
+#
+#------------------------------------------------------------------------------
+ai_generated_code.page=AI-Generated Code
+ai_generated_code.contains_code=Contains AI-Generated Code
+ai_generated_code.description=Select this option if your project contains AI-generated code. This will enforce the use of {sonarWayQualityGateLink} and will give your project Sonar’s {aiAssuranceLink}.
+ai_generated_code.sonar_way_quality_gate.link=Sonar way Quality Gate
+ai_generated_code.ai_code_assurance.link=AI Code Assurance
+ai_generated_code.sonar_way_quality_gate.already_selected.warning=This setting will lock the project’s Quality Gate
+ai_generated_code.sonar_way_quality_gate.already_selected.description=Projects containing AI-generated code must use Sonar way Quality Gate. As long as this setting is set to {true}, you will not be able to change this project’s Quality Gate.
+ai_generated_code.sonar_way_quality_gate.already_selected.save=Lock Quality Gate and Save
+ai_generated_code.sonar_way_quality_gate.not_selected.warning=️This setting will change the project’s quality gate
+ai_generated_code.sonar_way_quality_gate.not_selected.description=Projects containing AI-generated code must use Sonar way Quality Gate as the project-level Quality Gate. Setting this value to True will enforce the use of Sonar way.
+ai_generated_code.sonar_way_quality_gate.not_selected.save=Change Quality Gate and Save
+ai_generated_code.old_quality_gate=Old Quality Gate: {name}
+ai_generated_code.new_quality_gate=New Quality Gate: {name}
+ai_generated_code.success_message=AI-generated Code setting has been successfully updated.
+
#------------------------------------------------------------------------------
#
# PROJECT NAVIGATION