{"action":"created","issue":{"url":"https://api.github.com/repos/SonarSource/sonar-csharp/issues/1428","repository_url":"https://api.github.com/repos/SonarSource/sonar-csharp","labels_url":"https://api.github.com/repos/SonarSource/sonar-csharp/issues/1428/labels{/name}","comments_url":"https://api.github.com/repos/SonarSource/sonar-csharp/issues/1428/comments","events_url":"https://api.github.com/repos/SonarSource/sonar-csharp/issues/1428/events","html_url":"https://github.com/SonarSource/sonar-csharp/issues/1428","id":326944563,"number":1428,"title":"CSharp plugin does not shows any metric","user":{"login":"sorgeas","id":22310638,"avatar_url":"https://avatars3.githubusercontent.com/u/22310638?v=4","gravatar_id":"","url":"https://api.github.com/users/sorgeas","html_url":"https://github.com/sorgeas","followers_url":"https://api.github.com/users/sorgeas/followers","following_url":"https://api.github.com/users/sorgeas/following{/other_user}","gists_url":"https://api.github.com/users/sorgeas/gists{/gist_id}","starred_url":"https://api.github.com/users/sorgeas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sorgeas/subscriptions","organizations_url":"https://api.github.com/users/sorgeas/orgs","repos_url":"https://api.github.com/users/sorgeas/repos","events_url":"https://api.github.com/users/sorgeas/events{/privacy}","received_events_url":"https://api.github.com/users/sorgeas/received_events","type":"User","site_admin":false},"labels":[{"id":572765347,"url":"https://api.github.com/repos/SonarSource/sonar-csharp/labels/Question","name":"Question","color":"cc317c","default":false},{"id":621746609,"url":"https://api.github.com/repos/SonarSource/sonar-csharp/labels/Status:%20On%20Hold","name":"Status: On Hold","color":"d93f0b","default":false}],"state":"open","locked":false,"assignee":{"login":"valhristov","id":23195959,"avatar_url":"https://avatars2.githubusercontent.com/u/23195959?v=4","gravatar_id":"","url":"https://api.github.com/users/valhristov","html_url":"https://github.com/valhristov","followers_url":"https://api.github.com/users/valhristov/followers","following_url":"https://api.github.com/users/valhristov/following{/other_user}","gists_url":"https://api.github.com/users/valhristov/gists{/gist_id}","starred_url":"https://api.github.com/users/valhristov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/valhristov/subscriptions","organizations_url":"https://api.github.com/users/valhristov/orgs","repos_url":"https://api.github.com/users/valhristov/repos","events_url":"https://api.github.com/users/valhristov/events{/privacy}","received_events_url":"https://api.github.com/users/valhristov/received_events","type":"User","site_admin":false},"assignees":[{"login":"valhristov","id":23195959,"avatar_url":"https://avatars2.githubusercontent.com/u/23195959?v=4","gravatar_id":"","url":"https://api.github.com/users/valhristov","html_url":"https://github.com/valhristov","followers_url":"https://api.github.com/users/valhristov/followers","following_url":"https://api.github.com/users/valhristov/following{/other_user}","gists_url":"https://api.github.com/users/valhristov/gists{/gist_id}","starred_url":"https://api.github.com/users/valhristov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/valhristov/subscriptions","organizations_url":"https://api.github.com/users/valhristov/orgs","repos_url":"https://api.github.com/users/valhristov/repos","events_url":"https://api.github.com/users/valhristov/events{/privacy}","received_events_url":"https://api.github.com/users/valhristov/received_events","type":"User","site_admin":false}],"milestone":null,"comments":10,"created_at":"2018-05-28T08:37:45Z","updated_at":"2018-05-28T14:26:10Z","closed_at":null,"author_association":"NONE","body":"Hello,\r\n\r\nI'm encountering issues very close to the one detailed in [https://github.com/SonarSource/sonar-csharp/issues/1102](https://github.com/SonarSource/sonar-csharp/issues/1102)\r\n\r\nHere is my specific configuration:\r\n1. Installed SonarQube 6.7 pointing on a blank database & setup the latest SonarC# plugin 7.1 (build 5212) + fxCop (1.3) & ReSharper (2.18) plugins\r\n2. Performed a migration of my previous SonarQube 5.6 database\r\n3. Recreated the quality profiles (exported from SonarQube 5.6 / imported in SonarQube 6.7)\r\n4. Assigned an imported quality profile to projects (set as default)\r\n5. Analyzed project\r\n\r\nI end up with no C# lines of code in the analysis results, and the following logs from the runner (for each analyzed C# project):\r\n\r\n`WARN: Analyzer working directory does not exist... Analyzer results won't be loaded from this directory.\r\n`\r\n\r\nCould you please advise? Is there a way to diagnose migration issues in dedicated logs?\r\nThanks for your help!\r\n\r\nSébastien"},"comment":{"url":"https://api.github.com/repos/SonarSource/sonar-csharp/issues/comments/392541214","html_url":"https://github.com/SonarSource/sonar-csharp/issues/1428#issuecomment-392541214","issue_url":"https://api.github.com/repos/SonarSource/sonar-csharp/issues/1428","id":392541214,"user":{"login":"valhristov","id":23195959,"avatar_url":"https://avatars2.githubusercontent.com/u/23195959?v=4","gravatar_id":"","url":"https://api.github.com/users/valhristov","html_url":"https://github.com/valhristov","followers_url":"https://api.github.com/users/valhristov/followers","following_url":"https://api.github.com/users/valhristov/following{/other_user}","gists_url":"https://api.github.com/users/valhristov/gists{/gist_id}","starred_url":"https://api.github.com/users/valhristov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/valhristov/subscriptions","organizations_url":"https://api.github.com/users/valhristov/orgs","repos_url":"https://api.github.com/users/valhristov/repos","events_url":"https://api.github.com/users/valhristov/events{/privacy}","received_events_url":"https://api.github.com/users/valhristov/received_events","type":"User","site_admin":false},"created_at":"2018-05-28T14:26:10Z","updated_at":"2018-05-28T14:26:10Z","author_association":"CONTRIBUTOR","body":"The message in the new logs is the same: `The exported profile does not contain a ruleset`. It is displayed when the SonarQube quality profile does not contain C# rules https://github.com/SonarSource/sonar-scanner-msbuild/blob/master/src/SonarScanner.MSBuild.PreProcessor/Roslyn/RoslynAnalyzerProvider.cs#L141.\r\n\r\nDid you enable at least one Sonar C# rule in your new quality profile? We should probably change this, but Sonar C# will not generate metrics and other metadata (syntax highlight) if none of its rules are enabled."}}
{"actor":{"display_login":"valhristov"}}