]> source.dussan.org Git - sonarqube.git/commitdiff
Add "common" examples in JSON files examples
authorquentin-jaquier-sonarsource <quentin.jaquier@sonarsource.com>
Thu, 14 Jul 2022 15:05:34 +0000 (17:05 +0200)
committersonartech <sonartech@sonarsource.com>
Fri, 22 Jul 2022 20:03:01 +0000 (20:03 +0000)
server/sonar-docs/src/pages/analysis/security_configuration.md

index b5d815c305c40e5fee191d42e66586158f855fd6..6d0ebf0f1695190d5bdec379cde4b721a5566b4d 100644 (file)
@@ -256,6 +256,13 @@ Your JSON file should include the rule you're adding a custom element to, the el
 |         }
 |       }
 |     ]
+|   },
+|   "common": {
+|     "sources": [
+|       {
+|         "methodId": "my.package.Input#getUserInput()Ljava/lang/String;"
+|       }
+|     ]
 |   }
 | }
 |```
@@ -339,6 +346,13 @@ Your JSON file should include the rule you're adding a custom element to, the el
 |         }
 |       }
 |     ]
+|   },
+|   "common": {
+|     "sources": [
+|       {
+|         "methodId": "My\\Namespace\\ClassName\\Input::getUserInput"
+|       }
+|     ]
 |   }
 | }
 |```
@@ -423,6 +437,13 @@ Your JSON file should include the rule you're adding a custom element to, the el
 |         }
 |       }
 |     ]
+|   },
+|   "common": {
+|     "sources": [
+|       {
+|         "methodId": "My.Namespace.Input.GetUserInput()"
+|       }
+|     ]
 |   }
 | }
 |```
@@ -506,6 +527,13 @@ Your JSON file should include the rule you're adding a custom element to, the el
 |         }
 |       }
 |     ]
+|   },
+|   "common": {
+|     "sources": [
+|       {
+|         "methodId": "my.namespace.Input.get_input"
+|       }
+|     ]
 |   }
 | }
 |