Sonar.exclusions for c# project doesn't work

I set up a wokflow to analysis c# project in TFS build.
The source structure:

The source root is RM-Main-AssinJob, and then I want to exclude the files in SourceManagerWeb/wwwroot. I define the below property:
sonar.exclusions=ResourceManagerWeb/wwwroot/**/*

However, it doesn’t work.
From the log info, some files are indeed excluded.

2019-10-25T01:38:04.7901049Z INFO: ------------- Scan ResourceManagerWeb

2019-10-25T01:38:04.8882205Z INFO: Base dir: G:\VSTSAgent\vsts-agent-win-x64-2.136.1_work\30\s\ResourceManagerWeb

2019-10-25T01:38:04.8882687Z INFO: Working dir: G:\VSTSAgent\vsts-agent-win-x64-2.136.1_work\30.sonarqube\out.sonar\mod1

2019-10-25T01:38:04.9032723Z INFO: Source paths: App_Code/DataUtil.cs, App_Code/ExcelHelper.cs, Controllers/AdminController.cs, Controllers/AssignJobController.cs, Controllers/BaseController.cs, Controllers/ClearCacheController.cs, Controllers/CreateTaskController.cs, Controllers/NoAccessController.cs, Controllers/ReportController.cs, Controllers/WebApiController.cs, Controllers/WorkCalendarController.cs, GlobalExceptionFilter/HttpGlobalExceptionFilter.cs, Interface/IViewRenderService.cs, Models/AppSettingsModel.cs, Models/ErrorViewModel.cs, Models/ExportData.cs, Models/JobBookReqModel.cs, Models/JobBookRspModel.cs, Models/JobInfoByCodeReqModel.cs, Models/RspUtilizationModel.cs, Models/TeamCalendarReqModel.cs, Models/UIConfigModel.cs, Models/VirtualPathModel.cs, Program.cs, Startup.cs, obj/release/netcoreapp2.1/ResourceManagerWeb.RazorAssemblyInfo.cs, obj/release/netcoreapp2.1/ResourceManagerWeb.AssemblyInfo.cs, Views/Admin/APIhelp.cshtml, Views/Admin/ConfigureAdmin.cshtml, Views/Admin/ExcuteTask.cshtml, Views/Admin/MonitorJob.cshtml, Views/AssignJob/Calendar.cshtml, Views/AssignJob/Index.cshtml, Views/ClearCache/ClearCache.cshtml, Views/CreateTask/Index.cshtml, Views/CreateTask/ProjectInfo.cshtml, Views/CreateTask/TimeLine.cshtml, Views/NoAccess/Index.cshtml, Views/Report/Index.cshtml, Views/Report/test.cshtml, Views/Report/UtilizationChart.cshtml, Views/Shared/Error.cshtml, Views/Shared/_CookieConsentPartial.cshtml, Views/Shared/_Layout.cshtml, Views/Shared/_LayoutAdmin.cshtml, Views/Shared/_ValidationScriptsPartial.cshtml, Views/WorkCalendar/Index.cshtml, Views/_ViewImports.cshtml, Views/_ViewStart.cshtml, wwwroot/css/bootstrap-select.min.css, wwwroot/css/bootstrap-table.min.css, wwwroot/css/bootstrap.min.css, wwwroot/css/build.css, wwwroot/css/build.min.css, wwwroot/css/Calendar.css, wwwroot/css/Calendar.min.css, wwwroot/css/common.css, wwwroot/css/dashboard.css, wwwroot/css/dashboard.min.css, wwwroot/css/daterangepicker.css, wwwroot/css/daterangepicker.min.css, wwwroot/css/dowebok.css, wwwroot/css/font-awesome.min.css, wwwroot/css/fullcalendar.css, wwwroot/css/fullcalendar.min.css, wwwroot/css/fullcalendar.print.css, wwwroot/css/menu_sideslide.css, wwwroot/css/scheduler.css, wwwroot/css/scheduler.min.css, wwwroot/css/site.css, wwwroot/css/site.min.css, wwwroot/css/style.css, wwwroot/css/style.min.css, wwwroot/favicon.ico, wwwroot/fonts/fontawesome-webfont.eot, wwwroot/fonts/fontawesome-webfont.svg, wwwroot/fonts/fontawesome-webfont.ttf, wwwroot/fonts/fontawesome-webfont.woff, wwwroot/fonts/fontawesome-webfont.woff2, wwwroot/fonts/FontAwesome.otf, wwwroot/fonts/glyphicons-halflings-regular.eot, wwwroot/fonts/glyphicons-halflings-regular.svg, wwwroot/fonts/glyphicons-halflings-regular.ttf, wwwroot/fonts/glyphicons-halflings-regular.woff, wwwroot/fonts/glyphicons-halflings-regular.woff2, wwwroot/fonts/icomoon.eot, wwwroot/fonts/icomoon.woff, wwwroot/fonts/icomoon.woff2, wwwroot/fonts/KPMG-Light.woff, wwwroot/fonts/KPMG-Light.woff2, wwwroot/images/banner1.svg, wwwroot/images/banner2.svg, wwwroot/images/banner3.svg, wwwroot/images/chart.png, wwwroot/images/conflict.png, wwwroot/images/Create.png, wwwroot/images/Create_backup.png, wwwroot/images/edit_small.gif, wwwroot/images/Error.png, wwwroot/images/favicon-16x16.png, wwwroot/images/favicon-calendar.png, wwwroot/images/icon_down.png, wwwroot/images/loading.gif, wwwroot/images/Logo.png, wwwroot/images/notice.png, wwwroot/images/project1.png, wwwroot/images/project2.png, wwwroot/images/projectSet.png, wwwroot/images/report_chart.png, wwwroot/images/skill.png, wwwroot/images/skill_active.png, wwwroot/images/spinning-circles.svg, wwwroot/images/tihsi1.png, wwwroot/images/timg.jpg, wwwroot/images/tips.png, wwwroot/images/tishi.png, wwwroot/images/tishi3.png, wwwroot/images/tishi4_backup.png, wwwroot/images/zoom.png, wwwroot/images/zoom1.ico, wwwroot/js/bootstrap-select.js, wwwroot/js/bootstrap-select.min.js, wwwroot/js/bootstrap-table-en-US.min.js, wwwroot/js/bootstrap-table-zh-CN.min.js, wwwroot/js/bootstrap-table.min.js, wwwroot/js/bootstrap.min.js, wwwroot/js/common.js, wwwroot/js/common.min.js, wwwroot/js/daterangepicker.js, wwwroot/js/daterangepicker.min.js, wwwroot/js/dowebok.js, wwwroot/js/echarts.min.js, wwwroot/js/fullcalendar.js, wwwroot/js/fullcalendar.min.js, wwwroot/js/jquery-1.5.2.min.js, wwwroot/js/jquery-3.2.1.min.js, wwwroot/js/jquery-ui.min.js, wwwroot/js/kpmg-2.0.0.min.js, wwwroot/js/kpmgNew-2.0.0.js, wwwroot/js/layer/layer.js, wwwroot/js/layer/layer.min.js, wwwroot/js/layer/mobile/layer.js, wwwroot/js/layer/mobile/need/layer.css, wwwroot/js/layer/theme/default/icon-ext.png, wwwroot/js/layer/theme/default/icon.png, wwwroot/js/layer/theme/default/layer.css, wwwroot/js/layer/theme/default/loading-0.gif, wwwroot/js/layer/theme/default/loading-1.gif, wwwroot/js/layer/theme/default/loading-2.gif, wwwroot/js/moment.min.js, wwwroot/js/PerfectLoad.js, wwwroot/js/scheduler.js, wwwroot/js/scheduler.min.js, wwwroot/lib/bootstrap/.bower.json, wwwroot/lib/bootstrap/dist/css/bootstrap-theme.css, wwwroot/lib/bootstrap/dist/css/bootstrap-theme.css.map, wwwroot/lib/bootstrap/dist/css/bootstrap-theme.min.css, wwwroot/lib/bootstrap/dist/css/bootstrap-theme.min.css.map, wwwroot/lib/bootstrap/dist/css/bootstrap.css, wwwroot/lib/bootstrap/dist/css/bootstrap.css.map, wwwroot/lib/bootstrap/dist/css/bootstrap.min.css, wwwroot/lib/bootstrap/dist/css/bootstrap.min.css.map, wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.eot, wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.svg, wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.ttf, wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.woff, wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.woff2, wwwroot/lib/bootstrap/dist/js/bootstrap.js, wwwroot/lib/bootstrap/dist/js/bootstrap.min.js, wwwroot/lib/bootstrap/dist/js/npm.js, wwwroot/lib/bootstrap/LICENSE, wwwroot/lib/jquery-validation-unobtrusive/.bower.json, wwwroot/lib/jquery-validation-unobtrusive/jquery.validate.unobtrusive.js, wwwroot/lib/jquery-validation-unobtrusive/jquery.validate.unobtrusive.min.js, wwwroot/lib/jquery-validation-unobtrusive/LICENSE.txt, wwwroot/lib/jquery-validation/.bower.json, wwwroot/lib/jquery-validation/dist/additional-methods.js, wwwroot/lib/jquery-validation/dist/additional-methods.min.js, wwwroot/lib/jquery-validation/dist/jquery.validate.js, wwwroot/lib/jquery-validation/dist/jquery.validate.min.js, wwwroot/lib/jquery-validation/LICENSE.md, wwwroot/lib/jquery/.bower.json, wwwroot/lib/jquery/dist/jquery.js, wwwroot/lib/jquery/dist/jquery.min.js, wwwroot/lib/jquery/dist/jquery.min.map, wwwroot/lib/jquery/LICENSE.txt, wwwroot/lib/layui/css/layui.css, wwwroot/lib/layui/css/layui.mobile.css, wwwroot/lib/layui/css/modules/code.css, wwwroot/lib/layui/css/modules/laydate/default/laydate.css, wwwroot/lib/layui/css/modules/layer/default/icon-ext.png, wwwroot/lib/layui/css/modules/layer/default/icon.png, wwwroot/lib/layui/css/modules/layer/default/layer.css, wwwroot/lib/layui/css/modules/layer/default/loading-0.gif, wwwroot/lib/layui/css/modules/layer/default/loading-1.gif, wwwroot/lib/layui/css/modules/layer/default/loading-2.gif, wwwroot/lib/layui/font/iconfont.eot, wwwroot/lib/layui/font/iconfont.svg, wwwroot/lib/layui/font/iconfont.ttf, wwwroot/lib/layui/font/iconfont.woff, wwwroot/lib/layui/images/face/0.gif, wwwroot/lib/layui/images/face/1.gif, wwwroot/lib/layui/images/face/10.gif, wwwroot/lib/layui/images/face/11.gif, wwwroot/lib/layui/images/face/12.gif, wwwroot/lib/layui/images/face/13.gif, wwwroot/lib/layui/images/face/14.gif, wwwroot/lib/layui/images/face/15.gif, wwwroot/lib/layui/images/face/16.gif, wwwroot/lib/layui/images/face/17.gif, wwwroot/lib/layui/images/face/18.gif, wwwroot/lib/layui/images/face/19.gif, wwwroot/lib/layui/images/face/2.gif, wwwroot/lib/layui/images/face/20.gif, wwwroot/lib/layui/images/face/21.gif, wwwroot/lib/layui/images/face/22.gif, wwwroot/lib/layui/images/face/23.gif, wwwroot/lib/layui/images/face/24.gif, wwwroot/lib/layui/images/face/25.gif, wwwroot/lib/layui/images/face/26.gif, wwwroot/lib/layui/images/face/27.gif, wwwroot/lib/layui/images/face/28.gif, wwwroot/lib/layui/images/face/29.gif, wwwroot/lib/layui/images/face/3.gif, wwwroot/lib/layui/images/face/30.gif, wwwroot/lib/layui/images/face/31.gif, wwwroot/lib/layui/images/face/32.gif, wwwroot/lib/layui/images/face/33.gif, wwwroot/lib/layui/images/face/34.gif, wwwroot/lib/layui/images/face/35.gif, wwwroot/lib/layui/images/face/36.gif, wwwroot/lib/layui/images/face/37.gif, wwwroot/lib/layui/images/face/38.gif, wwwroot/lib/layui/images/face/39.gif, wwwroot/lib/layui/images/face/4.gif, wwwroot/lib/layui/images/face/40.gif, wwwroot/lib/layui/images/face/41.gif, wwwroot/lib/layui/images/face/42.gif, wwwroot/lib/layui/images/face/43.gif, wwwroot/lib/layui/images/face/44.gif, wwwroot/lib/layui/images/face/45.gif, wwwroot/lib/layui/images/face/46.gif, wwwroot/lib/layui/images/face/47.gif, wwwroot/lib/layui/images/face/48.gif, wwwroot/lib/layui/images/face/49.gif, wwwroot/lib/layui/images/face/5.gif, wwwroot/lib/layui/images/face/50.gif, wwwroot/lib/layui/images/face/51.gif, wwwroot/lib/layui/images/face/52.gif, wwwroot/lib/layui/images/face/53.gif, wwwroot/lib/layui/images/face/54.gif, wwwroot/lib/layui/images/face/55.gif, wwwroot/lib/layui/images/face/56.gif, wwwroot/lib/layui/images/face/57.gif, wwwroot/lib/layui/images/face/58.gif, wwwroot/lib/layui/images/face/59.gif, wwwroot/lib/layui/images/face/6.gif, wwwroot/lib/layui/images/face/60.gif, wwwroot/lib/layui/images/face/61.gif, wwwroot/lib/layui/images/face/62.gif, wwwroot/lib/layui/images/face/63.gif, wwwroot/lib/layui/images/face/64.gif, wwwroot/lib/layui/images/face/65.gif, wwwroot/lib/layui/images/face/66.gif, wwwroot/lib/layui/images/face/67.gif, wwwroot/lib/layui/images/face/68.gif, wwwroot/lib/layui/images/face/69.gif, wwwroot/lib/layui/images/face/7.gif, wwwroot/lib/layui/images/face/70.gif, wwwroot/lib/layui/images/face/71.gif, wwwroot/lib/layui/images/face/8.gif, wwwroot/lib/layui/images/face/9.gif, wwwroot/lib/layui/layui.all.js, wwwroot/lib/layui/layui.js, wwwroot/lib/layui/lay/modules/carousel.js, wwwroot/lib/layui/lay/modules/code.js, wwwroot/lib/layui/lay/modules/colorpicker.js, wwwroot/lib/layui/lay/modules/element.js, wwwroot/lib/layui/lay/modules/flow.js, wwwroot/lib/layui/lay/modules/form.js, wwwroot/lib/layui/lay/modules/jquery.js, wwwroot/lib/layui/lay/modules/laydate.js, wwwroot/lib/layui/lay/modules/layedit.js, wwwroot/lib/layui/lay/modules/layer.js, wwwroot/lib/layui/lay/modules/laypage.js, wwwroot/lib/layui/lay/modules/laytpl.js, wwwroot/lib/layui/lay/modules/mobile.js, wwwroot/lib/layui/lay/modules/rate.js, wwwroot/lib/layui/lay/modules/slider.js, wwwroot/lib/layui/lay/modules/table.js, wwwroot/lib/layui/lay/modules/tree.js, wwwroot/lib/layui/lay/modules/upload.js, wwwroot/lib/layui/lay/modules/util.js, appsettings.Development.json, appsettings.json, bundleconfig.json, Properties/launchSettings.json, License/Aspose.Cells.lic, index.html, EmailTemplate/ComposeReceiveLeaveMail.html, Properties/PublishProfiles/FolderProfile.pubxml, ResourceManagerWeb.csproj.vspscc

