updated creation code to generate module with no errors from copilot #173
Quality Gate failed
Failed conditions
11.2% Duplication on New Code (required ≤ 3%)
Annotations
Check failure on line 71 in class/Files/CreateClone.php
sonarqubecloud / SonarCloud Code Analysis
Refactor this function to reduce its Cognitive Complexity from 16 to the 15 allowed.
See more on https://sonarcloud.io/project/issues?id=XoopsModules25x_modulebuilder&issues=AZ1pICAfgxGl7hYom_NH&open=AZ1pICAfgxGl7hYom_NH&pullRequest=173
Check failure on line 310 in class/Files/CheckData.php
sonarqubecloud / SonarCloud Code Analysis
Refactor this function to reduce its Cognitive Complexity from 17 to the 15 allowed.
See more on https://sonarcloud.io/project/issues?id=XoopsModules25x_modulebuilder&issues=AZ1n-0rxjlhxMrVTDaxx&open=AZ1n-0rxjlhxMrVTDaxx&pullRequest=173
Check failure on line 193 in class/Files/CreateXoopsCode.php
sonarqubecloud / SonarCloud Code Analysis
Define a constant instead of duplicating this literal "Get Form" 4 times.
See more on https://sonarcloud.io/project/issues?id=XoopsModules25x_modulebuilder&issues=AZ1n-0qFjlhxMrVTDaxs&open=AZ1n-0qFjlhxMrVTDaxs&pullRequest=173
Check failure on line 166 in class/Files/User/UserRate.php
sonarqubecloud / SonarCloud Code Analysis
Define a constant instead of duplicating this literal "$source" 3 times.
See more on https://sonarcloud.io/project/issues?id=XoopsModules25x_modulebuilder&issues=AZ1n-0mHjlhxMrVTDaxS&open=AZ1n-0mHjlhxMrVTDaxS&pullRequest=173
Check warning on line 47 in class/Files/CreateClone.php
sonarqubecloud / SonarCloud Code Analysis
Define and throw a dedicated exception instead of using a generic one.
See more on https://sonarcloud.io/project/issues?id=XoopsModules25x_modulebuilder&issues=AZ1p3fCtf8TpJOiafTeS&open=AZ1p3fCtf8TpJOiafTeS&pullRequest=173
Check warning on line 165 in class/Files/Templates/User/Defstyle/Categories.php
sonarqubecloud / SonarCloud Code Analysis
Remove this unused private "gettemplatesusercategories" method.
See more on https://sonarcloud.io/project/issues?id=XoopsModules25x_modulebuilder&issues=AZ1p3e1xf8TpJOiafTeN&open=AZ1p3e1xf8TpJOiafTeN&pullRequest=173
Check warning on line 133 in class/Files/User/UserSearch.php
sonarqubecloud / SonarCloud Code Analysis
Remove this commented out code.
See more on https://sonarcloud.io/project/issues?id=XoopsModules25x_modulebuilder&issues=AZ1n-0k5jlhxMrVTDaxG&open=AZ1n-0k5jlhxMrVTDaxG&pullRequest=173
Check warning on line 432 in class/Files/User/UserXoopsVersion.php
sonarqubecloud / SonarCloud Code Analysis
Remove this commented out code.
See more on https://sonarcloud.io/project/issues?id=XoopsModules25x_modulebuilder&issues=AZ1n-0mkjlhxMrVTDaxb&open=AZ1n-0mkjlhxMrVTDaxb&pullRequest=173
Check warning on line 273 in class/Files/CreateStructure.php
sonarqubecloud / SonarCloud Code Analysis
Define and throw a dedicated exception instead of using a generic one.
See more on https://sonarcloud.io/project/issues?id=XoopsModules25x_modulebuilder&issues=AZ1pIB6mgxGl7hYom_NB&open=AZ1pIB6mgxGl7hYom_NB&pullRequest=173
Check warning on line 90 in class/Files/User/UserFooter.php
sonarqubecloud / SonarCloud Code Analysis
Remove the unused function parameter "$language".
See more on https://sonarcloud.io/project/issues?id=XoopsModules25x_modulebuilder&issues=AZ1n-0ncjlhxMrVTDaxg&open=AZ1n-0ncjlhxMrVTDaxg&pullRequest=173
Check warning on line 43 in class/Files/CreateClone.php
sonarqubecloud / SonarCloud Code Analysis
Define and throw a dedicated exception instead of using a generic one.
See more on https://sonarcloud.io/project/issues?id=XoopsModules25x_modulebuilder&issues=AZ1p3fCtf8TpJOiafTeR&open=AZ1p3fCtf8TpJOiafTeR&pullRequest=173
Check failure on line 263 in class/Files/CheckData.php
sonarqubecloud / SonarCloud Code Analysis
Refactor this function to reduce its Cognitive Complexity from 27 to the 15 allowed.
See more on https://sonarcloud.io/project/issues?id=XoopsModules25x_modulebuilder&issues=AZ1n-0rwjlhxMrVTDaxw&open=AZ1n-0rwjlhxMrVTDaxw&pullRequest=173
Check failure on line 98 in class/Files/Templates/User/Defstyle/PagesItem.php
sonarqubecloud / SonarCloud Code Analysis
Refactor this function to reduce its Cognitive Complexity from 34 to the 15 allowed.
See more on https://sonarcloud.io/project/issues?id=XoopsModules25x_modulebuilder&issues=AZ1n-0afjlhxMrVTDawT&open=AZ1n-0afjlhxMrVTDawT&pullRequest=173
Check warning on line 283 in class/Files/admin/AdminPages.php
sonarqubecloud / SonarCloud Code Analysis
This function has 9 parameters, which is greater than the 7 authorized.
See more on https://sonarcloud.io/project/issues?id=XoopsModules25x_modulebuilder&issues=AZ1n-0oTjlhxMrVTDaxi&open=AZ1n-0oTjlhxMrVTDaxi&pullRequest=173
Check warning on line 259 in class/Files/Classes/ClassXoopsCode.php
sonarqubecloud / SonarCloud Code Analysis
This function has 8 parameters, which is greater than the 7 authorized.
See more on https://sonarcloud.io/project/issues?id=XoopsModules25x_modulebuilder&issues=AZ1n-0hZjlhxMrVTDaw1&open=AZ1n-0hZjlhxMrVTDaw1&pullRequest=173
Check warning on line 218 in class/Files/CreateArchitecture.php
sonarqubecloud / SonarCloud Code Analysis
Remove this unused "$templateType" local variable.
See more on https://sonarcloud.io/project/issues?id=XoopsModules25x_modulebuilder&issues=AZ1n-0kTjlhxMrVTDaw9&open=AZ1n-0kTjlhxMrVTDaw9&pullRequest=173
Check warning on line 149 in class/Files/Templates/User/Defstyle/Categories.php
sonarqubecloud / SonarCloud Code Analysis
Remove this unused private "gettemplatesusercategoriestfoot" method.
See more on https://sonarcloud.io/project/issues?id=XoopsModules25x_modulebuilder&issues=AZ1p3e1xf8TpJOiafTeM&open=AZ1p3e1xf8TpJOiafTeM&pullRequest=173
Check warning on line 509 in class/Files/Classes/ClassXoopsCode.php
sonarqubecloud / SonarCloud Code Analysis
This function has 8 parameters, which is greater than the 7 authorized.
See more on https://sonarcloud.io/project/issues?id=XoopsModules25x_modulebuilder&issues=AZ1n-0hZjlhxMrVTDaw2&open=AZ1n-0hZjlhxMrVTDaw2&pullRequest=173
Check warning on line 264 in class/Files/User/UserPages.php
sonarqubecloud / SonarCloud Code Analysis
This function has 8 parameters, which is greater than the 7 authorized.
See more on https://sonarcloud.io/project/issues?id=XoopsModules25x_modulebuilder&issues=AZ1n-0lwjlhxMrVTDaxJ&open=AZ1n-0lwjlhxMrVTDaxJ&pullRequest=173
Check warning on line 254 in class/Files/CreateArchitecture.php
sonarqubecloud / SonarCloud Code Analysis
Remove this commented out code.
See more on https://sonarcloud.io/project/issues?id=XoopsModules25x_modulebuilder&issues=AZ1n-0kTjlhxMrVTDaxB&open=AZ1n-0kTjlhxMrVTDaxB&pullRequest=173
Check warning on line 525 in class/Files/User/UserPages.php
sonarqubecloud / SonarCloud Code Analysis
This function has 9 parameters, which is greater than the 7 authorized.
See more on https://sonarcloud.io/project/issues?id=XoopsModules25x_modulebuilder&issues=AZ1n-0lwjlhxMrVTDaxL&open=AZ1n-0lwjlhxMrVTDaxL&pullRequest=173
Check failure on line 256 in class/Files/admin/AdminXoopsCode.php
sonarqubecloud / SonarCloud Code Analysis
Define a constant instead of duplicating this literal "\t\t\t\t" 7 times.
See more on https://sonarcloud.io/project/issues?id=XoopsModules25x_modulebuilder&issues=AZ1n-0osjlhxMrVTDaxl&open=AZ1n-0osjlhxMrVTDaxl&pullRequest=173
Check warning on line 65 in class/Files/CreateAbstractClass.php
sonarqubecloud / SonarCloud Code Analysis
Remove these useless parentheses.
See more on https://sonarcloud.io/project/issues?id=XoopsModules25x_modulebuilder&issues=AZ1n-0kmjlhxMrVTDaxD&open=AZ1n-0kmjlhxMrVTDaxD&pullRequest=173
Check warning on line 84 in class/Files/CreateClone.php
sonarqubecloud / SonarCloud Code Analysis
Define and throw a dedicated exception instead of using a generic one.
See more on https://sonarcloud.io/project/issues?id=XoopsModules25x_modulebuilder&issues=AZ1pICAfgxGl7hYom_NE&open=AZ1pICAfgxGl7hYom_NE&pullRequest=173
Check failure on line 158 in class/Files/Blocks/BlocksFilesSpotlight.php
sonarqubecloud / SonarCloud Code Analysis
Define a constant instead of duplicating this literal "\t\t\t" 8 times.
See more on https://sonarcloud.io/project/issues?id=XoopsModules25x_modulebuilder&issues=AZ1n-0fejlhxMrVTDawp&open=AZ1n-0fejlhxMrVTDawp&pullRequest=173