diff --git a/README.md b/README.md index 07a2cf4..9154f9f 100755 --- a/README.md +++ b/README.md @@ -59,7 +59,7 @@ To add a new plugin to Codesniffer: 2. Add to `src/main/scala/codacy/codesniffer/docsgen/VersionsHelper.scala` the plugin version: ```scala - lazy val newPlugin = properties("pluginNamespace/pluginName").str + lazy val newPlugin = properties("pluginNamespace/pluginName").str.replace("^","") ``` 3. Implement the plugin documentation parser inside `src/main/scala/codacy/codesniffer/docsgen/parsers`. The parser must extend `DocsParser` and override the following: diff --git a/composer.lock b/composer.lock index dafbd6f..00de870 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "2893dff5f4064db940881b32df814696", + "content-hash": "88a4faee3ab8f0e3ef79c0ff168d1c12", "packages": [ { "name": "automattic/vipwpcs", diff --git a/doc-generator/src/main/scala/codacy/codesniffer/docsgen/VersionsHelper.scala b/doc-generator/src/main/scala/codacy/codesniffer/docsgen/VersionsHelper.scala index d2ba1f3..0d50256 100644 --- a/doc-generator/src/main/scala/codacy/codesniffer/docsgen/VersionsHelper.scala +++ b/doc-generator/src/main/scala/codacy/codesniffer/docsgen/VersionsHelper.scala @@ -10,16 +10,16 @@ object VersionsHelper { composerJson("require") } - lazy val vipWordpress = properties("automattic/vipwpcs").str - lazy val cakephp = properties("cakephp/cakephp-codesniffer").str - lazy val doctrine = properties("doctrine/coding-standard").str - lazy val drupalCoder = properties("drupal/coder").str - lazy val symfony = properties("escapestudios/symfony2-coding-standard").str - lazy val magentoCS = properties("magento/magento-coding-standard").str - lazy val magentoEQP = properties("magento/marketplace-eqp").str - lazy val phpCompatibility = properties("phpcompatibility/php-compatibility").str - lazy val phpcsSecurityAudit = properties("pheromone/phpcs-security-audit").str - lazy val slevomatCS = properties("slevomat/coding-standard").str - lazy val codesniffer = properties("squizlabs/php_codesniffer").str - lazy val wordpress = properties("wp-coding-standards/wpcs").str + lazy val vipWordpress = properties("automattic/vipwpcs").str.replace("^","") + lazy val cakephp = properties("cakephp/cakephp-codesniffer").str.replace("^","") + lazy val doctrine = properties("doctrine/coding-standard").str.replace("^","") + lazy val drupalCoder = properties("drupal/coder").str.replace("^","") + lazy val symfony = properties("escapestudios/symfony2-coding-standard").str.replace("^","") + lazy val magentoCS = properties("magento/magento-coding-standard").str.replace("^","") + lazy val magentoEQP = properties("magento/marketplace-eqp").str.replace("^","") + lazy val phpCompatibility = properties("phpcompatibility/php-compatibility").str.replace("^","") + lazy val phpcsSecurityAudit = properties("pheromone/phpcs-security-audit").str.replace("^","") + lazy val slevomatCS = properties("slevomat/coding-standard").str.replace("^","") + lazy val codesniffer = properties("squizlabs/php_codesniffer").str.replace("^","") + lazy val wordpress = properties("wp-coding-standards/wpcs").str.replace("^","") } diff --git a/docs/description/Security_CVE_20132110.md b/docs/description/Security_CVE_20132110.md new file mode 100644 index 0000000..43f6d28 --- /dev/null +++ b/docs/description/Security_CVE_20132110.md @@ -0,0 +1 @@ +Security CVE related issue: 20132110 diff --git a/docs/description/Security_CVE_20134113.md b/docs/description/Security_CVE_20134113.md new file mode 100644 index 0000000..c411f18 --- /dev/null +++ b/docs/description/Security_CVE_20134113.md @@ -0,0 +1 @@ +Security CVE related issue: 20134113 diff --git a/docs/description/description.json b/docs/description/description.json index d7dbb9b..e2b4b78 100644 --- a/docs/description/description.json +++ b/docs/description/description.json @@ -2278,12 +2278,12 @@ "title" : "Security Bad Functions related issue: System Exec Functions", "parameters" : [ ] }, { - "patternId" : "Security_CVE_CVE20132110", - "title" : "Security CVE related issue: CVE20132110", + "patternId" : "Security_CVE_20132110", + "title" : "Security CVE related issue: 20132110", "parameters" : [ ] }, { - "patternId" : "Security_CVE_CVE20134113", - "title" : "Security CVE related issue: CVE20134113", + "patternId" : "Security_CVE_20134113", + "title" : "Security CVE related issue: 20134113", "parameters" : [ ] }, { "patternId" : "Security_Drupal7_AESModule", @@ -2350,10 +2350,6 @@ "patternId" : "Security_Misc_IncludeMismatch", "title" : "Security Misc related issue: Include Mismatch", "parameters" : [ ] -}, { - "patternId" : "Security_Misc_TypeJuggle", - "title" : "Security Misc related issue: Type Juggle", - "parameters" : [ ] }, { "patternId" : "SlevomatCodingStandard_Arrays_AlphabeticallySortedByKeys", "title" : "Arrays: Alphabetically Sorted By Keys", diff --git a/docs/patterns.json b/docs/patterns.json index 0960646..832ed0d 100644 --- a/docs/patterns.json +++ b/docs/patterns.json @@ -3648,14 +3648,14 @@ "languages" : [ ], "enabled" : false }, { - "patternId" : "Security_CVE_CVE20132110", + "patternId" : "Security_CVE_20132110", "level" : "Warning", "category" : "Security", "parameters" : [ ], "languages" : [ ], "enabled" : false }, { - "patternId" : "Security_CVE_CVE20134113", + "patternId" : "Security_CVE_20134113", "level" : "Warning", "category" : "Security", "parameters" : [ ], @@ -3772,13 +3772,6 @@ "parameters" : [ ], "languages" : [ ], "enabled" : false - }, { - "patternId" : "Security_Misc_TypeJuggle", - "level" : "Warning", - "category" : "Security", - "parameters" : [ ], - "languages" : [ ], - "enabled" : false }, { "patternId" : "SlevomatCodingStandard_Arrays_AlphabeticallySortedByKeys", "level" : "Info",