2019-10-25T01:38:04.9044464Z INFO: Source encoding: UTF-8, default locale: en_US

2019-10-25T01:38:04.9722410Z INFO: Index files

2019-10-25T01:38:04.9747154Z INFO: Excluded sources:

2019-10-25T01:38:04.9747423Z INFO: ResourceManagerWeb/wwwroot/**/*

2019-10-25T01:38:05.1654805Z WARN: Invalid character encountered in file G:/VSTSAgent/vsts-agent-win-x64-2.136.1/_work/30/s/ResourceManagerWeb/wwwroot/css/style.css at line 402 for encoding UTF-8. Please fix file content or configure the encoding to be used using property ‘sonar.sourceEncoding’.

2019-10-25T01:38:05.2136313Z WARN: Invalid character encountered in file G:/VSTSAgent/vsts-agent-win-x64-2.136.1/_work/30/s/ResourceManagerWeb/wwwroot/js/dowebok.js at line 241 for encoding UTF-8. Please fix file content or configure the encoding to be used using property ‘sonar.sourceEncoding’.

2019-10-25T01:38:05.2400393Z WARN: Invalid character encountered in file G:/VSTSAgent/vsts-agent-win-x64-2.136.1/_work/30/s/ResourceManagerWeb/wwwroot/js/fullcalendar.js at line 4754 for encoding UTF-8. Please fix file content or configure the encoding to be used using property ‘sonar.sourceEncoding’.

