diff --git a/.sonarqube/conf/0/FilesToAnalyze.txt b/.sonarqube/conf/0/FilesToAnalyze.txt new file mode 100644 index 0000000..65ce418 --- /dev/null +++ b/.sonarqube/conf/0/FilesToAnalyze.txt @@ -0,0 +1,28 @@ +D:\Projects\Test\my-weather-api\Controllers\WeatherForecastController.cs +D:\Projects\Test\my-weather-api\Program.cs +D:\Projects\Test\my-weather-api\WeatherForecast.cs +D:\Projects\Test\my-weather-api\obj\Debug\net7.0\my-weather-api.GlobalUsings.g.cs +D:\Projects\Test\my-weather-api\obj\Debug\net7.0\.NETCoreApp,Version=v7.0.AssemblyAttributes.cs +D:\Projects\Test\my-weather-api\obj\Debug\net7.0\my-weather-api.AssemblyInfo.cs +D:\Projects\Test\my-weather-api\obj\Debug\net7.0\my-weather-api.MvcApplicationPartsAssemblyInfo.cs +D:\Projects\Test\my-weather-api\publish\web.config +D:\Projects\Test\my-weather-api\appsettings.Development.json +D:\Projects\Test\my-weather-api\appsettings.json +D:\Projects\Test\my-weather-api\publish\appsettings.Development.json +D:\Projects\Test\my-weather-api\publish\appsettings.json +D:\Projects\Test\my-weather-api\publish\my-weather-api.deps.json +D:\Projects\Test\my-weather-api\publish\my-weather-api.runtimeconfig.json +D:\Projects\Test\my-weather-api\.dockerignore +D:\Projects\Test\my-weather-api\.drone.yml +D:\Projects\Test\my-weather-api\.gitignore +D:\Projects\Test\my-weather-api\Dockerfile +D:\Projects\Test\my-weather-api\publish\Microsoft.AspNetCore.OpenApi.dll +D:\Projects\Test\my-weather-api\publish\Microsoft.OpenApi.dll +D:\Projects\Test\my-weather-api\publish\my-weather-api.dll +D:\Projects\Test\my-weather-api\publish\my-weather-api.exe +D:\Projects\Test\my-weather-api\publish\my-weather-api.pdb +D:\Projects\Test\my-weather-api\publish\Swashbuckle.AspNetCore.Swagger.dll +D:\Projects\Test\my-weather-api\publish\Swashbuckle.AspNetCore.SwaggerGen.dll +D:\Projects\Test\my-weather-api\publish\Swashbuckle.AspNetCore.SwaggerUI.dll +D:\Projects\Test\my-weather-api\test.txt +D:\Projects\Test\my-weather-api\Properties\launchSettings.json diff --git a/.sonarqube/conf/0/ProjectOutFolderPath.txt b/.sonarqube/conf/0/ProjectOutFolderPath.txt new file mode 100644 index 0000000..453d0c2 --- /dev/null +++ b/.sonarqube/conf/0/ProjectOutFolderPath.txt @@ -0,0 +1 @@ +D:\Projects\Test\my-weather-api\.sonarqube\out\0 diff --git a/.sonarqube/conf/0/SonarProjectConfig.xml b/.sonarqube/conf/0/SonarProjectConfig.xml new file mode 100644 index 0000000..ff10558 --- /dev/null +++ b/.sonarqube/conf/0/SonarProjectConfig.xml @@ -0,0 +1,9 @@ + + + D:\Projects\Test\my-weather-api\.sonarqube\conf\SonarQubeAnalysisConfig.xml + D:\Projects\Test\my-weather-api\my-weather-api.csproj + D:\Projects\Test\my-weather-api\.sonarqube\conf\0\FilesToAnalyze.txt + D:\Projects\Test\my-weather-api\.sonarqube\out\0 + Product + net7.0 + \ No newline at end of file diff --git a/.sonarqube/conf/Sonar-cs-none.ruleset b/.sonarqube/conf/Sonar-cs-none.ruleset new file mode 100644 index 0000000..1b1a36c --- /dev/null +++ b/.sonarqube/conf/Sonar-cs-none.ruleset @@ -0,0 +1,404 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/.sonarqube/conf/Sonar-cs.ruleset b/.sonarqube/conf/Sonar-cs.ruleset new file mode 100644 index 0000000..307d446 --- /dev/null +++ b/.sonarqube/conf/Sonar-cs.ruleset @@ -0,0 +1,404 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/.sonarqube/conf/Sonar-vbnet-none.ruleset b/.sonarqube/conf/Sonar-vbnet-none.ruleset new file mode 100644 index 0000000..0fec0ea --- /dev/null +++ b/.sonarqube/conf/Sonar-vbnet-none.ruleset @@ -0,0 +1,178 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/.sonarqube/conf/Sonar-vbnet.ruleset b/.sonarqube/conf/Sonar-vbnet.ruleset new file mode 100644 index 0000000..6267b35 --- /dev/null +++ b/.sonarqube/conf/Sonar-vbnet.ruleset @@ -0,0 +1,178 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/.sonarqube/conf/SonarQubeAnalysisConfig.xml b/.sonarqube/conf/SonarQubeAnalysisConfig.xml new file mode 100644 index 0000000..af042dc --- /dev/null +++ b/.sonarqube/conf/SonarQubeAnalysisConfig.xml @@ -0,0 +1,183 @@ + + + D:\Projects\Test\my-weather-api\.sonarqube\conf + D:\Projects\Test\my-weather-api\.sonarqube\out + D:\Projects\Test\my-weather-api\.sonarqube\bin + D:\Projects\Test\my-weather-api + true + https://sonarqube.devops.cargostart.tech + 9.9.1.69595 + my-weather-app + + + + + + + + + + 8.51.0.59060 + true + .ts,.tsx,.cts,.mts + SonarQube + false + false + **/vendor/** + .tf + true + 60 + SonarAnalyzer.CSharp + false + false + .css,.less,.scss + .html,.xhtml,.cshtml,.vbhtml,.aspx,.ascx,.rhtml,.erb,.shtm,.shtml,.cmp,.twig + false + false + true + false + .scala + true + SonarAnalyzer.VisualBasic + AWSTemplateFormatVersion + true + 30 + 52 + https://secure.gravatar.com/avatar/{EMAIL_MD5}.jpg?s={SIZE}&d=identicon + 600 + .jsp,.jspf,.jspx + 1000 + amd,applescript,atomtest,browser,commonjs,couch,embertest,flow,greasemonkey,jasmine,jest,jquery,meteor,mocha,mongo,nashorn,node,phantomjs,prototypejs,protractor,qunit,rhino,serviceworker,shared-node-browser,shelljs,webextensions,worker,wsh,yui + false + **/vendor/** + false + .vb + 30 + true + py + .cs + true + SonarAnalyzer-8.51.0.59060.zip + .java,.jav + .kt + php,php3,php4,php5,phtml,inc + .xml,.xsd,.xsl + 260 + 3600000 + true + false + coverage-reports/*coverage-*.xml + 8.51.0.59060 + .go + sonarqube + 104 + true + **/vendor/** + false + as + 20 + false + https://api.github.com/ + .rb + true + xunit-reports/xunit-result-*.xml + angular,goog,google,OenLayers,d3,dojo,dojox,dijit,Backbone,moment,casper,_,sap + 24 + .yaml,.yml + false + true + https://github.com/ + SonarAnalyzer.VisualBasic + noreply@nowhere + 8.51.0.59060 + 4 + SonarAnalyzer.VisualBasic + [SONARQUBE] + false + csharp + true + .json + SAML + coverage/.resultset.json + SonarAnalyzer-8.51.0.59060.zip + true + main + SonarAnalyzer.CSharp + false + SonarAnalyzer.CSharp + 0.05,0.1,0.2,0.5 + false + true + 8.51.0.59060 + false + .js,.jsx,.cjs,.mjs,.vue + false + NOT_ACCEPTED + https://gitlab.com + vbnet + https://update.sonarsource.org/update-center.properties + 30/08/2023 10:49:23 + 46AF5D23-AYonmKzq70Zzg_oO1Yt0 + + + https://sonarqube.devops.cargostart.tech + + + + cs + D:\Projects\Test\my-weather-api\.sonarqube\conf\Sonar-cs.ruleset + D:\Projects\Test\my-weather-api\.sonarqube\conf\Sonar-cs-none.ruleset + + + + C:\Users\Filippo Passeggieri\AppData\Local\Temp\.sonarqube\resources\4\Google.Protobuf.dll + C:\Users\Filippo Passeggieri\AppData\Local\Temp\.sonarqube\resources\4\SonarAnalyzer.CFG.dll + C:\Users\Filippo Passeggieri\AppData\Local\Temp\.sonarqube\resources\4\SonarAnalyzer.CSharp.dll + C:\Users\Filippo Passeggieri\AppData\Local\Temp\.sonarqube\resources\4\SonarAnalyzer.dll + C:\Users\Filippo Passeggieri\AppData\Local\Temp\.sonarqube\resources\4\THIRD-PARTY-NOTICES.txt + + + + + C:\Users\Filippo Passeggieri\AppData\Local\Temp\.sonarqube\resources\5\Google.Protobuf.dll + C:\Users\Filippo Passeggieri\AppData\Local\Temp\.sonarqube\resources\5\SonarAnalyzer.CFG.dll + C:\Users\Filippo Passeggieri\AppData\Local\Temp\.sonarqube\resources\5\SonarAnalyzer.dll + C:\Users\Filippo Passeggieri\AppData\Local\Temp\.sonarqube\resources\5\SonarAnalyzer.VisualBasic.dll + C:\Users\Filippo Passeggieri\AppData\Local\Temp\.sonarqube\resources\5\THIRD-PARTY-NOTICES.txt + + + + + D:\Projects\Test\my-weather-api\.sonarqube\conf\cs\SonarLint.xml + + + + vbnet + D:\Projects\Test\my-weather-api\.sonarqube\conf\Sonar-vbnet.ruleset + D:\Projects\Test\my-weather-api\.sonarqube\conf\Sonar-vbnet-none.ruleset + + + + C:\Users\Filippo Passeggieri\AppData\Local\Temp\.sonarqube\resources\4\Google.Protobuf.dll + C:\Users\Filippo Passeggieri\AppData\Local\Temp\.sonarqube\resources\4\SonarAnalyzer.CFG.dll + C:\Users\Filippo Passeggieri\AppData\Local\Temp\.sonarqube\resources\4\SonarAnalyzer.CSharp.dll + C:\Users\Filippo Passeggieri\AppData\Local\Temp\.sonarqube\resources\4\SonarAnalyzer.dll + C:\Users\Filippo Passeggieri\AppData\Local\Temp\.sonarqube\resources\4\THIRD-PARTY-NOTICES.txt + + + + + C:\Users\Filippo Passeggieri\AppData\Local\Temp\.sonarqube\resources\5\Google.Protobuf.dll + C:\Users\Filippo Passeggieri\AppData\Local\Temp\.sonarqube\resources\5\SonarAnalyzer.CFG.dll + C:\Users\Filippo Passeggieri\AppData\Local\Temp\.sonarqube\resources\5\SonarAnalyzer.dll + C:\Users\Filippo Passeggieri\AppData\Local\Temp\.sonarqube\resources\5\SonarAnalyzer.VisualBasic.dll + C:\Users\Filippo Passeggieri\AppData\Local\Temp\.sonarqube\resources\5\THIRD-PARTY-NOTICES.txt + + + + + D:\Projects\Test\my-weather-api\.sonarqube\conf\vbnet\SonarLint.xml + + + + \ No newline at end of file diff --git a/.sonarqube/conf/cs/SonarLint.xml b/.sonarqube/conf/cs/SonarLint.xml new file mode 100644 index 0000000..7b164dc --- /dev/null +++ b/.sonarqube/conf/cs/SonarLint.xml @@ -0,0 +1,865 @@ + + + + + sonar.cs.ignoreHeaderComments + true + + + sonar.cs.analyzeGeneratedCode + false + + + sonar.cs.file.suffixes + .cs + + + sonar.cs.roslyn.ignoreIssues + false + + + + + S2223 + + + S2225 + + + S2344 + + + S2346 + + + S2589 + + + S3433 + + + S1134 + + + S1135 + + + S2345 + + + S4524 + + + S2222 + + + S2342 + + + flagsAttributeFormat + ^([A-Z]{1,3}[a-z0-9]+)*([A-Z]{2})?s$ + + + format + ^([A-Z]{1,3}[a-z0-9]+)*([A-Z]{2})?$ + + + + + S2583 + + + S1144 + + + S2114 + + + S2115 + + + S2234 + + + S2479 + + + S3444 + + + S3445 + + + S3447 + + + S1264 + + + S3329 + + + S3440 + + + S3442 + + + S3443 + + + S3449 + + + S3655 + + + S3776 + + + threshold + 15 + + + propertyThreshold + 3 + + + + + S3897 + + + S1110 + + + S2201 + + + S2688 + + + S4502 + + + S1116 + + + S1117 + + + S1118 + + + S1479 + + + maximum + 30 + + + + + S2326 + + + S2328 + + + S2681 + + + S3415 + + + S4507 + + + S1121 + + + S1123 + + + S1125 + + + S2692 + + + S2696 + + + S2699 + + + S4635 + + + S1006 + + + S1481 + + + S2219 + + + S3237 + + + S3358 + + + S3427 + + + S3598 + + + S2386 + + + S3236 + + + S3597 + + + S4200 + + + S5773 + + + S1172 + + + S4201 + + + S4456 + + + S4457 + + + S5659 + + + S3249 + + + S3246 + + + S3005 + + + S3247 + + + S4211 + + + S5547 + + + S3244 + + + S5542 + + + S1066 + + + S1186 + + + S2275 + + + S4210 + + + S1185 + + + S3241 + + + S3457 + + + S2368 + + + S2245 + + + S3458 + + + S4423 + + + S1155 + + + S2123 + + + S3453 + + + S3456 + + + S4426 + + + S2365 + + + S2486 + + + S3451 + + + S3330 + + + S5753 + + + S3217 + + + S3218 + + + S3459 + + + S4428 + + + S3450 + + + S927 + + + S1048 + + + S2259 + + + S5766 + + + S1168 + + + S2257 + + + S3466 + + + S2376 + + + S3343 + + + S3346 + + + S3464 + + + S2252 + + + S3220 + + + S4433 + + + S1163 + + + S818 + + + S2251 + + + S2372 + + + S4790 + + + S2743 + + + S4792 + + + S1656 + + + S2995 + + + S3600 + + + S907 + + + S2996 + + + S3963 + + + S2755 + + + S2757 + + + S2997 + + + S3603 + + + S3604 + + + S3966 + + + S1643 + + + S1751 + + + S1764 + + + S1871 + + + S2737 + + + S2971 + + + S2612 + + + S2857 + + + S3875 + + + S1210 + + + S1450 + + + S3871 + + + S1104 + + + S1215 + + + S1699 + + + S2306 + + + S2551 + + + S3400 + + + S3877 + + + S3884 + + + S3885 + + + S3887 + + + S3998 + + + S1313 + + + S2436 + + + max + 2 + + + maxMethod + 3 + + + + + S2437 + + + S3881 + + + S3889 + + + S2761 + + + S3610 + + + S3971 + + + S3972 + + + S3973 + + + S4830 + + + S3981 + + + S3984 + + + S1206 + + + S3626 + + + S1905 + + + S1939 + + + S1940 + + + S1944 + + + S3869 + + + S4061 + + + S5034 + + + S1854 + + + S4070 + + + S5042 + + + S1862 + + + S2953 + + + S3923 + + + S3925 + + + S3926 + + + S3927 + + + S3928 + + + S125 + + + S1607 + + + S1848 + + + S2930 + + + S2933 + + + S2934 + + + S3903 + + + S3904 + + + S110 + + + max + 5 + + + + + S2068 + + + credentialWords + password, passwd, pwd, passphrase + + + + + S6422 + + + S112 + + + S2187 + + + S3397 + + + S4487 + + + S5332 + + + S6424 + + + S2183 + + + S2184 + + + S5693 + + + fileUploadSizeLimit + 8000000 + + + + + S6420 + + + S107 + + + max + 7 + + + + + S108 + + + S3169 + + + S4019 + + + S3168 + + + S4015 + + + S4136 + + + S1199 + + + S2077 + + + S2190 + + + S1075 + + + S3010 + + + S3011 + + + S3251 + + + S3256 + + + S3376 + + + S4581 + + + S4586 + + + S101 + + + S2178 + + + S3264 + + + S3267 + + + S4220 + + + S4583 + + + S5443 + + + S5445 + + + S2053 + + + S2290 + + + S2292 + + + S3260 + + + S3261 + + + S3262 + + + S3263 + + + S3265 + + + S6419 + + + S2291 + + + S4144 + + + S6444 + + + S3172 + + + S4036 + + + S4143 + + + S4159 + + + S4260 + + + S2092 + + + S4035 + + + S4158 + + + S4275 + + + S4277 + + + S5122 + + + S3060 + + + + + diff --git a/.sonarqube/conf/vbnet/SonarLint.xml b/.sonarqube/conf/vbnet/SonarLint.xml new file mode 100644 index 0000000..b357f72 --- /dev/null +++ b/.sonarqube/conf/vbnet/SonarLint.xml @@ -0,0 +1,477 @@ + + + + + sonar.vbnet.ignoreHeaderComments + true + + + sonar.vbnet.file.suffixes + .vb + + + sonar.vbnet.roslyn.ignoreIssues + false + + + sonar.vbnet.analyzeGeneratedCode + false + + + + + S1654 + + + format + ^[a-z][a-z0-9]*([A-Z]{1,3}[a-z0-9]+)*([A-Z]{2})?$ + + + + + S2225 + + + S2346 + + + S2347 + + + format + ^(([a-z][a-z0-9]*)?([A-Z]{1,3}[a-z0-9]+)*([A-Z]{2})?_)?([A-Z]{1,3}[a-z0-9]+)*([A-Z]{2})?$ + + + + + S112 + + + S1134 + + + S1135 + + + S1656 + + + S2068 + + + credentialWords + password, passwd, pwd, passphrase + + + + + S2222 + + + S2340 + + + S2342 + + + format + ^([A-Z]{1,3}[a-z0-9]+)*([A-Z]{2})?$ + + + flagsAttributeFormat + ^([A-Z]{1,3}[a-z0-9]+)*([A-Z]{2})?s$ + + + + + S2344 + + + S2345 + + + S2349 + + + S6146 + + + S907 + + + S5693 + + + fileUploadSizeLimit + 8000000 + + + + + S6145 + + + S107 + + + max + 7 + + + + + S108 + + + S1542 + + + format + ^([A-Z]{1,3}[a-z0-9]+)*([A-Z]{2})?$ + + + + + S1940 + + + S2234 + + + S2355 + + + S2358 + + + S114 + + + format + ^I([A-Z]{1,3}[a-z0-9]+)*([A-Z]{2})?$ + + + + + S117 + + + format + ^[a-z][a-z0-9]*([A-Z]{1,3}[a-z0-9]+)*([A-Z]{2})?$ + + + + + S1751 + + + S2077 + + + S2352 + + + S2359 + + + S2757 + + + S3449 + + + S3603 + + + S3776 + + + threshold + 15 + + + propertyThreshold + 3 + + + + + S4136 + + + S1075 + + + S1110 + + + S1123 + + + S1125 + + + S1197 + + + S1479 + + + maximum + 30 + + + + + S1643 + + + S1764 + + + S1871 + + + S3011 + + + S4507 + + + S4581 + + + S4583 + + + S4586 + + + S5443 + + + S101 + + + format + ^([A-Z]{1,3}[a-z0-9]+)*([A-Z]{2})?$ + + + + + S1481 + + + S1645 + + + S2178 + + + S2612 + + + S2692 + + + S2737 + + + S3358 + + + S3385 + + + S3598 + + + S5042 + + + S5445 + + + S1172 + + + S1862 + + + S2304 + + + format + ^([A-Z]{1,3}[a-z0-9]+)*([A-Z]{2})?(\.([A-Z]{1,3}[a-z0-9]+)*([A-Z]{2})?)*$ + + + + + S2387 + + + S2951 + + + S3871 + + + S3884 + + + S3998 + + + S4201 + + + S5547 + + + S5659 + + + S5944 + + + S1066 + + + S1186 + + + S2551 + + + S3889 + + + S3923 + + + S3926 + + + S3927 + + + S4210 + + + S5542 + + + S1313 + + + S2368 + + + S2437 + + + S4423 + + + S1155 + + + S3453 + + + S6444 + + + S2365 + + + S2761 + + + S4144 + + + S5753 + + + S4428 + + + S927 + + + S1048 + + + S2257 + + + S2259 + + + S3466 + + + S4143 + + + S4159 + + + S4260 + + + S4830 + + + S2375 + + + minimumSeriesLength + 6 + + + + + S2376 + + + S3464 + + + S3981 + + + S4036 + + + S4277 + + + S1163 + + + S3869 + + + S3903 + + + S3904 + + + S2372 + + + S4275 + + + S4790 + + + S4792 + + + + + diff --git a/.sonarqube/out/.sonar/.sonar_lock b/.sonarqube/out/.sonar/.sonar_lock new file mode 100644 index 0000000..e69de29 diff --git a/.sonarqube/out/.sonar/report-task.txt b/.sonarqube/out/.sonar/report-task.txt new file mode 100644 index 0000000..b975e73 --- /dev/null +++ b/.sonarqube/out/.sonar/report-task.txt @@ -0,0 +1,6 @@ +projectKey=my-weather-app +serverUrl=https://sonarqube.devops.cargostart.tech +serverVersion=9.9.1.69595 +dashboardUrl=https://sonarqube.devops.cargostart.tech/dashboard?id=my-weather-app +ceTaskId=AYpLqvIyx7FALQtc-lUC +ceTaskUrl=https://sonarqube.devops.cargostart.tech/api/ce/task?id=AYpLqvIyx7FALQtc-lUC diff --git a/.sonarqube/out/0/Issues.json b/.sonarqube/out/0/Issues.json new file mode 100644 index 0000000..a40d69e --- /dev/null +++ b/.sonarqube/out/0/Issues.json @@ -0,0 +1,58 @@ +{ + "$schema": "http://json.schemastore.org/sarif-1.0.0", + "version": "1.0.0", + "runs": [ + { + "tool": { + "name": "Microsoft (R) Visual C# Compiler", + "version": "4.7.0.0", + "fileVersion": "4.7.0-3.23366.1 (dad7898a)", + "semanticVersion": "4.7.0", + "language": "en-GB" + }, + "results": [ + { + "ruleId": "S4487", + "level": "warning", + "message": "Remove this unread private field '_logger' or refactor the code to use its value.", + "locations": [ + { + "resultFile": { + "uri": "file:///D:/Projects/Test/my-weather-api/Controllers/WeatherForecastController.cs", + "region": { + "startLine": 14, + "startColumn": 57, + "endLine": 14, + "endColumn": 64 + } + } + } + ], + "properties": { + "warningLevel": 1 + } + } + ], + "rules": { + "S4487": { + "id": "S4487", + "shortDescription": "Unread \"private\" fields should be removed", + "fullDescription": "Private fields only used to store values without reading them later is a case of dead store. So changing the value of such field is useless and most probably indicates a serious error in the code.", + "defaultLevel": "note", + "helpUri": "https://rules.sonarsource.com/csharp/RSPEC-4487", + "properties": { + "category": "Critical Code Smell", + "isEnabledByDefault": true, + "tags": [ + "C#", + "MainSourceScope", + "TestSourceScope", + "SonarWay", + "Unnecessary" + ] + } + } + } + } + ] +} \ No newline at end of file diff --git a/.sonarqube/out/0/ProjectInfo.xml b/.sonarqube/out/0/ProjectInfo.xml new file mode 100644 index 0000000..f816b1a --- /dev/null +++ b/.sonarqube/out/0/ProjectInfo.xml @@ -0,0 +1,19 @@ + + + my-weather-api + C# + Product + b05abbad-4eec-453e-a3cb-cf5bef6dbeee + D:\Projects\Test\my-weather-api\my-weather-api.csproj + false + + + + + D:\Projects\Test\my-weather-api\.sonarqube\out\0\Issues.json + D:\Projects\Test\my-weather-api\.sonarqube\out\0 + + Debug + AnyCPU + net7.0 + \ No newline at end of file diff --git a/.sonarqube/out/0/output-cs/file-metadata.pb b/.sonarqube/out/0/output-cs/file-metadata.pb new file mode 100644 index 0000000..b4fdb38 --- /dev/null +++ b/.sonarqube/out/0/output-cs/file-metadata.pb @@ -0,0 +1,8 @@ +Q +HD:\Projects\Test\my-weather-api\Controllers\WeatherForecastController.csutf-83 +*D:\Projects\Test\my-weather-api\Program.csutf-8; +2D:\Projects\Test\my-weather-api\WeatherForecast.csutf-8\ +QD:\Projects\Test\my-weather-api\obj\Debug\net7.0\my-weather-api.GlobalUsings.g.csutf-8j +_D:\Projects\Test\my-weather-api\obj\Debug\net7.0\.NETCoreApp,Version=v7.0.AssemblyAttributes.csutf-8Z +OD:\Projects\Test\my-weather-api\obj\Debug\net7.0\my-weather-api.AssemblyInfo.csutf-8m +bD:\Projects\Test\my-weather-api\obj\Debug\net7.0\my-weather-api.MvcApplicationPartsAssemblyInfo.csutf-8 \ No newline at end of file diff --git a/.sonarqube/out/0/output-cs/log.pb b/.sonarqube/out/0/output-cs/log.pb new file mode 100644 index 0000000..7c901bc --- /dev/null +++ b/.sonarqube/out/0/output-cs/log.pb @@ -0,0 +1 @@ +Roslyn version: 4.7.0.0Language version: CSharp11!Concurrent execution: enabledxtFile 'D:\Projects\Test\my-weather-api\obj\Debug\net7.0\my-weather-api.GlobalUsings.g.cs' was recognized as generated‡‚File 'D:\Projects\Test\my-weather-api\obj\Debug\net7.0\.NETCoreApp,Version=v7.0.AssemblyAttributes.cs' was recognized as generatedvrFile 'D:\Projects\Test\my-weather-api\obj\Debug\net7.0\my-weather-api.AssemblyInfo.cs' was recognized as generatedŠ…File 'D:\Projects\Test\my-weather-api\obj\Debug\net7.0\my-weather-api.MvcApplicationPartsAssemblyInfo.cs' was recognized as generated \ No newline at end of file diff --git a/.sonarqube/out/0/output-cs/metrics.pb b/.sonarqube/out/0/output-cs/metrics.pb new file mode 100644 index 0000000..c410ffc --- /dev/null +++ b/.sonarqube/out/0/output-cs/metrics.pb @@ -0,0 +1,8 @@ +x +HD:\Projects\Test\my-weather-api\Controllers\WeatherForecastController.cs 8r +  ‚ +T +*D:\Projects\Test\my-weather-api\Program.cs8j r  + x‚  + D +2D:\Projects\Test\my-weather-api\WeatherForecast.cs 8r \ No newline at end of file diff --git a/.sonarqube/out/0/output-cs/symrefs.pb b/.sonarqube/out/0/output-cs/symrefs.pb new file mode 100644 index 0000000..a4bfa6d --- /dev/null +++ b/.sonarqube/out/0/output-cs/symrefs.pb @@ -0,0 +1,27 @@ +Ø +HD:\Projects\Test\my-weather-api\Controllers\WeatherForecastController.cs + & 6- F +  % . 3 < +8 ?  +H N  + +( + +- 2> Cœ +*D:\Projects\Test\my-weather-api\Program.cs, +     + + + @ + + +         z +2D:\Projects\Test\my-weather-api\WeatherForecast.cs + +  + +  +   * 6 + +    + +    \ No newline at end of file diff --git a/.sonarqube/out/0/output-cs/token-cpd.pb b/.sonarqube/out/0/output-cs/token-cpd.pb new file mode 100644 index 0000000..7938214 --- /dev/null +++ b/.sonarqube/out/0/output-cs/token-cpd.pb @@ -0,0 +1,337 @@ +Æ +HD:\Projects\Test\my-weather-api\Controllers\WeatherForecastController.cs + namespace  +my_weather_api +  +.  + Controllers $ +;$ % +[  + ApiController  +]  +[  +Route  +(  +$str  +)  +]  +public  +class % +WeatherForecastController & +:' ( +ControllerBase) 7 +{  +private    +static    +readonly    +string   " +[  " # +]  # $ + Summaries  % . +=  / 0 +new  1 4 +[  4 5 +]  5 6 +{ + +  +$str    +,    +$str    +,    +$str   ' +,  ' ( +$str  ) / +,  / 0 +$str  1 7 +,  7 8 +$str  9 ? +,  ? @ +$str  A H +,  H I +$str  J O +,  O P +$str  Q ] +,  ] ^ +$str  _ j +}    +;    +private  +readonly  +ILogger  +< % +WeatherForecastController 6 +>6 7 +_logger8 ? +;? @ +public +% +WeatherForecastController $ +($ % +ILogger% , +<, -% +WeatherForecastController- F +>F G +loggerH N +)N O +{  +_logger  +=  +logger  +;  +}  +[  +HttpGet  +(  +Name  +=  +$str ( +)( ) +]) * +public + + IEnumerable  +<  +WeatherForecast & +>& ' +Get( + +(+ , +), - +{  +return  + +Enumerable  +.  +Range  +(  +$num ! +,! " +$num# $ +)$ % +.% & +Select& , +(, - +index- 2 +=>3 5 +new6 9 +WeatherForecast: I +{  +Date  +=  +DateOnly  +.  + FromDateTime ( +(( ) +DateTime) 1 +.1 2 +Now2 5 +.5 6 +AddDays6 = +(= > +index> C +)C D +)D E +,E F + TemperatureC  +=  +Random ! +.! " +Shared" ( +.( ) +Next) - +(- . +-. / +$num/ 1 +,1 2 +$num3 5 +)5 6 +,6 7 +Summary  +=  + Summaries  +[  +Random & +.& ' +Shared' - +.- . +Next. 2 +(2 3 + Summaries3 < +.< = +Length= C +)C D +]D E +}  +) + +.  +ToArray  +(  +)  +;  +}  +}  î +*D:\Projects\Test\my-weather-api\Program.cs +var  +builder  +=  +WebApplication  +.  + CreateBuilder * +(* + +args+ / +)/ 0 +;0 1 +builder  +.  +Services  +.  +AddControllers  +(  +) ! +;! " +builder  +.  +Services  +. # +AddEndpointsApiExplorer ( +(( ) +)) * +;* + +builder  +.  +Services  +.  + AddSwaggerGen  +(  +)  +; ! +var + +  +app + +  += + +  +builder + + +  +. + +  +Build + +  +( + +  +) + +  +; + +  +if   +(    +app    +.    + Environment    +.    + IsDevelopment   ! +(  ! " +)  " # +)  # $ +{  +app  +.  + +UseSwagger  +(  +)  +;  +app  +.  + UseSwaggerUI  +(  +)  +;  +}  +app  +.  +UseAuthorization  +(  +)  +;  +app  +.  +MapControllers  +(  +)  +;  +app  +.  +Run  +(  +)  +; +¸ +2D:\Projects\Test\my-weather-api\WeatherForecast.cs + namespace  +my_weather_api +  +;  +public  +class  +WeatherForecast  +{  +public + +DateOnly  +Date  +{  +get  +;  +set # +;# $ +}% & +public + +int  + TemperatureC  +{  +get ! +;! " +set# & +;& ' +}( ) +public   + +int    + TemperatureF    +=>    +$num   ! ++  " # +(  $ % +int  % ( +)  ( ) +(  ) * + TemperatureC  * 6 +/  7 8 +$num  9 ? +)  ? @ +;  @ A +public   + +string    +?    +Summary    +{    +get    +;   ! +set  " % +;  % & +}  ' ( +}   \ No newline at end of file diff --git a/.sonarqube/out/0/output-cs/token-type.pb b/.sonarqube/out/0/output-cs/token-type.pb new file mode 100644 index 0000000..64296c3 --- /dev/null +++ b/.sonarqube/out/0/output-cs/token-type.pb @@ -0,0 +1,23 @@ +ò +HD:\Projects\Test\my-weather-api\Controllers\WeatherForecastController.cs +  +        +     & ) 7                "   1 4            '   ) /   1 7   9 ?   A H   J O   Q ]   _ j        6  +  $ % , - F    (  +    &      ! # $ 6 9 : I   ) 1  ! / 1 3 5  &‚ +*D:\Projects\Test\my-weather-api\Program.cs +    + ! + X + + +  +  ' +  Ö +2D:\Projects\Test\my-weather-api\WeatherForecast.cs +  +       +      #  +    ! # &    +        !   % (   9 ?    +           " % \ No newline at end of file diff --git a/.sonarqube/out/sonar-project.properties b/.sonarqube/out/sonar-project.properties new file mode 100644 index 0000000..acd0cd7 --- /dev/null +++ b/.sonarqube/out/sonar-project.properties @@ -0,0 +1,43 @@ +sonar.projectKey=my-weather-app +sonar.working.directory=D:\\Projects\\Test\\my-weather-api\\.sonarqube\\out\\.sonar +sonar.projectBaseDir=D:\\Projects\\Test\\my-weather-api +sonar.pullrequest.cache.basepath=D:\\Projects\\Test\\my-weather-api + +B05ABBAD-4EEC-453E-A3CB-CF5BEF6DBEEE.sonar.projectKey=my-weather-app:B05ABBAD-4EEC-453E-A3CB-CF5BEF6DBEEE +B05ABBAD-4EEC-453E-A3CB-CF5BEF6DBEEE.sonar.projectName=my-weather-api +B05ABBAD-4EEC-453E-A3CB-CF5BEF6DBEEE.sonar.projectBaseDir=D:\\Projects\\Test\\my-weather-api +B05ABBAD-4EEC-453E-A3CB-CF5BEF6DBEEE.sonar.sourceEncoding=utf-8 +B05ABBAD-4EEC-453E-A3CB-CF5BEF6DBEEE.sonar.sources=\ +"D:\\Projects\\Test\\my-weather-api\\Controllers\\WeatherForecastController.cs",\ +"D:\\Projects\\Test\\my-weather-api\\Program.cs",\ +"D:\\Projects\\Test\\my-weather-api\\WeatherForecast.cs",\ +"D:\\Projects\\Test\\my-weather-api\\obj\\Debug\\net7.0\\my-weather-api.GlobalUsings.g.cs",\ +"D:\\Projects\\Test\\my-weather-api\\obj\\Debug\\net7.0\\.NETCoreApp,Version=v7.0.AssemblyAttributes.cs",\ +"D:\\Projects\\Test\\my-weather-api\\obj\\Debug\\net7.0\\my-weather-api.AssemblyInfo.cs",\ +"D:\\Projects\\Test\\my-weather-api\\obj\\Debug\\net7.0\\my-weather-api.MvcApplicationPartsAssemblyInfo.cs",\ +"D:\\Projects\\Test\\my-weather-api\\publish\\web.config",\ +"D:\\Projects\\Test\\my-weather-api\\appsettings.Development.json",\ +"D:\\Projects\\Test\\my-weather-api\\appsettings.json",\ +"D:\\Projects\\Test\\my-weather-api\\publish\\appsettings.Development.json",\ +"D:\\Projects\\Test\\my-weather-api\\publish\\appsettings.json",\ +"D:\\Projects\\Test\\my-weather-api\\publish\\my-weather-api.deps.json",\ +"D:\\Projects\\Test\\my-weather-api\\publish\\my-weather-api.runtimeconfig.json",\ +"D:\\Projects\\Test\\my-weather-api\\.dockerignore",\ +"D:\\Projects\\Test\\my-weather-api\\.drone.yml",\ +"D:\\Projects\\Test\\my-weather-api\\.gitignore",\ +"D:\\Projects\\Test\\my-weather-api\\Dockerfile",\ +"D:\\Projects\\Test\\my-weather-api\\publish\\my-weather-api.pdb",\ +"D:\\Projects\\Test\\my-weather-api\\test.txt",\ +"D:\\Projects\\Test\\my-weather-api\\Properties\\launchSettings.json" + +B05ABBAD-4EEC-453E-A3CB-CF5BEF6DBEEE.sonar.cs.analyzer.projectOutPaths=\ +"D:\\Projects\\Test\\my-weather-api\\.sonarqube\\out\\0" +B05ABBAD-4EEC-453E-A3CB-CF5BEF6DBEEE.sonar.cs.roslyn.reportFilePaths=\ +"D:\\Projects\\Test\\my-weather-api\\.sonarqube\\out\\0\\Issues.json" + +B05ABBAD-4EEC-453E-A3CB-CF5BEF6DBEEE.sonar.working.directory=D:\\Projects\\Test\\my-weather-api\\.sonarqube\\out\\.sonar\\mod0 +sonar.host.url=https://sonarqube.devops.cargostart.tech +sonar.visualstudio.enable=false + +sonar.modules=B05ABBAD-4EEC-453E-A3CB-CF5BEF6DBEEE +