{"action":"created","issue":{"url":"https://api.github.com/repos/StyleCop/StyleCop/issues/42","repository_url":"https://api.github.com/repos/StyleCop/StyleCop","labels_url":"https://api.github.com/repos/StyleCop/StyleCop/issues/42/labels{/name}","comments_url":"https://api.github.com/repos/StyleCop/StyleCop/issues/42/comments","events_url":"https://api.github.com/repos/StyleCop/StyleCop/issues/42/events","html_url":"https://github.com/StyleCop/StyleCop/issues/42","id":134525382,"number":42,"title":"StyleCop does fail for files with C# 6 features ","user":{"login":"ChrSteinert","id":9868229,"avatar_url":"https://avatars.githubusercontent.com/u/9868229?v=3","gravatar_id":"","url":"https://api.github.com/users/ChrSteinert","html_url":"https://github.com/ChrSteinert","followers_url":"https://api.github.com/users/ChrSteinert/followers","following_url":"https://api.github.com/users/ChrSteinert/following{/other_user}","gists_url":"https://api.github.com/users/ChrSteinert/gists{/gist_id}","starred_url":"https://api.github.com/users/ChrSteinert/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ChrSteinert/subscriptions","organizations_url":"https://api.github.com/users/ChrSteinert/orgs","repos_url":"https://api.github.com/users/ChrSteinert/repos","events_url":"https://api.github.com/users/ChrSteinert/events{/privacy}","received_events_url":"https://api.github.com/users/ChrSteinert/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-02-18T09:24:17Z","updated_at":"2016-02-18T12:50:26Z","closed_at":null,"body":"I recently disvocered stylecop failing for certain files in VS15. But only some files seemed to be affected. I managed to break it down to files containing C# 6 features, like the conditional access operator (?.) or the new string interpolation ($\"String with {variable}\").\r\n\r\n### Repo Steps \r\nTake a new C# class and use any C# 6 feature, like this close does:\r\n```\r\nusing System;\r\n\r\nnamespace Repo\r\n{\r\n    class Program\r\n    {\r\n        public static void Main(string[] args)\r\n        {\r\n            string asd = $\"{args[0]}\";\r\n        }\r\n    }\r\n}\r\n```\r\nStyleCop will not give any warnings about the using directive being out of the namespace or the class not having an access modifyer.\r\nNow delete the '$' from the interpolated string - all warnings appear as expected."},"comment":{"url":"https://api.github.com/repos/StyleCop/StyleCop/issues/comments/185707006","html_url":"https://github.com/StyleCop/StyleCop/issues/42#issuecomment-185707006","issue_url":"https://api.github.com/repos/StyleCop/StyleCop/issues/42","id":185707006,"user":{"login":"dfyx","id":458055,"avatar_url":"https://avatars.githubusercontent.com/u/458055?v=3","gravatar_id":"","url":"https://api.github.com/users/dfyx","html_url":"https://github.com/dfyx","followers_url":"https://api.github.com/users/dfyx/followers","following_url":"https://api.github.com/users/dfyx/following{/other_user}","gists_url":"https://api.github.com/users/dfyx/gists{/gist_id}","starred_url":"https://api.github.com/users/dfyx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dfyx/subscriptions","organizations_url":"https://api.github.com/users/dfyx/orgs","repos_url":"https://api.github.com/users/dfyx/repos","events_url":"https://api.github.com/users/dfyx/events{/privacy}","received_events_url":"https://api.github.com/users/dfyx/received_events","type":"User","site_admin":false},"created_at":"2016-02-18T12:50:26Z","updated_at":"2016-02-18T12:50:26Z","body":"Looks like it. For VS2015, StyleCopAnalyzers is recommended instead of this project."}}