2019-10-25T01:38:05.3038608Z INFO: 237 files indexed

2019-10-25T01:38:05.3038888Z INFO: 65 files ignored because of inclusion/exclusion patterns

hi @amyxiang

Can you try and follow the steps from this answer , i.e. using module-based exclusions?

e.g.

2634460F-79A3-4EB3-AE3D-AA0F40A391FF.sonar.exclusions=Scripts/**/*

where you’ll have to replace the above GUID with the GUID of your RM-Main-AssignJob project GUID?

Under RM-Main-AssignJob there are 4 projects.
The content I intend to exclude is ResourceManagerWeb/wwwroot/…
The project ResourceManagerWeb’s Guid is “e6e3ec07-e814-422e-8e4d-151d9fdd2fda”

And then I try this:
e6e3ec07-e814-422e-8e4d-151d9fdd2fda.sonar.exclusions=ResourceManagerWeb/wwwroot/**/*

It does not work.

hi @amyxiang

  • Could you please tell me what version of SonarQube are you using?
  • What version of the SonarQube Azure extension are you using, which you need to get from the “Prepare analysis on SonarQube” step logs?
  • Can you please attach the full logs of each step to this thread?
  • I see in the logs 2019-10-25T01:38:05.3038888Z INFO: 65 files ignored because of inclusion/exclusion patterns - how many files are in the subfolders of the excluded project?
  1. SonarQube Version:7.5.0.20543

  2. SonarQubePrepare extension Version:4.6.0

  1. Prepare analysis on SonarQube log:

2019-11-01T01:22:28.4947230Z ##[section]Starting: Prepare analysis on SonarQube
2019-11-01T01:22:28.5122425Z ==============================================================================
2019-11-01T01:22:28.5122595Z Task : Prepare Analysis Configuration
2019-11-01T01:22:28.5122733Z Description : Prepare SonarQube analysis configuration
2019-11-01T01:22:28.5122840Z Version : 4.6.0
2019-11-01T01:22:28.5122950Z Author : sonarsource
2019-11-01T01:22:28.5123076Z Help : More Information
2019-11-01T01:22:28.5123234Z ==============================================================================
2019-11-01T01:22:29.2248904Z [command]G:\VSTSAgent\vsts-agent-win-x64-2.136.1_work_tasks\SonarQubePrepare_15b84ca1-b62f-4a2a-a403-89b77a063157\4.6.0\classic-sonar-scanner-msbuild\SonarScanner.MSBuild.exe begin /k:WMS
2019-11-01T01:22:29.2666841Z SonarScanner for MSBuild 4.6
2019-11-01T01:22:29.2672336Z Using the .NET Framework version of the Scanner for MSBuild
2019-11-01T01:22:29.3078462Z Pre-processing started.
2019-11-01T01:22:29.3087774Z Preparing working directories…
2019-11-01T01:22:29.3912092Z 09:22:29.39 Updating build integration targets…
2019-11-01T01:22:29.4103351Z 09:22:29.409 Fetching analysis configuration settings…
2019-11-01T01:22:29.6043243Z 09:22:29.603 Provisioning analyzer assemblies for cs…
2019-11-01T01:22:29.6052130Z 09:22:29.604 Installing required Roslyn analyzers…
2019-11-01T01:22:29.7432684Z 09:22:29.742 Provisioning analyzer assemblies for vbnet…
2019-11-01T01:22:29.7433114Z 09:22:29.742 Installing required Roslyn analyzers…
2019-11-01T01:22:29.7696636Z 09:22:29.769 Pre-processing succeeded.
2019-11-01T01:22:29.7949453Z ##[section]Finishing: Prepare analysis on SonarQube

  1. Run Code Analysis log:

2019-11-01T01:24:30.6562437Z ##[section]Starting: Run Code Analysis

2019-11-01T01:24:30.6565678Z ==============================================================================

2019-11-01T01:24:30.6565848Z Task : Run Code Analysis

2019-11-01T01:24:30.6565986Z Description : Run scanner and upload the results to the SonarQube server.

2019-11-01T01:24:30.6566132Z Version : 4.6.0

2019-11-01T01:24:30.6566246Z Author : sonarsource

2019-11-01T01:24:30.6566440Z Help : This task is not needed for Maven and Gradle projects since the scanner should be run as part of the build.

More Information

2019-11-01T01:24:30.6566669Z ==============================================================================

2019-11-01T01:24:30.9721545Z [command]G:\VSTSAgent\vsts-agent-win-x64-2.136.1_work_tasks\SonarQubePrepare_15b84ca1-b62f-4a2a-a403-89b77a063157\4.6.0\classic-sonar-scanner-msbuild\SonarScanner.MSBuild.exe end

2019-11-01T01:24:31.0146452Z SonarScanner for MSBuild 4.6

2019-11-01T01:24:31.0151896Z Using the .NET Framework version of the Scanner for MSBuild

2019-11-01T01:24:31.0556161Z Post-processing started.

2019-11-01T01:24:31.1670640Z 09:24:31.166 Fetching code coverage report information from TFS…

2019-11-01T01:24:31.1685599Z 09:24:31.168 Attempting to locate a test results (.trx) file…

2019-11-01T01:24:31.1779371Z 09:24:31.177 Looking for TRX files in: G:\VSTSAgent\vsts-agent-win-x64-2.136.1_work\30\TestResults

2019-11-01T01:24:31.1781934Z 09:24:31.177 No test results files found

2019-11-01T01:24:31.2144101Z WARNING: The following projects do not have a valid ProjectGuid and were not built using a valid solution (.sln) thus will be skipped from analysis…

2019-11-01T01:24:31.2144370Z G:\VSTSAgent\vsts-agent-win-x64-2.136.1_work\30\s\Tools\Tools.csproj

2019-11-01T01:24:31.3867189Z WARNING: File ‘C:\Users\cn-svctfs.nuget\packages\xunit.runner.visualstudio\2.3.1\build\netcoreapp1.0\xunit.runner.visualstudio.dotnetcore.testadapter.dll’ is not located under the root directory ‘G:\VSTSAgent\vsts-agent-win-x64-2.136.1_work\30\s’ and will not be analyzed.

