[31/49] ambari git commit: AMBARI-20735. Checkstyle rule to ensure that all API endpoints are documented
AMBARI-20735. Checkstyle rule to ensure that all API endpoints are documented Project: http://git-wip-us.apache.org/repos/asf/ambari/repo Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/4ede6715 Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/4ede6715 Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/4ede6715 Branch: refs/heads/trunk Commit: 4ede671514563a3cc116bc2059d6d8b878a5a784 Parents: 3acd2e6 Author: Attila DoroszlaiAuthored: Tue Apr 11 17:24:36 2017 +0200 Committer: Attila Doroszlai Committed: Thu Apr 20 09:55:17 2017 +0200 -- ambari-server/checkstyle.xml| 1 + ambari-server/pom.xml | 2 +- ambari-server/src/main/assemblies/server.xml| 2 +- utility/checkstyle.xml | 38 + utility/pom.xml | 5 +- .../apache/ambari/annotations/ApiIgnore.java| 29 .../UndocumentedRestApiOperationCheck.java | 76 ++ ...dTransactionalOnPrivateMethodsCheckTest.java | 4 +- .../UndocumentedRestApiOperationCheckTest.java | 53 +++ .../checkstyle/InputRestApiOperation.java | 138 +++ 10 files changed, 343 insertions(+), 5 deletions(-) -- http://git-wip-us.apache.org/repos/asf/ambari/blob/4ede6715/ambari-server/checkstyle.xml -- diff --git a/ambari-server/checkstyle.xml b/ambari-server/checkstyle.xml index bf7698d..6b4824a 100644 --- a/ambari-server/checkstyle.xml +++ b/ambari-server/checkstyle.xml @@ -13,6 +13,7 @@ + http://git-wip-us.apache.org/repos/asf/ambari/blob/4ede6715/ambari-server/pom.xml -- diff --git a/ambari-server/pom.xml b/ambari-server/pom.xml index fbc2b9f..ba97f88 100644 --- a/ambari-server/pom.xml +++ b/ambari-server/pom.xml @@ -1631,7 +1631,7 @@ utility utility 1.0.0.0-SNAPSHOT - test + provided org.kohsuke http://git-wip-us.apache.org/repos/asf/ambari/blob/4ede6715/ambari-server/src/main/assemblies/server.xml -- diff --git a/ambari-server/src/main/assemblies/server.xml b/ambari-server/src/main/assemblies/server.xml index 2783526..43053fb 100644 --- a/ambari-server/src/main/assemblies/server.xml +++ b/ambari-server/src/main/assemblies/server.xml @@ -418,7 +418,7 @@ 644 /usr/lib/ambari-server false - compile + runtime http://git-wip-us.apache.org/repos/asf/ambari/blob/4ede6715/utility/checkstyle.xml -- diff --git a/utility/checkstyle.xml b/utility/checkstyle.xml new file mode 100644 index 000..2e7d6f0 --- /dev/null +++ b/utility/checkstyle.xml @@ -0,0 +1,38 @@ + + +http://www.puppycrawl.com/dtds/configuration_1_3.dtd;> + + + + + + + + + + + + + + + + + + + + + + + + + + http://git-wip-us.apache.org/repos/asf/ambari/blob/4ede6715/utility/pom.xml -- diff --git a/utility/pom.xml b/utility/pom.xml index 6f60206..7d5eb93 100644 --- a/utility/pom.xml +++ b/utility/pom.xml @@ -52,7 +52,6 @@ com.google.guava guava 19.0 - test @@ -96,6 +95,10 @@ + +org.apache.maven.plugins +maven-checkstyle-plugin + http://git-wip-us.apache.org/repos/asf/ambari/blob/4ede6715/utility/src/main/java/org/apache/ambari/annotations/ApiIgnore.java -- diff --git a/utility/src/main/java/org/apache/ambari/annotations/ApiIgnore.java b/utility/src/main/java/org/apache/ambari/annotations/ApiIgnore.java new file mode 100644 index 000..d50c2fd --- /dev/null +++ b/utility/src/main/java/org/apache/ambari/annotations/ApiIgnore.java @@ -0,0 +1,29 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY
ambari git commit: AMBARI-20735. Checkstyle rule to ensure that all API endpoints are documented
Repository: ambari Updated Branches: refs/heads/ambari-rest-api-explorer 3acd2e6da -> 4ede67151 AMBARI-20735. Checkstyle rule to ensure that all API endpoints are documented Project: http://git-wip-us.apache.org/repos/asf/ambari/repo Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/4ede6715 Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/4ede6715 Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/4ede6715 Branch: refs/heads/ambari-rest-api-explorer Commit: 4ede671514563a3cc116bc2059d6d8b878a5a784 Parents: 3acd2e6 Author: Attila DoroszlaiAuthored: Tue Apr 11 17:24:36 2017 +0200 Committer: Attila Doroszlai Committed: Thu Apr 20 09:55:17 2017 +0200 -- ambari-server/checkstyle.xml| 1 + ambari-server/pom.xml | 2 +- ambari-server/src/main/assemblies/server.xml| 2 +- utility/checkstyle.xml | 38 + utility/pom.xml | 5 +- .../apache/ambari/annotations/ApiIgnore.java| 29 .../UndocumentedRestApiOperationCheck.java | 76 ++ ...dTransactionalOnPrivateMethodsCheckTest.java | 4 +- .../UndocumentedRestApiOperationCheckTest.java | 53 +++ .../checkstyle/InputRestApiOperation.java | 138 +++ 10 files changed, 343 insertions(+), 5 deletions(-) -- http://git-wip-us.apache.org/repos/asf/ambari/blob/4ede6715/ambari-server/checkstyle.xml -- diff --git a/ambari-server/checkstyle.xml b/ambari-server/checkstyle.xml index bf7698d..6b4824a 100644 --- a/ambari-server/checkstyle.xml +++ b/ambari-server/checkstyle.xml @@ -13,6 +13,7 @@ + http://git-wip-us.apache.org/repos/asf/ambari/blob/4ede6715/ambari-server/pom.xml -- diff --git a/ambari-server/pom.xml b/ambari-server/pom.xml index fbc2b9f..ba97f88 100644 --- a/ambari-server/pom.xml +++ b/ambari-server/pom.xml @@ -1631,7 +1631,7 @@ utility utility 1.0.0.0-SNAPSHOT - test + provided org.kohsuke http://git-wip-us.apache.org/repos/asf/ambari/blob/4ede6715/ambari-server/src/main/assemblies/server.xml -- diff --git a/ambari-server/src/main/assemblies/server.xml b/ambari-server/src/main/assemblies/server.xml index 2783526..43053fb 100644 --- a/ambari-server/src/main/assemblies/server.xml +++ b/ambari-server/src/main/assemblies/server.xml @@ -418,7 +418,7 @@ 644 /usr/lib/ambari-server false - compile + runtime http://git-wip-us.apache.org/repos/asf/ambari/blob/4ede6715/utility/checkstyle.xml -- diff --git a/utility/checkstyle.xml b/utility/checkstyle.xml new file mode 100644 index 000..2e7d6f0 --- /dev/null +++ b/utility/checkstyle.xml @@ -0,0 +1,38 @@ + + +http://www.puppycrawl.com/dtds/configuration_1_3.dtd;> + + + + + + + + + + + + + + + + + + + + + + + + + + http://git-wip-us.apache.org/repos/asf/ambari/blob/4ede6715/utility/pom.xml -- diff --git a/utility/pom.xml b/utility/pom.xml index 6f60206..7d5eb93 100644 --- a/utility/pom.xml +++ b/utility/pom.xml @@ -52,7 +52,6 @@ com.google.guava guava 19.0 - test @@ -96,6 +95,10 @@ + +org.apache.maven.plugins +maven-checkstyle-plugin + http://git-wip-us.apache.org/repos/asf/ambari/blob/4ede6715/utility/src/main/java/org/apache/ambari/annotations/ApiIgnore.java -- diff --git a/utility/src/main/java/org/apache/ambari/annotations/ApiIgnore.java b/utility/src/main/java/org/apache/ambari/annotations/ApiIgnore.java new file mode 100644 index 000..d50c2fd --- /dev/null +++ b/utility/src/main/java/org/apache/ambari/annotations/ApiIgnore.java @@ -0,0 +1,29 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing,