{"action":"created","issue":{"url":"https://api.github.com/repos/ow2-proactive/scheduling/issues/2377","labels_url":"https://api.github.com/repos/ow2-proactive/scheduling/issues/2377/labels{/name}","comments_url":"https://api.github.com/repos/ow2-proactive/scheduling/issues/2377/comments","events_url":"https://api.github.com/repos/ow2-proactive/scheduling/issues/2377/events","html_url":"https://github.com/ow2-proactive/scheduling/pull/2377","id":116105119,"number":2377,"title":"Task centric rest resource","user":{"login":"paraita","id":1413759,"avatar_url":"https://avatars.githubusercontent.com/u/1413759?v=3","gravatar_id":"","url":"https://api.github.com/users/paraita","html_url":"https://github.com/paraita","followers_url":"https://api.github.com/users/paraita/followers","following_url":"https://api.github.com/users/paraita/following{/other_user}","gists_url":"https://api.github.com/users/paraita/gists{/gist_id}","starred_url":"https://api.github.com/users/paraita/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paraita/subscriptions","organizations_url":"https://api.github.com/users/paraita/orgs","repos_url":"https://api.github.com/users/paraita/repos","events_url":"https://api.github.com/users/paraita/events{/privacy}","received_events_url":"https://api.github.com/users/paraita/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-11-10T13:23:01Z","updated_at":"2015-11-12T09:54:22Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/ow2-proactive/scheduling/pulls/2377","html_url":"https://github.com/ow2-proactive/scheduling/pull/2377","diff_url":"https://github.com/ow2-proactive/scheduling/pull/2377.diff","patch_url":"https://github.com/ow2-proactive/scheduling/pull/2377.patch"},"body":"Task-centric REST resources with tests (unit tests for the REST resources impl + functional test for the SchedulerDBManager).\r\nSome unit tests have also been refactored."},"comment":{"url":"https://api.github.com/repos/ow2-proactive/scheduling/issues/comments/156052983","html_url":"https://github.com/ow2-proactive/scheduling/pull/2377#issuecomment-156052983","issue_url":"https://api.github.com/repos/ow2-proactive/scheduling/issues/2377","id":156052983,"user":{"login":"sonarqube-activeeon","id":14940028,"avatar_url":"https://avatars.githubusercontent.com/u/14940028?v=3","gravatar_id":"","url":"https://api.github.com/users/sonarqube-activeeon","html_url":"https://github.com/sonarqube-activeeon","followers_url":"https://api.github.com/users/sonarqube-activeeon/followers","following_url":"https://api.github.com/users/sonarqube-activeeon/following{/other_user}","gists_url":"https://api.github.com/users/sonarqube-activeeon/gists{/gist_id}","starred_url":"https://api.github.com/users/sonarqube-activeeon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sonarqube-activeeon/subscriptions","organizations_url":"https://api.github.com/users/sonarqube-activeeon/orgs","repos_url":"https://api.github.com/users/sonarqube-activeeon/repos","events_url":"https://api.github.com/users/sonarqube-activeeon/events{/privacy}","received_events_url":"https://api.github.com/users/sonarqube-activeeon/received_events","type":"User","site_admin":false},"created_at":"2015-11-12T09:54:22Z","updated_at":"2015-11-12T09:54:22Z","body":"SonarQube analysis reported 120 issues:\n* ![CRITICAL](https://raw.githubusercontent.com/SonarCommunity/sonar-github/master/images/severity-critical.png) 1 critical\n* ![MAJOR](https://raw.githubusercontent.com/SonarCommunity/sonar-github/master/images/severity-major.png) 90 major\n* ![MINOR](https://raw.githubusercontent.com/SonarCommunity/sonar-github/master/images/severity-minor.png) 29 minor\n\nWatch the comments in this conversation to review them.\nNote: the following issues could not be reported as comments because they are located on lines that are not displayed in this pull request:\n* ![MAJOR](https://raw.githubusercontent.com/SonarCommunity/sonar-github/master/images/severity-major.png) [Refactor this method to throw at most one checked exception instead of: org.ow2.proactive_grid_cloud_portal.scheduler.exception.NotConnectedRestException, org.ow2.proactive_grid_cloud_portal.scheduler.exception.PermissionRestException](https://github.com/ow2-proactive/scheduling/blob/66df203bb2954d6e37b2710a015aa2234d8a59b3/rest/rest-api/src/main/java/org/ow2/proactive_grid_cloud_portal/common/SchedulerRestInterface.java#L1380) [![rule](https://raw.githubusercontent.com/SonarCommunity/sonar-github/master/images/rule.png)](http://nemo.sonarqube.org/coding_rules#rule_key=squid%3AS1160)\n* ![MAJOR](https://raw.githubusercontent.com/SonarCommunity/sonar-github/master/images/severity-major.png) [Refactor this method to throw at most one checked exception instead of: org.ow2.proactive_grid_cloud_portal.scheduler.exception.NotConnectedRestException, org.ow2.proactive_grid_cloud_portal.scheduler.exception.UnknownJobRestException, org.ow2.proactive_grid_cloud_portal.scheduler.exception.UnknownTaskRestException, org.ow2.proactive_grid_cloud_portal.scheduler.exception.PermissionRestException](https://github.com/ow2-proactive/scheduling/blob/66df203bb2954d6e37b2710a015aa2234d8a59b3/rest/rest-api/src/main/java/org/ow2/proactive_grid_cloud_portal/common/SchedulerRestInterface.java#L1486) [![rule](https://raw.githubusercontent.com/SonarCommunity/sonar-github/master/images/rule.png)](http://nemo.sonarqube.org/coding_rules#rule_key=squid%3AS1160)\n* ![MAJOR](https://raw.githubusercontent.com/SonarCommunity/sonar-github/master/images/severity-major.png) [Refactor this method to throw at most one checked exception instead of: javax.security.auth.login.LoginException, org.ow2.proactive_grid_cloud_portal.scheduler.exception.SchedulerRestException](https://github.com/ow2-proactive/scheduling/blob/66df203bb2954d6e37b2710a015aa2234d8a59b3/rest/rest-api/src/main/java/org/ow2/proactive_grid_cloud_portal/common/SchedulerRestInterface.java#L1278) [![rule](https://raw.githubusercontent.com/SonarCommunity/sonar-github/master/images/rule.png)](http://nemo.sonarqube.org/coding_rules#rule_key=squid%3AS1160)\n* ![MAJOR](https://raw.githubusercontent.com/SonarCommunity/sonar-github/master/images/severity-major.png) [Refactor this method to throw at most one checked exception instead of: org.ow2.proactive_grid_cloud_portal.scheduler.exception.NotConnectedRestException, org.ow2.proactive_grid_cloud_portal.scheduler.exception.PermissionRestException](https://github.com/ow2-proactive/scheduling/blob/66df203bb2954d6e37b2710a015aa2234d8a59b3/rest/rest-api/src/main/java/org/ow2/proactive_grid_cloud_portal/common/SchedulerRestInterface.java#L1524) [![rule](https://raw.githubusercontent.com/SonarCommunity/sonar-github/master/images/rule.png)](http://nemo.sonarqube.org/coding_rules#rule_key=squid%3AS1160)\n* ![MAJOR](https://raw.githubusercontent.com/SonarCommunity/sonar-github/master/images/severity-major.png) [Refactor this method to throw at most one checked exception instead of: org.ow2.proactive_grid_cloud_portal.scheduler.exception.NotConnectedRestException, org.ow2.proactive_grid_cloud_portal.scheduler.exception.PermissionRestException, org.ow2.proactive_grid_cloud_portal.scheduler.exception.SchedulerRestException](https://github.com/ow2-proactive/scheduling/blob/66df203bb2954d6e37b2710a015aa2234d8a59b3/rest/rest-api/src/main/java/org/ow2/proactive_grid_cloud_portal/common/SchedulerRestInterface.java#L1516) [![rule](https://raw.githubusercontent.com/SonarCommunity/sonar-github/master/images/rule.png)](http://nemo.sonarqube.org/coding_rules#rule_key=squid%3AS1160)\n* ![MAJOR](https://raw.githubusercontent.com/SonarCommunity/sonar-github/master/images/severity-major.png) [Refactor this method to throw at most one checked exception instead of: org.ow2.proactive_grid_cloud_portal.scheduler.exception.NotConnectedRestException, org.ow2.proactive_grid_cloud_portal.scheduler.exception.PermissionRestException](https://github.com/ow2-proactive/scheduling/blob/66df203bb2954d6e37b2710a015aa2234d8a59b3/rest/rest-api/src/main/java/org/ow2/proactive_grid_cloud_portal/common/SchedulerRestInterface.java#L1440) [![rule](https://raw.githubusercontent.com/SonarCommunity/sonar-github/master/images/rule.png)](http://nemo.sonarqube.org/coding_rules#rule_key=squid%3AS1160)\n* ![MAJOR](https://raw.githubusercontent.com/SonarCommunity/sonar-github/master/images/severity-major.png) [Refactor this method to throw at most one checked exception instead of: javax.security.auth.login.LoginException, org.ow2.proactive_grid_cloud_portal.scheduler.exception.SchedulerRestException](https://github.com/ow2-proactive/scheduling/blob/66df203bb2954d6e37b2710a015aa2234d8a59b3/rest/rest-api/src/main/java/org/ow2/proactive_grid_cloud_portal/common/SchedulerRestInterface.java#L1394) [![rule](https://raw.githubusercontent.com/SonarCommunity/sonar-github/master/images/rule.png)](http://nemo.sonarqube.org/coding_rules#rule_key=squid%3AS1160)\n* ![MAJOR](https://raw.githubusercontent.com/SonarCommunity/sonar-github/master/images/severity-major.png) [Refactor this method to throw at most one checked exception instead of: org.ow2.proactive_grid_cloud_portal.scheduler.exception.NotConnectedRestException, org.ow2.proactive_grid_cloud_portal.scheduler.exception.UnknownJobRestException, org.ow2.proactive_grid_cloud_portal.scheduler.exception.UnknownTaskRestException, org.ow2.proactive_grid_cloud_portal.scheduler.exception.PermissionRestException](https://github.com/ow2-proactive/scheduling/blob/66df203bb2954d6e37b2710a015aa2234d8a59b3/rest/rest-api/src/main/java/org/ow2/proactive_grid_cloud_portal/common/SchedulerRestInterface.java#L1496) [![rule](https://raw.githubusercontent.com/SonarCommunity/sonar-github/master/images/rule.png)](http://nemo.sonarqube.org/coding_rules#rule_key=squid%3AS1160)\n* ![MAJOR](https://raw.githubusercontent.com/SonarCommunity/sonar-github/master/images/severity-major.png) [Refactor this method to throw at most one checked exception instead of: org.ow2.proactive_grid_cloud_portal.scheduler.exception.NotConnectedRestException, org.ow2.proactive_grid_cloud_portal.scheduler.exception.PermissionRestException](https://github.com/ow2-proactive/scheduling/blob/66df203bb2954d6e37b2710a015aa2234d8a59b3/rest/rest-api/src/main/java/org/ow2/proactive_grid_cloud_portal/common/SchedulerRestInterface.java#L1415) [![rule](https://raw.githubusercontent.com/SonarCommunity/sonar-github/master/images/rule.png)](http://nemo.sonarqube.org/coding_rules#rule_key=squid%3AS1160)\n* ![MAJOR](https://raw.githubusercontent.com/SonarCommunity/sonar-github/master/images/severity-major.png) [Refactor this method to throw at most one checked exception instead of: org.ow2.proactive_grid_cloud_portal.scheduler.exception.NotConnectedRestException, org.ow2.proactive_grid_cloud_portal.scheduler.exception.PermissionRestException](https://github.com/ow2-proactive/scheduling/blob/66df203bb2954d6e37b2710a015aa2234d8a59b3/rest/rest-api/src/main/java/org/ow2/proactive_grid_cloud_portal/common/SchedulerRestInterface.java#L1337) [![rule](https://raw.githubusercontent.com/SonarCommunity/sonar-github/master/images/rule.png)](http://nemo.sonarqube.org/coding_rules#rule_key=squid%3AS1160)\n* ![MAJOR](https://raw.githubusercontent.com/SonarCommunity/sonar-github/master/images/severity-major.png) [Refactor this method to throw at most one checked exception instead of: org.ow2.proactive_grid_cloud_portal.scheduler.exception.NotConnectedRestException, org.ow2.proactive_grid_cloud_portal.scheduler.exception.PermissionRestException](https://github.com/ow2-proactive/scheduling/blob/66df203bb2954d6e37b2710a015aa2234d8a59b3/rest/rest-api/src/main/java/org/ow2/proactive_grid_cloud_portal/common/SchedulerRestInterface.java#L1247) [![rule](https://raw.githubusercontent.com/SonarCommunity/sonar-github/master/images/rule.png)](http://nemo.sonarqube.org/coding_rules#rule_key=squid%3AS1160)\n* ![MAJOR](https://raw.githubusercontent.com/SonarCommunity/sonar-github/master/images/severity-major.png) [Refactor this method to throw at most one checked exception instead of: java.security.KeyException, javax.security.auth.login.LoginException, org.ow2.proactive_grid_cloud_portal.scheduler.exception.SchedulerRestException](https://github.com/ow2-proactive/scheduling/blob/66df203bb2954d6e37b2710a015aa2234d8a59b3/rest/rest-api/src/main/java/org/ow2/proactive_grid_cloud_portal/common/SchedulerRestInterface.java#L1316) [![rule](https://raw.githubusercontent.com/SonarCommunity/sonar-github/master/images/rule.png)](http://nemo.sonarqube.org/coding_rules#rule_key=squid%3AS1160)\n* ![MAJOR](https://raw.githubusercontent.com/SonarCommunity/sonar-github/master/images/severity-major.png) [Refactor this method to throw at most one checked exception instead of: org.ow2.proactive_grid_cloud_portal.scheduler.exception.NotConnectedRestException, org.ow2.proactive_grid_cloud_portal.scheduler.exception.PermissionRestException](https://github.com/ow2-proactive/scheduling/blob/66df203bb2954d6e37b2710a015aa2234d8a59b3/rest/rest-api/src/main/java/org/ow2/proactive_grid_cloud_portal/common/SchedulerRestInterface.java#L1366) [![rule](https://raw.githubusercontent.com/SonarCommunity/sonar-github/master/images/rule.png)](http://nemo.sonarqube.org/coding_rules#rule_key=squid%3AS1160)\n* ![MINOR](https://raw.githubusercontent.com/SonarCommunity/sonar-github/master/images/severity-minor.png) [Define and throw a dedicated exception instead of using a generic one.](https://github.com/ow2-proactive/scheduling/blob/66df203bb2954d6e37b2710a015aa2234d8a59b3/rest/rest-api/src/main/java/org/ow2/proactive_grid_cloud_portal/common/SchedulerRestInterface.java#L722) [![rule](https://raw.githubusercontent.com/SonarCommunity/sonar-github/master/images/rule.png)](http://nemo.sonarqube.org/coding_rules#rule_key=squid%3AS00112)\n* ![MAJOR](https://raw.githubusercontent.com/SonarCommunity/sonar-github/master/images/severity-major.png) [Refactor this method to throw at most one checked exception instead of: org.ow2.proactive_grid_cloud_portal.scheduler.exception.NotConnectedRestException, org.ow2.proactive_grid_cloud_portal.scheduler.exception.UnknownJobRestException, org.ow2.proactive_grid_cloud_portal.scheduler.exception.UnknownTaskRestException, org.ow2.proactive_grid_cloud_portal.scheduler.exception.PermissionRestException](https://github.com/ow2-proactive/scheduling/blob/66df203bb2954d6e37b2710a015aa2234d8a59b3/rest/rest-api/src/main/java/org/ow2/proactive_grid_cloud_portal/common/SchedulerRestInterface.java#L1476) [![rule](https://raw.githubusercontent.com/SonarCommunity/sonar-github/master/images/rule.png)](http://nemo.sonarqube.org/coding_rules#rule_key=squid%3AS1160)\n* ![MAJOR](https://raw.githubusercontent.com/SonarCommunity/sonar-github/master/images/severity-major.png) [Refactor this method to throw at most one checked exception instead of: org.ow2.proactive_grid_cloud_portal.scheduler.exception.NotConnectedRestException, org.ow2.proactive_grid_cloud_portal.scheduler.exception.PermissionRestException](https://github.com/ow2-proactive/scheduling/blob/66df203bb2954d6e37b2710a015aa2234d8a59b3/rest/rest-api/src/main/java/org/ow2/proactive_grid_cloud_portal/common/SchedulerRestInterface.java#L1352) [![rule](https://raw.githubusercontent.com/SonarCommunity/sonar-github/master/images/rule.png)](http://nemo.sonarqube.org/coding_rules#rule_key=squid%3AS1160)\n* ![MINOR](https://raw.githubusercontent.com/SonarCommunity/sonar-github/master/images/severity-minor.png) [Define and throw a dedicated exception instead of using a generic one.](https://github.com/ow2-proactive/scheduling/blob/66df203bb2954d6e37b2710a015aa2234d8a59b3/rest/rest-api/src/main/java/org/ow2/proactive_grid_cloud_portal/common/SchedulerRestInterface.java#L739) [![rule](https://raw.githubusercontent.com/SonarCommunity/sonar-github/master/images/rule.png)](http://nemo.sonarqube.org/coding_rules#rule_key=squid%3AS00112)\n* ![MAJOR](https://raw.githubusercontent.com/SonarCommunity/sonar-github/master/images/severity-major.png) [Refactor this method to throw at most one checked exception instead of: org.ow2.proactive_grid_cloud_portal.scheduler.exception.NotConnectedRestException, org.ow2.proactive_grid_cloud_portal.scheduler.exception.PermissionRestException](https://github.com/ow2-proactive/scheduling/blob/66df203bb2954d6e37b2710a015aa2234d8a59b3/rest/rest-api/src/main/java/org/ow2/proactive_grid_cloud_portal/common/SchedulerRestInterface.java#L1331) [![rule](https://raw.githubusercontent.com/SonarCommunity/sonar-github/master/images/rule.png)](http://nemo.sonarqube.org/coding_rules#rule_key=squid%3AS1160)\n* ![MAJOR](https://raw.githubusercontent.com/SonarCommunity/sonar-github/master/images/severity-major.png) [Refactor this method to throw at most one checked exception instead of: org.ow2.proactive_grid_cloud_portal.scheduler.exception.NotConnectedRestException, org.ow2.proactive_grid_cloud_portal.scheduler.exception.PermissionRestException](https://github.com/ow2-proactive/scheduling/blob/66df203bb2954d6e37b2710a015aa2234d8a59b3/rest/rest-api/src/main/java/org/ow2/proactive_grid_cloud_portal/common/SchedulerRestInterface.java#L1532) [![rule](https://raw.githubusercontent.com/SonarCommunity/sonar-github/master/images/rule.png)](http://nemo.sonarqube.org/coding_rules#rule_key=squid%3AS1160)\n* ![MAJOR](https://raw.githubusercontent.com/SonarCommunity/sonar-github/master/images/severity-major.png) [Refactor this method to throw at most one checked exception instead of: org.ow2.proactive_grid_cloud_portal.scheduler.exception.NotConnectedRestException, org.ow2.proactive_grid_cloud_portal.scheduler.exception.UnknownJobRestException, org.ow2.proactive_grid_cloud_portal.scheduler.exception.PermissionRestException, org.ow2.proactive_grid_cloud_portal.scheduler.exception.LogForwardingRestException, java.io.IOException](https://github.com/ow2-proactive/scheduling/blob/66df203bb2954d6e37b2710a015aa2234d8a59b3/rest/rest-api/src/main/java/org/ow2/proactive_grid_cloud_portal/common/SchedulerRestInterface.java#L1451) [![rule](https://raw.githubusercontent.com/SonarCommunity/sonar-github/master/images/rule.png)](http://nemo.sonarqube.org/coding_rules#rule_key=squid%3AS1160)\n* ![MINOR](https://raw.githubusercontent.com/SonarCommunity/sonar-github/master/images/severity-minor.png) [Move this closing curly brace to the next line.](https://github.com/ow2-proactive/scheduling/blob/66df203bb2954d6e37b2710a015aa2234d8a59b3/rest/rest-api/src/main/java/org/ow2/proactive_grid_cloud_portal/scheduler/dto/TaskStateData.java#L76) [![rule](https://raw.githubusercontent.com/SonarCommunity/sonar-github/master/images/rule.png)](http://nemo.sonarqube.org/coding_rules#rule_key=squid%3ARightCurlyBraceStartLineCheck)\n* ![MINOR](https://raw.githubusercontent.com/SonarCommunity/sonar-github/master/images/severity-minor.png) [Move this closing curly brace to the next line.](https://github.com/ow2-proactive/scheduling/blob/66df203bb2954d6e37b2710a015aa2234d8a59b3/rest/rest-api/src/main/java/org/ow2/proactive_grid_cloud_portal/scheduler/dto/TaskStateData.java#L74) [![rule](https://raw.githubusercontent.com/SonarCommunity/sonar-github/master/images/rule.png)](http://nemo.sonarqube.org/coding_rules#rule_key=squid%3ARightCurlyBraceStartLineCheck)\n* ![MINOR](https://raw.githubusercontent.com/SonarCommunity/sonar-github/master/images/severity-minor.png) [Remove the declaration of thrown exception 'org.ow2.proactive_grid_cloud_portal.cli.CLIException' which is a runtime exception.](https://github.com/ow2-proactive/scheduling/blob/66df203bb2954d6e37b2710a015aa2234d8a59b3/rest/rest-cli/src/main/java/org/ow2/proactive_grid_cloud_portal/cli/cmd/sched/ListJobTasksCommand.java#L99) [![rule](https://raw.githubusercontent.com/SonarCommunity/sonar-github/master/images/rule.png)](http://nemo.sonarqube.org/coding_rules#rule_key=squid%3ARedundantThrowsDeclarationCheck)\n* ![MINOR](https://raw.githubusercontent.com/SonarCommunity/sonar-github/master/images/severity-minor.png) [Rename this package name to match the regular expression '^[a-z]+(\\.[a-z][a-z0-9]*)*$'.](https://github.com/ow2-proactive/scheduling/blob/66df203bb2954d6e37b2710a015aa2234d8a59b3/rest/rest-cli/src/main/java/org/ow2/proactive_grid_cloud_portal/cli/cmd/sched/ListJobTasksCommand.java#L38) [![rule](https://raw.githubusercontent.com/SonarCommunity/sonar-github/master/images/rule.png)](http://nemo.sonarqube.org/coding_rules#rule_key=squid%3AS00120)\n* ![MINOR](https://raw.githubusercontent.com/SonarCommunity/sonar-github/master/images/severity-minor.png) [Remove the declaration of thrown exception 'org.ow2.proactive_grid_cloud_portal.cli.CLIException' which is a runtime exception.](https://github.com/ow2-proactive/scheduling/blob/66df203bb2954d6e37b2710a015aa2234d8a59b3/rest/rest-cli/src/main/java/org/ow2/proactive_grid_cloud_portal/cli/cmd/sched/ListTaskStatesCommand.java#L71) [![rule](https://raw.githubusercontent.com/SonarCommunity/sonar-github/master/images/rule.png)](http://nemo.sonarqube.org/coding_rules#rule_key=squid%3ARedundantThrowsDeclarationCheck)\n* ![MINOR](https://raw.githubusercontent.com/SonarCommunity/sonar-github/master/images/severity-minor.png) [Rename this package name to match the regular expression '^[a-z]+(\\.[a-z][a-z0-9]*)*$'.](https://github.com/ow2-proactive/scheduling/blob/66df203bb2954d6e37b2710a015aa2234d8a59b3/rest/rest-cli/src/main/java/org/ow2/proactive_grid_cloud_portal/cli/cmd/sched/ListTaskStatesCommand.java#L37) [![rule](https://raw.githubusercontent.com/SonarCommunity/sonar-github/master/images/rule.png)](http://nemo.sonarqube.org/coding_rules#rule_key=squid%3AS00120)\n* ![MAJOR](https://raw.githubusercontent.com/SonarCommunity/sonar-github/master/images/severity-major.png) [The type of the \"results\" object should be an interface such as \"List\" rather than the implementation \"ArrayList\".](https://github.com/ow2-proactive/scheduling/blob/66df203bb2954d6e37b2710a015aa2234d8a59b3/rest/rest-client/src/main/java/org/ow2/proactive/scheduler/rest/SchedulerClient.java#L375) [![rule](https://raw.githubusercontent.com/SonarCommunity/sonar-github/master/images/rule.png)](http://nemo.sonarqube.org/coding_rules#rule_key=squid%3AS1319)\n* ![MAJOR](https://raw.githubusercontent.com/SonarCommunity/sonar-github/master/images/severity-major.png) [Introduce a new variable instead of reusing the parameter \"limit\".](https://github.com/ow2-proactive/scheduling/blob/66df203bb2954d6e37b2710a015aa2234d8a59b3/rest/rest-server/src/main/java/org/ow2/proactive_grid_cloud_portal/scheduler/SchedulerStateRest.java#L938) [![rule](https://raw.githubusercontent.com/SonarCommunity/sonar-github/master/images/rule.png)](http://nemo.sonarqube.org/coding_rules#rule_key=squid%3AS1226)\n* ![MAJOR](https://raw.githubusercontent.com/SonarCommunity/sonar-github/master/images/severity-major.png) [Replace the synchronized class \"StringBuffer\" by an unsynchronized one such as \"StringBuilder\".](https://github.com/ow2-proactive/scheduling/blob/66df203bb2954d6e37b2710a015aa2234d8a59b3/rest/rest-server/src/main/java/org/ow2/proactive_grid_cloud_portal/scheduler/SchedulerStateRest.java#L1580) [![rule](https://raw.githubusercontent.com/SonarCommunity/sonar-github/master/images/rule.png)](http://nemo.sonarqube.org/coding_rules#rule_key=squid%3AS1149)\n* ![MAJOR](https://raw.githubusercontent.com/SonarCommunity/sonar-github/master/images/severity-major.png) [Add the \"@Override\" annotation above this method signature](https://github.com/ow2-proactive/scheduling/blob/66df203bb2954d6e37b2710a015aa2234d8a59b3/rest/rest-server/src/main/java/org/ow2/proactive_grid_cloud_portal/scheduler/SchedulerStateRest.java#L1411) [![rule](https://raw.githubusercontent.com/SonarCommunity/sonar-github/master/images/rule.png)](http://nemo.sonarqube.org/coding_rules#rule_key=squid%3AS1161)\n* ![MAJOR](https://raw.githubusercontent.com/SonarCommunity/sonar-github/master/images/severity-major.png) [Add the \"@Override\" annotation above this method signature](https://github.com/ow2-proactive/scheduling/blob/66df203bb2954d6e37b2710a015aa2234d8a59b3/rest/rest-server/src/main/java/org/ow2/proactive_grid_cloud_portal/scheduler/SchedulerStateRest.java#L1772) [![rule](https://raw.githubusercontent.com/SonarCommunity/sonar-github/master/images/rule.png)](http://nemo.sonarqube.org/coding_rules#rule_key=squid%3AS1161)\n* ![MINOR](https://raw.githubusercontent.com/SonarCommunity/sonar-github/master/images/severity-minor.png) [At most one statement is allowed per line, but 2 statements were found on this line.](https://github.com/ow2-proactive/scheduling/blob/66df203bb2954d6e37b2710a015aa2234d8a59b3/rest/rest-server/src/main/java/org/ow2/proactive_grid_cloud_portal/scheduler/SchedulerStateRest.java#L855) [![rule](https://raw.githubusercontent.com/SonarCommunity/sonar-github/master/images/rule.png)](http://nemo.sonarqube.org/coding_rules#rule_key=squid%3AS00122)\n* ![MINOR](https://raw.githubusercontent.com/SonarCommunity/sonar-github/master/images/severity-minor.png) [Define a constant instead of duplicating this literal \"/tasks/tag/\" 5 times.](https://github.com/ow2-proactive/scheduling/blob/66df203bb2954d6e37b2710a015aa2234d8a59b3/rest/rest-server/src/main/java/org/ow2/proactive_grid_cloud_portal/scheduler/SchedulerStateRest.java#L1332) [![rule](https://raw.githubusercontent.com/SonarCommunity/sonar-github/master/images/rule.png)](http://nemo.sonarqube.org/coding_rules#rule_key=squid%3AS1192)\n* ![MINOR](https://raw.githubusercontent.com/SonarCommunity/sonar-github/master/images/severity-minor.png) [Define a constant instead of duplicating this literal \"/log/server\" 3 times.](https://github.com/ow2-proactive/scheduling/blob/66df203bb2954d6e37b2710a015aa2234d8a59b3/rest/rest-server/src/main/java/org/ow2/proactive_grid_cloud_portal/scheduler/SchedulerStateRest.java#L674) [![rule](https://raw.githubusercontent.com/SonarCommunity/sonar-github/master/images/rule.png)](http://nemo.sonarqube.org/coding_rules#rule_key=squid%3AS1192)\n* ![MAJOR](https://raw.githubusercontent.com/SonarCommunity/sonar-github/master/images/severity-major.png) [Introduce a new variable instead of reusing the parameter \"limit\".](https://github.com/ow2-proactive/scheduling/blob/66df203bb2954d6e37b2710a015aa2234d8a59b3/rest/rest-server/src/main/java/org/ow2/proactive_grid_cloud_portal/scheduler/SchedulerStateRest.java#L1147) [![rule](https://raw.githubusercontent.com/SonarCommunity/sonar-github/master/images/rule.png)](http://nemo.sonarqube.org/coding_rules#rule_key=squid%3AS1226)\n* ![MAJOR](https://raw.githubusercontent.com/SonarCommunity/sonar-github/master/images/severity-major.png) [Add the \"@Override\" annotation above this method signature](https://github.com/ow2-proactive/scheduling/blob/66df203bb2954d6e37b2710a015aa2234d8a59b3/rest/rest-server/src/main/java/org/ow2/proactive_grid_cloud_portal/scheduler/SchedulerStateRest.java#L996) [![rule](https://raw.githubusercontent.com/SonarCommunity/sonar-github/master/images/rule.png)](http://nemo.sonarqube.org/coding_rules#rule_key=squid%3AS1161)\n* ![MINOR](https://raw.githubusercontent.com/SonarCommunity/sonar-github/master/images/severity-minor.png) [Define a constant instead of duplicating this literal \"File \" 4 times.](https://github.com/ow2-proactive/scheduling/blob/66df203bb2954d6e37b2710a015aa2234d8a59b3/rest/rest-server/src/main/java/org/ow2/proactive_grid_cloud_portal/scheduler/SchedulerStateRest.java#L2252) [![rule](https://raw.githubusercontent.com/SonarCommunity/sonar-github/master/images/rule.png)](http://nemo.sonarqube.org/coding_rules#rule_key=squid%3AS1192)\n* ![MINOR](https://raw.githubusercontent.com/SonarCommunity/sonar-github/master/images/severity-minor.png) [At most one statement is allowed per line, but 2 statements were found on this line.](https://github.com/ow2-proactive/scheduling/blob/66df203bb2954d6e37b2710a015aa2234d8a59b3/rest/rest-server/src/main/java/org/ow2/proactive_grid_cloud_portal/scheduler/SchedulerStateRest.java#L1147) [![rule](https://raw.githubusercontent.com/SonarCommunity/sonar-github/master/images/rule.png)](http://nemo.sonarqube.org/coding_rules#rule_key=squid%3AS00122)\n* ![MAJOR](https://raw.githubusercontent.com/SonarCommunity/sonar-github/master/images/severity-major.png) [Add the \"@Override\" annotation above this method signature](https://github.com/ow2-proactive/scheduling/blob/66df203bb2954d6e37b2710a015aa2234d8a59b3/rest/rest-server/src/main/java/org/ow2/proactive_grid_cloud_portal/scheduler/SchedulerStateRest.java#L970) [![rule](https://raw.githubusercontent.com/SonarCommunity/sonar-github/master/images/rule.png)](http://nemo.sonarqube.org/coding_rules#rule_key=squid%3AS1161)\n* ![MAJOR](https://raw.githubusercontent.com/SonarCommunity/sonar-github/master/images/severity-major.png) [Introduce a new variable instead of reusing the parameter \"limit\".](https://github.com/ow2-proactive/scheduling/blob/66df203bb2954d6e37b2710a015aa2234d8a59b3/rest/rest-server/src/main/java/org/ow2/proactive_grid_cloud_portal/scheduler/SchedulerStateRest.java#L1079) [![rule](https://raw.githubusercontent.com/SonarCommunity/sonar-github/master/images/rule.png)](http://nemo.sonarqube.org/coding_rules#rule_key=squid%3AS1226)\n* ![MINOR](https://raw.githubusercontent.com/SonarCommunity/sonar-github/master/images/severity-minor.png) [Define a constant instead of duplicating this literal \"/result/value\" 3 times.](https://github.com/ow2-proactive/scheduling/blob/66df203bb2954d6e37b2710a015aa2234d8a59b3/rest/rest-server/src/main/java/org/ow2/proactive_grid_cloud_portal/scheduler/SchedulerStateRest.java#L604) [![rule](https://raw.githubusercontent.com/SonarCommunity/sonar-github/master/images/rule.png)](http://nemo.sonarqube.org/coding_rules#rule_key=squid%3AS1192)\n* ![MAJOR](https://raw.githubusercontent.com/SonarCommunity/sonar-github/master/images/severity-major.png) [Replace the synchronized class \"StringBuffer\" by an unsynchronized one such as \"StringBuilder\".](https://github.com/ow2-proactive/scheduling/blob/66df203bb2954d6e37b2710a015aa2234d8a59b3/rest/rest-server/src/main/java/org/ow2/proactive_grid_cloud_portal/scheduler/SchedulerStateRest.java#L1782) [![rule](https://raw.githubusercontent.com/SonarCommunity/sonar-github/master/images/rule.png)](http://nemo.sonarqube.org/coding_rules#rule_key=squid%3AS1149)\n* ![MAJOR](https://raw.githubusercontent.com/SonarCommunity/sonar-github/master/images/severity-major.png) [Add the \"@Override\" annotation above this method signature](https://github.com/ow2-proactive/scheduling/blob/66df203bb2954d6e37b2710a015aa2234d8a59b3/rest/rest-server/src/main/java/org/ow2/proactive_grid_cloud_portal/scheduler/SchedulerStateRest.java#L1570) [![rule](https://raw.githubusercontent.com/SonarCommunity/sonar-github/master/images/rule.png)](http://nemo.sonarqube.org/coding_rules#rule_key=squid%3AS1161)\n* ![MAJOR](https://raw.githubusercontent.com/SonarCommunity/sonar-github/master/images/severity-major.png) [Replace the synchronized class \"StringBuffer\" by an unsynchronized one such as \"StringBuilder\".](https://github.com/ow2-proactive/scheduling/blob/66df203bb2954d6e37b2710a015aa2234d8a59b3/rest/rest-server/src/main/java/org/ow2/proactive_grid_cloud_portal/scheduler/SchedulerStateRest.java#L1703) [![rule](https://raw.githubusercontent.com/SonarCommunity/sonar-github/master/images/rule.png)](http://nemo.sonarqube.org/coding_rules#rule_key=squid%3AS1149)\n* ![MAJOR](https://raw.githubusercontent.com/SonarCommunity/sonar-github/master/images/severity-major.png) [Add the \"@Override\" annotation above this method signature](https://github.com/ow2-proactive/scheduling/blob/66df203bb2954d6e37b2710a015aa2234d8a59b3/rest/rest-server/src/main/java/org/ow2/proactive_grid_cloud_portal/scheduler/SchedulerStateRest.java#L1907) [![rule](https://raw.githubusercontent.com/SonarCommunity/sonar-github/master/images/rule.png)](http://nemo.sonarqube.org/coding_rules#rule_key=squid%3AS1161)\n* ![MAJOR](https://raw.githubusercontent.com/SonarCommunity/sonar-github/master/images/severity-major.png) [Add the \"@Override\" annotation above this method signature](https://github.com/ow2-proactive/scheduling/blob/66df203bb2954d6e37b2710a015aa2234d8a59b3/rest/rest-server/src/main/java/org/ow2/proactive_grid_cloud_portal/scheduler/SchedulerStateRest.java#L1327) [![rule](https://raw.githubusercontent.com/SonarCommunity/sonar-github/master/images/rule.png)](http://nemo.sonarqube.org/coding_rules#rule_key=squid%3AS1161)\n* ![MINOR](https://raw.githubusercontent.com/SonarCommunity/sonar-github/master/images/severity-minor.png) [At most one statement is allowed per line, but 2 statements were found on this line.](https://github.com/ow2-proactive/scheduling/blob/66df203bb2954d6e37b2710a015aa2234d8a59b3/rest/rest-server/src/main/java/org/ow2/proactive_grid_cloud_portal/scheduler/SchedulerStateRest.java#L938) [![rule](https://raw.githubusercontent.com/SonarCommunity/sonar-github/master/images/rule.png)](http://nemo.sonarqube.org/coding_rules#rule_key=squid%3AS00122)\n* ![MAJOR](https://raw.githubusercontent.com/SonarCommunity/sonar-github/master/images/severity-major.png) [Add the \"@Override\" annotation above this method signature](https://github.com/ow2-proactive/scheduling/blob/66df203bb2954d6e37b2710a015aa2234d8a59b3/rest/rest-server/src/main/java/org/ow2/proactive_grid_cloud_portal/scheduler/SchedulerStateRest.java#L1483) [![rule](https://raw.githubusercontent.com/SonarCommunity/sonar-github/master/images/rule.png)](http://nemo.sonarqube.org/coding_rules#rule_key=squid%3AS1161)\n* ![MAJOR](https://raw.githubusercontent.com/SonarCommunity/sonar-github/master/images/severity-major.png) [Introduce a new variable instead of reusing the parameter \"limit\".](https://github.com/ow2-proactive/scheduling/blob/66df203bb2954d6e37b2710a015aa2234d8a59b3/rest/rest-server/src/main/java/org/ow2/proactive_grid_cloud_portal/scheduler/SchedulerStateRest.java#L855) [![rule](https://raw.githubusercontent.com/SonarCommunity/sonar-github/master/images/rule.png)](http://nemo.sonarqube.org/coding_rules#rule_key=squid%3AS1226)\n* ![MAJOR](https://raw.githubusercontent.com/SonarCommunity/sonar-github/master/images/severity-major.png) [The type of the \"results\" object should be an interface such as \"List\" rather than the implementation \"ArrayList\".](https://github.com/ow2-proactive/scheduling/blob/66df203bb2954d6e37b2710a015aa2234d8a59b3/rest/rest-server/src/main/java/org/ow2/proactive_grid_cloud_portal/scheduler/SchedulerStateRest.java#L1492) [![rule](https://raw.githubusercontent.com/SonarCommunity/sonar-github/master/images/rule.png)](http://nemo.sonarqube.org/coding_rules#rule_key=squid%3AS1319)\n* ![MINOR](https://raw.githubusercontent.com/SonarCommunity/sonar-github/master/images/severity-minor.png) [At most one statement is allowed per line, but 2 statements were found on this line.](https://github.com/ow2-proactive/scheduling/blob/66df203bb2954d6e37b2710a015aa2234d8a59b3/rest/rest-server/src/main/java/org/ow2/proactive_grid_cloud_portal/scheduler/SchedulerStateRest.java#L1079) [![rule](https://raw.githubusercontent.com/SonarCommunity/sonar-github/master/images/rule.png)](http://nemo.sonarqube.org/coding_rules#rule_key=squid%3AS00122)\n* ![MINOR](https://raw.githubusercontent.com/SonarCommunity/sonar-github/master/images/severity-minor.png) [Define a constant instead of duplicating this literal \"/result\" 3 times.](https://github.com/ow2-proactive/scheduling/blob/66df203bb2954d6e37b2710a015aa2234d8a59b3/rest/rest-server/src/main/java/org/ow2/proactive_grid_cloud_portal/scheduler/SchedulerStateRest.java#L549) [![rule](https://raw.githubusercontent.com/SonarCommunity/sonar-github/master/images/rule.png)](http://nemo.sonarqube.org/coding_rules#rule_key=squid%3AS1192)\n* ![MAJOR](https://raw.githubusercontent.com/SonarCommunity/sonar-github/master/images/severity-major.png) [Refactor this method to throw at most one checked exception instead of: org.ow2.proactive.scheduler.common.exception.NotConnectedException, org.ow2.proactive.scheduler.common.exception.UnknownJobException, org.ow2.proactive.scheduler.common.exception.PermissionException](https://github.com/ow2-proactive/scheduling/blob/66df203bb2954d6e37b2710a015aa2234d8a59b3/scheduler/scheduler-api/src/main/java/org/ow2/proactive/scheduler/common/Scheduler.java#L467) [![rule](https://raw.githubusercontent.com/SonarCommunity/sonar-github/master/images/rule.png)](http://nemo.sonarqube.org/coding_rules#rule_key=squid%3AS1160)\n* ![MAJOR](https://raw.githubusercontent.com/SonarCommunity/sonar-github/master/images/severity-major.png) [Refactor this method to throw at most one checked exception instead of: org.ow2.proactive.scheduler.common.exception.NotConnectedException, org.ow2.proactive.scheduler.common.exception.UnknownJobException, org.ow2.proactive.scheduler.common.exception.PermissionException](https://github.com/ow2-proactive/scheduling/blob/66df203bb2954d6e37b2710a015aa2234d8a59b3/scheduler/scheduler-api/src/main/java/org/ow2/proactive/scheduler/common/Scheduler.java#L487) [![rule](https://raw.githubusercontent.com/SonarCommunity/sonar-github/master/images/rule.png)](http://nemo.sonarqube.org/coding_rules#rule_key=squid%3AS1160)\n* ![MAJOR](https://raw.githubusercontent.com/SonarCommunity/sonar-github/master/images/severity-major.png) [The type of the \"results\" object should be an interface such as \"List\" rather than the implementation \"ArrayList\".](https://github.com/ow2-proactive/scheduling/blob/66df203bb2954d6e37b2710a015aa2234d8a59b3/scheduler/scheduler-server/src/main/java/org/ow2/proactive/scheduler/core/SchedulerFrontend.java#L424) [![rule](https://raw.githubusercontent.com/SonarCommunity/sonar-github/master/images/rule.png)](http://nemo.sonarqube.org/coding_rules#rule_key=squid%3AS1319)\n* ![MINOR](https://raw.githubusercontent.com/SonarCommunity/sonar-github/master/images/severity-minor.png) [Move this closing curly brace to the next line.](https://github.com/ow2-proactive/scheduling/blob/66df203bb2954d6e37b2710a015aa2234d8a59b3/scheduler/scheduler-server/src/main/java/org/ow2/proactive/scheduler/core/db/TaskData.java#L736) [![rule](https://raw.githubusercontent.com/SonarCommunity/sonar-github/master/images/rule.png)](http://nemo.sonarqube.org/coding_rules#rule_key=squid%3ARightCurlyBraceStartLineCheck)\n* ![MINOR](https://raw.githubusercontent.com/SonarCommunity/sonar-github/master/images/severity-minor.png) [Move this closing curly brace to the next line.](https://github.com/ow2-proactive/scheduling/blob/66df203bb2954d6e37b2710a015aa2234d8a59b3/scheduler/scheduler-server/src/main/java/org/ow2/proactive/scheduler/core/db/TaskData.java#L734) [![rule](https://raw.githubusercontent.com/SonarCommunity/sonar-github/master/images/rule.png)](http://nemo.sonarqube.org/coding_rules#rule_key=squid%3ARightCurlyBraceStartLineCheck)\n"}}