2019-11-01T01:24:31.3868172Z WARNING: File ‘C:\Users\cn-svctfs.nuget\packages\xunit.runner.visualstudio\2.3.1\build\netcoreapp1.0\xunit.runner.reporters.netcoreapp10.dll’ is not located under the root directory ‘G:\VSTSAgent\vsts-agent-win-x64-2.136.1_work\30\s’ and will not be analyzed.

2019-11-01T01:24:31.3869005Z WARNING: File ‘C:\Users\cn-svctfs.nuget\packages\xunit.runner.visualstudio\2.3.1\build\netcoreapp1.0\xunit.runner.utility.netcoreapp10.dll’ is not located under the root directory ‘G:\VSTSAgent\vsts-agent-win-x64-2.136.1_work\30\s’ and will not be analyzed.

2019-11-01T01:24:31.4112107Z Calling the SonarQube Scanner…

2019-11-01T01:24:31.5994393Z INFO: Scanner configuration file: G:\VSTSAgent\vsts-agent-win-x64-2.136.1_work_tasks\SonarQubePrepare_15b84ca1-b62f-4a2a-a403-89b77a063157\4.6.0\classic-sonar-scanner-msbuild\sonar-scanner-3.3.0.1492\bin…\conf\sonar-scanner.properties

2019-11-01T01:24:31.5999751Z INFO: Project root configuration file: G:\VSTSAgent\vsts-agent-win-x64-2.136.1_work\30.sonarqube\out\sonar-project.properties

2019-11-01T01:24:31.6331651Z INFO: SonarQube Scanner 3.3.0.1492

2019-11-01T01:24:31.6331951Z INFO: Java 1.8.0_202 Oracle Corporation (64-bit)

2019-11-01T01:24:31.6332094Z INFO: Windows Server 2016 10.0 amd64

2019-11-01T01:24:31.8865868Z INFO: User cache: C:\Users\cn-svctfs.sonar\cache

2019-11-01T01:24:31.9553530Z INFO: SonarQube server 7.5.0

2019-11-01T01:24:31.9554422Z INFO: Default locale: “en_US”, source code encoding: “windows-1252” (analysis is platform dependent)

2019-11-01T01:24:32.1153627Z INFO: Publish mode

2019-11-01T01:24:32.2364351Z INFO: Load global settings

2019-11-01T01:24:32.2775389Z INFO: Load global settings (done) | time=59ms

2019-11-01T01:24:32.2860986Z INFO: Server id: E287208C-AWiTtds-z1YeP0iE7C5g

2019-11-01T01:24:32.2946135Z INFO: User cache: C:\Users\cn-svctfs.sonar\cache

2019-11-01T01:24:32.4592643Z INFO: Load/download plugins

2019-11-01T01:24:32.4593709Z INFO: Load plugins index

2019-11-01T01:24:32.4929909Z INFO: Load plugins index (done) | time=34ms

2019-11-01T01:24:32.5147398Z INFO: Load/download plugins (done) | time=55ms

2019-11-01T01:24:32.5665055Z INFO: Loaded core extensions:

2019-11-01T01:24:32.9155641Z INFO: Process project properties

2019-11-01T01:24:32.9363430Z INFO: Execute project builders

2019-11-01T01:24:32.9770652Z INFO: Execute project builders (done) | time=41ms

2019-11-01T01:24:33.0055475Z INFO: Load project repositories

2019-11-01T01:24:33.0918313Z INFO: Load project repositories (done) | time=87ms

2019-11-01T01:24:33.1731504Z INFO: Load quality profiles

2019-11-01T01:24:33.1987757Z INFO: Load quality profiles (done) | time=25ms

2019-11-01T01:24:33.2107608Z INFO: Load active rules

2019-11-01T01:24:33.5024056Z INFO: Load active rules (done) | time=292ms

2019-11-01T01:24:33.5039784Z INFO: Load metrics repository

2019-11-01T01:24:33.5186343Z INFO: Load metrics repository (done) | time=14ms

2019-11-01T01:24:33.5418458Z WARN: SCM provider autodetection failed. Please use “sonar.scm.provider” to define SCM of your project, or disable the SCM Sensor in the project settings.

2019-11-01T01:24:33.5453211Z INFO: Project key: WMS

2019-11-01T01:24:33.5453464Z INFO: Project base dir: G:\VSTSAgent\vsts-agent-win-x64-2.136.1_work\30\s

2019-11-01T01:24:33.5467470Z INFO: ------------- Scan ResourceManagerUT

2019-11-01T01:24:33.6429159Z INFO: Base dir: G:\VSTSAgent\vsts-agent-win-x64-2.136.1_work\30\s\ResourceManagerUT

2019-11-01T01:24:33.6430288Z INFO: Working dir: G:\VSTSAgent\vsts-agent-win-x64-2.136.1_work\30.sonarqube\out.sonar\mod3

2019-11-01T01:24:33.6444065Z INFO: Test paths: CalendarUT.cs, ResourceManagerUT.csproj.vspscc

2019-11-01T01:24:33.6445996Z INFO: Source encoding: UTF-8, default locale: en_US

2019-11-01T01:24:33.7129970Z INFO: Index files

2019-11-01T01:24:33.7151419Z INFO: Excluded sources:

2019-11-01T01:24:33.7151652Z INFO: ResourceManagerWeb/wwwroot/**/*

2019-11-01T01:24:33.7300962Z INFO: 2 files indexed

2019-11-01T01:24:33.7301389Z INFO: 0 files ignored because of inclusion/exclusion patterns

2019-11-01T01:24:33.7302668Z INFO: Quality profile for cs: ITS way

2019-11-01T01:24:34.5772910Z INFO: Sensor JaCoCo XML Report Importer [jacoco]

2019-11-01T01:24:34.5792486Z INFO: Sensor JaCoCo XML Report Importer [jacoco] (done) | time=2ms

2019-11-01T01:24:34.5793454Z INFO: Sensor C# Properties [csharp]

2019-11-01T01:24:34.5831266Z INFO: Sensor C# Properties [csharp] (done) | time=4ms

2019-11-01T01:24:34.5831471Z INFO: Sensor SonarJavaXmlFileSensor [java]

2019-11-01T01:24:34.5835991Z INFO: Sensor SonarJavaXmlFileSensor [java] (done) | time=0ms

2019-11-01T01:24:34.5836382Z INFO: No SCM system was detected. You can use the ‘sonar.scm.provider’ property to explicitly specify it.

2019-11-01T01:24:34.5853732Z INFO: ------------- Scan ResourceManagerWeb

2019-11-01T01:24:34.5928950Z INFO: Base dir: G:\VSTSAgent\vsts-agent-win-x64-2.136.1_work\30\s\ResourceManagerWeb

2019-11-01T01:24:34.5930399Z INFO: Working dir: G:\VSTSAgent\vsts-agent-win-x64-2.136.1_work\30.sonarqube\out.sonar\mod1

