{"comment":{"url":"https://api.github.com/repos/SonarSource/sonarqube/comments/12446260","html_url":"https://github.com/SonarSource/sonarqube/commit/079caa1f745736873b05a75c6fc97f1d88bee665#commitcomment-12446260","id":12446260,"user":{"login":"sns-seb","id":11717580,"avatar_url":"https://avatars.githubusercontent.com/u/11717580?v=3","gravatar_id":"","url":"https://api.github.com/users/sns-seb","html_url":"https://github.com/sns-seb","followers_url":"https://api.github.com/users/sns-seb/followers","following_url":"https://api.github.com/users/sns-seb/following{/other_user}","gists_url":"https://api.github.com/users/sns-seb/gists{/gist_id}","starred_url":"https://api.github.com/users/sns-seb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sns-seb/subscriptions","organizations_url":"https://api.github.com/users/sns-seb/orgs","repos_url":"https://api.github.com/users/sns-seb/repos","events_url":"https://api.github.com/users/sns-seb/events{/privacy}","received_events_url":"https://api.github.com/users/sns-seb/received_events","type":"User","site_admin":false},"position":207,"line":207,"path":"sonar-plugin-api/src/main/java/org/sonar/api/measures/MetricDefinition.java","commit_id":"079caa1f745736873b05a75c6fc97f1d88bee665","created_at":"2015-07-30T15:04:13Z","updated_at":"2015-07-30T15:04:13Z","body":"I would have named this `createMeasure` (which is a bit weird since it returns nothing) or `addMeasure` (better, adds a measure to the context)\r\n\r\nproblem: since a Computer can output measures for more than one Metric, this method need to have a `metricKey` (type String) parameter. In addition, exceptions should be documented (IllegalStateException if measure already created/added for this metric)"}}