2019-11-01T01:24:34.6076883Z INFO: Source paths: App_Code/DataUtil.cs, App_Code/ExcelHelper.cs, Controllers/AdminController.cs, Controllers/AssignJobController.cs, Controllers/BaseController.cs, Controllers/ClearCacheController.cs, Controllers/CreateTaskController.cs, Controllers/NoAccessController.cs, Controllers/ReportController.cs, Controllers/WebApiController.cs, Controllers/WorkCalendarController.cs, GlobalExceptionFilter/HttpGlobalExceptionFilter.cs, Interface/IViewRenderService.cs, Models/AppSettingsModel.cs, Models/ErrorViewModel.cs, Models/ExportData.cs, Models/JobBookReqModel.cs, Models/JobBookRspModel.cs, Models/JobInfoByCodeReqModel.cs, Models/RspUtilizationModel.cs, Models/TeamCalendarReqModel.cs, Models/UIConfigModel.cs, Models/VirtualPathModel.cs, Program.cs, Startup.cs, obj/release/netcoreapp2.1/ResourceManagerWeb.RazorAssemblyInfo.cs, obj/release/netcoreapp2.1/ResourceManagerWeb.AssemblyInfo.cs, Views/Admin/APIhelp.cshtml, Views/Admin/ConfigureAdmin.cshtml, Views/Admin/ExcuteTask.cshtml, Views/Admin/MonitorJob.cshtml, Views/AssignJob/Calendar.cshtml, Views/AssignJob/Index.cshtml, Views/ClearCache/ClearCache.cshtml, Views/CreateTask/Index.cshtml, Views/CreateTask/ProjectInfo.cshtml, Views/CreateTask/TimeLine.cshtml, Views/NoAccess/Index.cshtml, Views/Report/Index.cshtml, Views/Report/test.cshtml, Views/Shared/Error.cshtml, Views/Shared/_CookieConsentPartial.cshtml, Views/Shared/_Layout.cshtml, Views/Shared/_LayoutAdmin.cshtml, Views/Shared/_ValidationScriptsPartial.cshtml, Views/WorkCalendar/Index.cshtml, Views/_ViewImports.cshtml, Views/_ViewStart.cshtml, wwwroot/css/bootstrap-select.min.css, wwwroot/css/bootstrap-table.min.css, wwwroot/css/bootstrap.min.css, wwwroot/css/build.css, wwwroot/css/build.min.css, wwwroot/css/Calendar.css, wwwroot/css/Calendar.min.css, wwwroot/css/common.css, wwwroot/css/dashboard.css, wwwroot/css/dashboard.min.css, wwwroot/css/daterangepicker.css, wwwroot/css/daterangepicker.min.css, wwwroot/css/dowebok.css, wwwroot/css/font-awesome.min.css, wwwroot/css/fullcalendar.css, wwwroot/css/fullcalendar.min.css, wwwroot/css/fullcalendar.print.css, wwwroot/css/menu_sideslide.css, wwwroot/css/scheduler.css, wwwroot/css/scheduler.min.css, wwwroot/css/site.css, wwwroot/css/site.min.css, wwwroot/css/style.css, wwwroot/css/style.min.css, wwwroot/favicon.ico, wwwroot/fonts/fontawesome-webfont.eot, wwwroot/fonts/fontawesome-webfont.svg, wwwroot/fonts/fontawesome-webfont.ttf, wwwroot/fonts/fontawesome-webfont.woff, wwwroot/fonts/fontawesome-webfont.woff2, wwwroot/fonts/FontAwesome.otf, wwwroot/fonts/glyphicons-halflings-regular.eot, wwwroot/fonts/glyphicons-halflings-regular.svg, wwwroot/fonts/glyphicons-halflings-regular.ttf, wwwroot/fonts/glyphicons-halflings-regular.woff, wwwroot/fonts/glyphicons-halflings-regular.woff2, wwwroot/fonts/icomoon.eot, wwwroot/fonts/icomoon.woff, wwwroot/fonts/icomoon.woff2, wwwroot/fonts/KPMG-Light.woff, wwwroot/fonts/KPMG-Light.woff2, wwwroot/images/action.png, wwwroot/images/action_2.png, wwwroot/images/action_3.png, wwwroot/images/action_4.png, wwwroot/images/action_5.png, wwwroot/images/action_6.png, wwwroot/images/action_7.png, wwwroot/images/action_8.png, wwwroot/images/action_project.png, wwwroot/images/banner1.svg, wwwroot/images/banner2.svg, wwwroot/images/banner3.svg, wwwroot/images/chart.png, wwwroot/images/conflict.png, wwwroot/images/Create.png, wwwroot/images/Create_backup.png, wwwroot/images/edit_small.gif, wwwroot/images/Error.png, wwwroot/images/favicon-16x16.png, wwwroot/images/favicon-calendar.png, wwwroot/images/guide.png, wwwroot/images/help.png, wwwroot/images/help_api.png, wwwroot/images/icon_down.png, wwwroot/images/loading.gif, wwwroot/images/Logo.png, wwwroot/images/menu_load.gif, wwwroot/images/notice.png, wwwroot/images/notification.png, wwwroot/images/personSet.png, wwwroot/images/project1.png, wwwroot/images/project2.png, wwwroot/images/projectSet.png, wwwroot/images/report_chart.png, wwwroot/images/Reverse.png, wwwroot/images/show_menu.png, wwwroot/images/skill.png, wwwroot/images/skill_active.png, wwwroot/images/spinning-circles.svg, wwwroot/images/tihsi1.png, wwwroot/images/timg.jpg, wwwroot/images/tips.png, wwwroot/images/tishi.png, wwwroot/images/tishi3.png, wwwroot/images/tishi4_backup.png, wwwroot/images/zoom.png, wwwroot/images/zoom1.ico, wwwroot/js/bootstrap-select.js, wwwroot/js/bootstrap-select.min.js, wwwroot/js/bootstrap-table-en-US.min.js, wwwroot/js/bootstrap-table-zh-CN.min.js, wwwroot/js/bootstrap-table.min.js, wwwroot/js/bootstrap.min.js, wwwroot/js/common.js, wwwroot/js/common.min.js, wwwroot/js/daterangepicker.js, wwwroot/js/daterangepicker.min.js, wwwroot/js/dowebok.js, wwwroot/js/echarts.min.js, wwwroot/js/fullcalendar.js, wwwroot/js/fullcalendar.min.js, wwwroot/js/jquery-1.5.2.min.js, wwwroot/js/jquery-3.2.1.min.js, wwwroot/js/jquery-ui.min.js, wwwroot/js/kpmg-2.0.0.min.js, wwwroot/js/kpmgNew-2.0.0.js, wwwroot/js/layer/layer.js, wwwroot/js/layer/layer.min.js, wwwroot/js/layer/mobile/layer.js, wwwroot/js/layer/mobile/need/layer.css, wwwroot/js/layer/theme/default/icon-ext.png, wwwroot/js/layer/theme/default/icon.png, wwwroot/js/layer/theme/default/layer.css, wwwroot/js/layer/theme/default/loading-0.gif, wwwroot/js/layer/theme/default/loading-1.gif, wwwroot/js/layer/theme/default/loading-2.gif, wwwroot/js/moment.min.js, wwwroot/js/PerfectLoad.js, wwwroot/js/scheduler.js, wwwroot/js/scheduler.min.js, wwwroot/lib/bootstrap/.bower.json, wwwroot/lib/bootstrap/dist/css/bootstrap-theme.css, wwwroot/lib/bootstrap/dist/css/bootstrap-theme.css.map, wwwroot/lib/bootstrap/dist/css/bootstrap-theme.min.css, wwwroot/lib/bootstrap/dist/css/bootstrap-theme.min.css.map, wwwroot/lib/bootstrap/dist/css/bootstrap.css, wwwroot/lib/bootstrap/dist/css/bootstrap.css.map, wwwroot/lib/bootstrap/dist/css/bootstrap.min.css, wwwroot/lib/bootstrap/dist/css/bootstrap.min.css.map, wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.eot, wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.svg, wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.ttf, wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.woff, wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.woff2, wwwroot/lib/bootstrap/dist/js/bootstrap.js, wwwroot/lib/bootstrap/dist/js/bootstrap.min.js, wwwroot/lib/bootstrap/dist/js/npm.js, wwwroot/lib/bootstrap/LICENSE, wwwroot/lib/jquery-validation-unobtrusive/.bower.json, wwwroot/lib/jquery-validation-unobtrusive/jquery.validate.unobtrusive.js, wwwroot/lib/jquery-validation-unobtrusive/jquery.validate.unobtrusive.min.js, wwwroot/lib/jquery-validation-unobtrusive/LICENSE.txt, wwwroot/lib/jquery-validation/.bower.json, wwwroot/lib/jquery-validation/dist/additional-methods.js, wwwroot/lib/jquery-validation/dist/additional-methods.min.js, wwwroot/lib/jquery-validation/dist/jquery.validate.js, wwwroot/lib/jquery-validation/dist/jquery.validate.min.js, wwwroot/lib/jquery-validation/LICENSE.md, wwwroot/lib/jquery/.bower.json, wwwroot/lib/jquery/dist/jquery.js, wwwroot/lib/jquery/dist/jquery.min.js, wwwroot/lib/jquery/dist/jquery.min.map, wwwroot/lib/jquery/LICENSE.txt, wwwroot/lib/layui/css/layui.css, wwwroot/lib/layui/css/layui.mobile.css, wwwroot/lib/layui/css/modules/code.css, wwwroot/lib/layui/css/modules/laydate/default/laydate.css, wwwroot/lib/layui/css/modules/layer/default/icon-ext.png, wwwroot/lib/layui/css/modules/layer/default/icon.png, wwwroot/lib/layui/css/modules/layer/default/layer.css, wwwroot/lib/layui/css/modules/layer/default/loading-0.gif, wwwroot/lib/layui/css/modules/layer/default/loading-1.gif, wwwroot/lib/layui/css/modules/layer/default/loading-2.gif, wwwroot/lib/layui/font/iconfont.eot, wwwroot/lib/layui/font/iconfont.svg, wwwroot/lib/layui/font/iconfont.ttf, wwwroot/lib/layui/font/iconfont.woff, wwwroot/lib/layui/images/face/0.gif, wwwroot/lib/layui/images/face/1.gif, wwwroot/lib/layui/images/face/10.gif, wwwroot/lib/layui/images/face/11.gif, wwwroot/lib/layui/images/face/12.gif, wwwroot/lib/layui/images/face/13.gif, wwwroot/lib/layui/images/face/14.gif, wwwroot/lib/layui/images/face/15.gif, wwwroot/lib/layui/images/face/16.gif, wwwroot/lib/layui/images/face/17.gif, wwwroot/lib/layui/images/face/18.gif, wwwroot/lib/layui/images/face/19.gif, wwwroot/lib/layui/images/face/2.gif, wwwroot/lib/layui/images/face/20.gif, wwwroot/lib/layui/images/face/21.gif, wwwroot/lib/layui/images/face/22.gif, wwwroot/lib/layui/images/face/23.gif, wwwroot/lib/layui/images/face/24.gif, wwwroot/lib/layui/images/face/25.gif, wwwroot/lib/layui/images/face/26.gif, wwwroot/lib/layui/images/face/27.gif, wwwroot/lib/layui/images/face/28.gif, wwwroot/lib/layui/images/face/29.gif, wwwroot/lib/layui/images/face/3.gif, wwwroot/lib/layui/images/face/30.gif, wwwroot/lib/layui/images/face/31.gif, wwwroot/lib/layui/images/face/32.gif, wwwroot/lib/layui/images/face/33.gif, wwwroot/lib/layui/images/face/34.gif, wwwroot/lib/layui/images/face/35.gif, wwwroot/lib/layui/images/face/36.gif, wwwroot/lib/layui/images/face/37.gif, wwwroot/lib/layui/images/face/38.gif, wwwroot/lib/layui/images/face/39.gif, wwwroot/lib/layui/images/face/4.gif, wwwroot/lib/layui/images/face/40.gif, wwwroot/lib/layui/images/face/41.gif, wwwroot/lib/layui/images/face/42.gif, wwwroot/lib/layui/images/face/43.gif, wwwroot/lib/layui/images/face/44.gif, wwwroot/lib/layui/images/face/45.gif, wwwroot/lib/layui/images/face/46.gif, wwwroot/lib/layui/images/face/47.gif, wwwroot/lib/layui/images/face/48.gif, wwwroot/lib/layui/images/face/49.gif, wwwroot/lib/layui/images/face/5.gif, wwwroot/lib/layui/images/face/50.gif, wwwroot/lib/layui/images/face/51.gif, wwwroot/lib/layui/images/face/52.gif, wwwroot/lib/layui/images/face/53.gif, wwwroot/lib/layui/images/face/54.gif, wwwroot/lib/layui/images/face/55.gif, wwwroot/lib/layui/images/face/56.gif, wwwroot/lib/layui/images/face/57.gif, wwwroot/lib/layui/images/face/58.gif, wwwroot/lib/layui/images/face/59.gif, wwwroot/lib/layui/images/face/6.gif, wwwroot/lib/layui/images/face/60.gif, wwwroot/lib/layui/images/face/61.gif, wwwroot/lib/layui/images/face/62.gif, wwwroot/lib/layui/images/face/63.gif, wwwroot/lib/layui/images/face/64.gif, wwwroot/lib/layui/images/face/65.gif, wwwroot/lib/layui/images/face/66.gif, wwwroot/lib/layui/images/face/67.gif, wwwroot/lib/layui/images/face/68.gif, wwwroot/lib/layui/images/face/69.gif, wwwroot/lib/layui/images/face/7.gif, wwwroot/lib/layui/images/face/70.gif, wwwroot/lib/layui/images/face/71.gif, wwwroot/lib/layui/images/face/8.gif, wwwroot/lib/layui/images/face/9.gif, wwwroot/lib/layui/layui.all.js, wwwroot/lib/layui/layui.js, wwwroot/lib/layui/lay/modules/carousel.js, wwwroot/lib/layui/lay/modules/code.js, wwwroot/lib/layui/lay/modules/colorpicker.js, wwwroot/lib/layui/lay/modules/element.js, wwwroot/lib/layui/lay/modules/flow.js, wwwroot/lib/layui/lay/modules/form.js, wwwroot/lib/layui/lay/modules/jquery.js, wwwroot/lib/layui/lay/modules/laydate.js, wwwroot/lib/layui/lay/modules/layedit.js, wwwroot/lib/layui/lay/modules/layer.js, wwwroot/lib/layui/lay/modules/laypage.js, wwwroot/lib/layui/lay/modules/laytpl.js, wwwroot/lib/layui/lay/modules/mobile.js, wwwroot/lib/layui/lay/modules/rate.js, wwwroot/lib/layui/lay/modules/slider.js, wwwroot/lib/layui/lay/modules/table.js, wwwroot/lib/layui/lay/modules/tree.js, wwwroot/lib/layui/lay/modules/upload.js, wwwroot/lib/layui/lay/modules/util.js, appsettings.Development.json, appsettings.json, bundleconfig.json, Properties/launchSettings.json, License/Aspose.Cells.lic, index.html, EmailTemplate/ComposeReceiveLeaveMail.html, Properties/PublishProfiles/FolderProfile.pubxml, ResourceManagerWeb.csproj.vspscc

2019-11-01T01:24:34.6083855Z INFO: Source encoding: UTF-8, default locale: en_US

2019-11-01T01:24:34.6182854Z INFO: Index files

2019-11-01T01:24:34.6187027Z INFO: Excluded sources:

2019-11-01T01:24:34.6187189Z INFO: ResourceManagerWeb/wwwroot/**/*

2019-11-01T01:24:34.7213740Z WARN: Invalid character encountered in file G:/VSTSAgent/vsts-agent-win-x64-2.136.1/_work/30/s/ResourceManagerWeb/wwwroot/css/style.css at line 401 for encoding UTF-8. Please fix file content or configure the encoding to be used using property ‘sonar.sourceEncoding’.

2019-11-01T01:24:34.8474533Z WARN: Invalid character encountered in file G:/VSTSAgent/vsts-agent-win-x64-2.136.1/_work/30/s/ResourceManagerWeb/wwwroot/js/dowebok.js at line 241 for encoding UTF-8. Please fix file content or configure the encoding to be used using property ‘sonar.sourceEncoding’.

2019-11-01T01:24:34.8488109Z WARN: Invalid character encountered in file G:/VSTSAgent/vsts-agent-win-x64-2.136.1/_work/30/s/ResourceManagerWeb/wwwroot/js/fullcalendar.js at line 4754 for encoding UTF-8. Please fix file content or configure the encoding to be used using property ‘sonar.sourceEncoding’.

2019-11-01T01:24:34.9204401Z INFO: 253 files indexed

2019-11-01T01:24:34.9205988Z INFO: 65 files ignored because of inclusion/exclusion patterns

2019-11-01T01:24:34.9206280Z INFO: Quality profile for cs: ITS way

2019-11-01T01:24:34.9208811Z INFO: Quality profile for css: Sonar way

2019-11-01T01:24:34.9208957Z INFO: Quality profile for js: Sonar way Recommended

2019-11-01T01:24:34.9654961Z INFO: Sensor SonarCSS Metrics [cssfamily]

2019-11-01T01:24:35.2754169Z INFO: Sensor SonarCSS Metrics [cssfamily] (done) | time=310ms

2019-11-01T01:24:35.2754473Z INFO: Sensor SonarCSS Rules [cssfamily]

2019-11-01T01:24:41.9711766Z INFO: Sensor SonarCSS Rules [cssfamily] (done) | time=6696ms

2019-11-01T01:24:41.9712161Z INFO: Sensor JaCoCo XML Report Importer [jacoco]

2019-11-01T01:24:41.9722654Z INFO: Sensor JaCoCo XML Report Importer [jacoco] (done) | time=1ms

2019-11-01T01:24:41.9722954Z INFO: Sensor SonarJS [javascript]

2019-11-01T01:24:41.9782030Z INFO: 14 source files to be analyzed

2019-11-01T01:24:51.9790494Z INFO: 13/14 files analyzed, current file: ResourceManagerWeb/wwwroot/lib/jquery/dist/jquery.js

2019-11-01T01:24:55.8316621Z INFO: Sensor SonarJS [javascript] (done) | time=13859ms

2019-11-01T01:24:55.8317603Z INFO: 14/14 source files have been analyzed

2019-11-01T01:24:55.8317777Z INFO: Sensor ESLint-based SonarJS [javascript]

2019-11-01T01:25:00.9462312Z INFO: Using default Node.js executable: ‘node’.

2019-11-01T01:25:01.5002655Z INFO: 14 source files to be analyzed

2019-11-01T01:25:05.4049143Z INFO: 14/14 source files have been analyzed

2019-11-01T01:25:05.4049960Z INFO: Sensor ESLint-based SonarJS [javascript] (done) | time=9574ms

2019-11-01T01:25:05.4050249Z INFO: Sensor C# Properties [csharp]

2019-11-01T01:25:05.4055851Z INFO: Sensor C# Properties [csharp] (done) | time=0ms

2019-11-01T01:25:05.4056376Z INFO: Sensor SonarJavaXmlFileSensor [java]

2019-11-01T01:25:05.4063881Z INFO: Sensor SonarJavaXmlFileSensor [java] (done) | time=0ms

2019-11-01T01:25:05.4064512Z INFO: No SCM system was detected. You can use the ‘sonar.scm.provider’ property to explicitly specify it.

2019-11-01T01:25:05.4067667Z INFO: ------------- Scan ResourceManager

2019-11-01T01:25:05.4191857Z INFO: Base dir: G:\VSTSAgent\vsts-agent-win-x64-2.136.1_work\30\s\ResourceManager

2019-11-01T01:25:05.4192954Z INFO: Working dir: G:\VSTSAgent\vsts-agent-win-x64-2.136.1_work\30.sonarqube\out.sonar\mod0

2019-11-01T01:25:05.4213156Z INFO: Source paths: Admin/Objects.cs, Assignment/AssessResultCachedDAO.cs, Assignment/AssessResultDAO.cs, Assignment/AssignmentCachedDAO.cs, Assignment/AssignmentChangeDAO.cs, Assignment/AssignmentDAO.cs, Assignment/AssignmentUtil.cs, Assignment/BookingUtil.cs, Assignment/ExtendRequestDAO.cs, Assignment/JobInfoCachedDAO.cs, Assignment/JobInfoDAO.cs, Assignment/Metric.cs, Assignment/Objects.cs, Assignment/ProjectInfoCachedDAO.cs, Assignment/ProjectInfoDAO.cs, Assignment/SkillUtil.cs, BaseInfo/BaseInfoCachedDAO.cs, BaseInfo/Objects.cs, Calendar/CalendarCachedDAO.cs, Calendar/CalendarDAO.cs, Calendar/CalendarUtil.cs, Calendar/Objects.cs, CustomException.cs, DllConfigurer.cs, Jobs.cs, JobsConfigurer.cs, LogUtil.cs, MonitorOM.cs, Team/Objects.cs, Team/SkillCachedDAO.cs, Team/SkillDAO.cs, Team/TeamCachedDAO.cs, Team/TeamDAO.cs, UIConfigurer.cs, Util/CommonHelpUtil.cs, Util/DbUtil.cs, Util/Objects.cs, VirtualPathConfigurer.cs, Properties/PublishProfiles/FolderProfile.pubxml, ResourceManager.csproj.vspscc

2019-11-01T01:25:05.4214735Z INFO: Source encoding: UTF-8, default locale: en_US

2019-11-01T01:25:05.4383432Z INFO: Index files

2019-11-01T01:25:05.4388138Z INFO: Excluded sources:

2019-11-01T01:25:05.4388344Z INFO: ResourceManagerWeb/wwwroot/**/*

2019-11-01T01:25:05.4624198Z INFO: 40 files indexed

2019-11-01T01:25:05.4626772Z INFO: 0 files ignored because of inclusion/exclusion patterns

2019-11-01T01:25:05.4628106Z INFO: Quality profile for cs: ITS way

2019-11-01T01:25:05.4946604Z INFO: Sensor JaCoCo XML Report Importer [jacoco]

2019-11-01T01:25:05.4949904Z INFO: Sensor JaCoCo XML Report Importer [jacoco] (done) | time=1ms

2019-11-01T01:25:05.4950260Z INFO: Sensor C# Properties [csharp]

2019-11-01T01:25:05.4958112Z INFO: Sensor C# Properties [csharp] (done) | time=1ms

2019-11-01T01:25:05.4958617Z INFO: Sensor SonarJavaXmlFileSensor [java]

2019-11-01T01:25:05.4960832Z INFO: Sensor SonarJavaXmlFileSensor [java] (done) | time=0ms

2019-11-01T01:25:05.4961863Z INFO: No SCM system was detected. You can use the ‘sonar.scm.provider’ property to explicitly specify it.

2019-11-01T01:25:05.4962763Z INFO: ------------- Scan ResourceManagerTest

2019-11-01T01:25:05.5022714Z INFO: Base dir: G:\VSTSAgent\vsts-agent-win-x64-2.136.1_work\30\s\ResourceManagerTest

2019-11-01T01:25:05.5023085Z INFO: Working dir: G:\VSTSAgent\vsts-agent-win-x64-2.136.1_work\30.sonarqube\out.sonar\mod2

2019-11-01T01:25:05.5023708Z INFO: Test paths: Program.cs, ResourceManagerTest.csproj.vspscc

2019-11-01T01:25:05.5023945Z INFO: Source encoding: UTF-8, default locale: en_US

2019-11-01T01:25:05.5152009Z INFO: Index files

2019-11-01T01:25:05.5154011Z INFO: Excluded sources:

2019-11-01T01:25:05.5154196Z INFO: ResourceManagerWeb/wwwroot/**/*

2019-11-01T01:25:05.5175502Z INFO: 2 files indexed

2019-11-01T01:25:05.5175739Z INFO: 0 files ignored because of inclusion/exclusion patterns

2019-11-01T01:25:05.5176181Z INFO: Quality profile for cs: ITS way

2019-11-01T01:25:05.5452469Z INFO: Sensor JaCoCo XML Report Importer [jacoco]

2019-11-01T01:25:05.5454490Z INFO: Sensor JaCoCo XML Report Importer [jacoco] (done) | time=0ms

2019-11-01T01:25:05.5454917Z INFO: Sensor C# Properties [csharp]

2019-11-01T01:25:05.5459058Z INFO: Sensor C# Properties [csharp] (done) | time=1ms

2019-11-01T01:25:05.5459536Z INFO: Sensor SonarJavaXmlFileSensor [java]

2019-11-01T01:25:05.5459702Z INFO: Sensor SonarJavaXmlFileSensor [java] (done) | time=0ms

2019-11-01T01:25:05.5459875Z INFO: No SCM system was detected. You can use the ‘sonar.scm.provider’ property to explicitly specify it.

2019-11-01T01:25:05.5461877Z INFO: ------------- Scan WMS

2019-11-01T01:25:05.5515271Z INFO: Base dir: G:\VSTSAgent\vsts-agent-win-x64-2.136.1_work\30\s

2019-11-01T01:25:05.5515539Z INFO: Working dir: G:\VSTSAgent\vsts-agent-win-x64-2.136.1_work\30.sonarqube\out.sonar

2019-11-01T01:25:05.5515752Z INFO: Source encoding: windows-1252, default locale: en_US

2019-11-01T01:25:05.5632470Z INFO: Index files

2019-11-01T01:25:05.5635932Z INFO: Excluded sources:

2019-11-01T01:25:05.5636212Z INFO: ResourceManagerWeb/wwwroot/**/*

2019-11-01T01:25:05.5643196Z INFO: 0 files indexed

2019-11-01T01:25:05.5643445Z INFO: 0 files ignored because of inclusion/exclusion patterns

2019-11-01T01:25:05.5936649Z INFO: Sensor JaCoCo XML Report Importer [jacoco]

2019-11-01T01:25:05.5937071Z INFO: Sensor JaCoCo XML Report Importer [jacoco] (done) | time=0ms

2019-11-01T01:25:05.5937217Z INFO: Sensor SonarJavaXmlFileSensor [java]

2019-11-01T01:25:05.5938575Z INFO: Sensor SonarJavaXmlFileSensor [java] (done) | time=0ms

2019-11-01T01:25:05.5940277Z INFO: Sensor C# [csharp]

2019-11-01T01:25:05.6029102Z INFO: Importing results from 6 proto files in ‘G:\VSTSAgent\vsts-agent-win-x64-2.136.1_work\30.sonarqube\out\4\output-cs’

2019-11-01T01:25:05.6431985Z INFO: Importing results from 6 proto files in ‘G:\VSTSAgent\vsts-agent-win-x64-2.136.1_work\30.sonarqube\out\1\output-cs’

2019-11-01T01:25:05.7051287Z INFO: Importing results from 6 proto files in ‘G:\VSTSAgent\vsts-agent-win-x64-2.136.1_work\30.sonarqube\out\6\output-cs’

2019-11-01T01:25:05.7226594Z INFO: Importing results from 6 proto files in ‘G:\VSTSAgent\vsts-agent-win-x64-2.136.1_work\30.sonarqube\out\0\output-cs’

2019-11-01T01:25:05.7798229Z INFO: Importing results from 6 proto files in ‘G:\VSTSAgent\vsts-agent-win-x64-2.136.1_work\30.sonarqube\out\3\output-cs’

2019-11-01T01:25:05.7969777Z INFO: Importing results from 6 proto files in ‘G:\VSTSAgent\vsts-agent-win-x64-2.136.1_work\30.sonarqube\out\5\output-cs’

2019-11-01T01:25:05.8097521Z INFO: Importing results from 6 proto files in ‘G:\VSTSAgent\vsts-agent-win-x64-2.136.1_work\30.sonarqube\out\7\output-cs’

2019-11-01T01:25:05.8215403Z INFO: Importing results from 6 proto files in ‘G:\VSTSAgent\vsts-agent-win-x64-2.136.1_work\30.sonarqube\out\2\output-cs’

2019-11-01T01:25:05.9476907Z INFO: Importing 5 Roslyn reports

2019-11-01T01:25:06.2702571Z INFO: Sensor C# [csharp] (done) | time=676ms

2019-11-01T01:25:06.2702855Z INFO: Sensor Zero Coverage Sensor

2019-11-01T01:25:06.3580842Z INFO: Sensor Zero Coverage Sensor (done) | time=88ms

2019-11-01T01:25:06.3581561Z INFO: No SCM system was detected. You can use the ‘sonar.scm.provider’ property to explicitly specify it.

2019-11-01T01:25:06.4257126Z INFO: 11 files had no CPD blocks

2019-11-01T01:25:06.4259210Z INFO: Calculating CPD for 66 files

2019-11-01T01:25:06.5377906Z INFO: CPD calculation finished

2019-11-01T01:25:06.9516329Z INFO: Analysis report generated in 398ms, dir size=5 MB

2019-11-01T01:25:07.3644867Z INFO: Analysis reports compressed in 413ms, zip size=1 MB

2019-11-01T01:25:07.4291369Z INFO: Analysis report uploaded in 65ms

2019-11-01T01:25:07.4298938Z INFO: ANALYSIS SUCCESSFUL, you can browse http://cnbjsapp259:9000/dashboard?id=WMS

2019-11-01T01:25:07.4299242Z INFO: Note that you will be able to access the updated dashboard once the server has processed the submitted analysis report

2019-11-01T01:25:07.4299502Z INFO: More about the report processing at http://cnbjsapp259:9000/api/ce/task?id=AW4kkOrRhSsq7dfc3qfo

2019-11-01T01:25:08.5036495Z INFO: Task total time: 35.936 s

2019-11-01T01:25:08.5455178Z INFO: ------------------------------------------------------------------------

2019-11-01T01:25:08.5455707Z INFO: EXECUTION SUCCESS

2019-11-01T01:25:08.5461226Z INFO: ------------------------------------------------------------------------

2019-11-01T01:25:08.5462915Z INFO: Total time: 36.954s

2019-11-01T01:25:08.6358539Z INFO: Final Memory: 64M/1708M

2019-11-01T01:25:08.6358938Z INFO: ------------------------------------------------------------------------

2019-11-01T01:25:08.8499124Z The SonarQube Scanner has finished

2019-11-01T01:25:08.8581298Z 09:25:08.857 Post-processing succeeded.

2019-11-01T01:25:08.8890514Z ##[section]Finishing: Run Code Analysis

  1. The excluded pattern is : ResourceManagerWeb/wwwroot/**/*
    Does it include the files in ResourceManagerWeb\wwwroot\js\layer\mobile\need?
    Does it include the file type like FontAwesome.otf that is not js,css,etc?

Hi @amyxiang

Looking at the logs I see that the base directory is considered to be: Base dir: G:\VSTSAgent\vsts-agent-win-x64-2.136.1_work\30\s\ResourceManagerWeb which means that all the files are resolved relative to this one.

This is visible also when inspecting the logs Source paths: ... wwwroot/css/bootstrap-select.min.css ...

As far as I can tell the problem can be solved by updating the excluded pattern to wwwroot/**/*
(removing the first part: ResourceManagerWeb ) and this should ignore all the files from the wwwroot directory.

As a side note, the source paths section from the logs will always include all the files and is not an indicator that the sources are excluded or not. What is relevant, in this case, is the message with the number of files indexed (INFO: 237 files indexed) which according to files logged should be around 57.

Please let us know how it goes and if this change solves the issue.

Regards,
Costin