From 02955d4df4c1e16ec3fcd6977979badc44a8b91e Mon Sep 17 00:00:00 2001 From: Florian Hockmann Date: Thu, 15 Jun 2017 18:25:56 +0200 Subject: [PATCH 1/3] Clean-up Gremlin-DotNet project files This removes some obsolete configuration options and improves the package meta information. Especially the description was extended to reflect the current state of Gremlin-DotNet. This explanation can be removed as soon as the old Gremlin.Net driver is obsolete (probably when a first release version of Gremlin-DotNet is released). The version is now 3.2.5-beta1. --- .../src/Gremlin.Net/Gremlin.Net.csproj | 44 +++++++------------ .../Gremlin.Net/Properties/AssemblyInfo.cs | 44 ------------------- .../Gremlin.Net.IntegrationTest.csproj | 4 -- .../Properties/AssemblyInfo.cs | 44 ------------------- .../Gremlin.Net.UnitTest.csproj | 6 --- .../Properties/AssemblyInfo.cs | 44 ------------------- 6 files changed, 17 insertions(+), 169 deletions(-) delete mode 100644 gremlin-dotnet/src/Gremlin.Net/Properties/AssemblyInfo.cs delete mode 100644 gremlin-dotnet/test/Gremlin.Net.IntegrationTest/Properties/AssemblyInfo.cs delete mode 100644 gremlin-dotnet/test/Gremlin.Net.UnitTest/Properties/AssemblyInfo.cs diff --git a/gremlin-dotnet/src/Gremlin.Net/Gremlin.Net.csproj b/gremlin-dotnet/src/Gremlin.Net/Gremlin.Net.csproj index a1fc9ef7d7b..124bb963a6a 100644 --- a/gremlin-dotnet/src/Gremlin.Net/Gremlin.Net.csproj +++ b/gremlin-dotnet/src/Gremlin.Net/Gremlin.Net.csproj @@ -1,41 +1,31 @@  - - - Gremlin.Net is a cross-platform Gremlin Server driver for .NET that is written in C#. It uses WebSockets to communicate with Gremlin Server. - Gremlin.Net - Apache TinkerPop + + netstandard1.3 - 3.2.5-SNAPSHOT - Gremlin.Net + true + + + + 3.2.5-beta1 + Gremlin-DotNet + Apache TinkerPop + + Apache TinkerPop’s Gremlin-DotNet implements Gremlin within the C# language. + +Gremlin-DotNet is an extended version of the Gremlin.Net driver (versions <= 0.X). It includes an implementation of Gremlin in C#. This extended version is now part of the Apache TinkerPop project. +The 'old' Gremlin.Net driver is however still supported. Head to https://github.com/FlorianHockmann/Gremlin.Net for more information. + Gremlin.Net - gremlin-dotnet;gremlin;tinkerpop;tinkerpop3 + gremlin;tinkerpop;tinkerpop3 http://tinkerpop.apache.org https://github.com/apache/tinkerpop/blob/master/LICENSE https://github.com/apache/tinkerpop - false - false - false - False - - - - - - - - - - - - - - + - diff --git a/gremlin-dotnet/src/Gremlin.Net/Properties/AssemblyInfo.cs b/gremlin-dotnet/src/Gremlin.Net/Properties/AssemblyInfo.cs deleted file mode 100644 index 433db198c4a..00000000000 --- a/gremlin-dotnet/src/Gremlin.Net/Properties/AssemblyInfo.cs +++ /dev/null @@ -1,44 +0,0 @@ -#region License - -/* - * 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 - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -#endregion - -using System.Reflection; -using System.Runtime.InteropServices; - -// General Information about an assembly is controlled through the following -// set of attributes. Change these attribute values to modify the information -// associated with an assembly. - -[assembly: AssemblyConfiguration("")] -[assembly: AssemblyCompany("")] -[assembly: AssemblyProduct("Gremlin.Net")] -[assembly: AssemblyTrademark("")] - -// Setting ComVisible to false makes the types in this assembly not visible -// to COM components. If you need to access a type in this assembly from -// COM, set the ComVisible attribute to true on that type. - -[assembly: ComVisible(false)] - -// The following GUID is for the ID of the typelib if this project is exposed to COM - -[assembly: Guid("6c1dd34d-e30f-4e37-aacc-beb8ad2320d8")] \ No newline at end of file diff --git a/gremlin-dotnet/test/Gremlin.Net.IntegrationTest/Gremlin.Net.IntegrationTest.csproj b/gremlin-dotnet/test/Gremlin.Net.IntegrationTest/Gremlin.Net.IntegrationTest.csproj index c5f29da98bc..fed1c49ce14 100644 --- a/gremlin-dotnet/test/Gremlin.Net.IntegrationTest/Gremlin.Net.IntegrationTest.csproj +++ b/gremlin-dotnet/test/Gremlin.Net.IntegrationTest/Gremlin.Net.IntegrationTest.csproj @@ -5,11 +5,7 @@ portable Gremlin.Net.IntegrationTest Gremlin.Net.IntegrationTest - true 1.0.4 - false - false - false diff --git a/gremlin-dotnet/test/Gremlin.Net.IntegrationTest/Properties/AssemblyInfo.cs b/gremlin-dotnet/test/Gremlin.Net.IntegrationTest/Properties/AssemblyInfo.cs deleted file mode 100644 index 5dea6f08894..00000000000 --- a/gremlin-dotnet/test/Gremlin.Net.IntegrationTest/Properties/AssemblyInfo.cs +++ /dev/null @@ -1,44 +0,0 @@ -#region License - -/* - * 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 - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -#endregion - -using System.Reflection; -using System.Runtime.InteropServices; - -// General Information about an assembly is controlled through the following -// set of attributes. Change these attribute values to modify the information -// associated with an assembly. - -[assembly: AssemblyConfiguration("")] -[assembly: AssemblyCompany("")] -[assembly: AssemblyProduct("Gremlin.Net.IntegrationTest")] -[assembly: AssemblyTrademark("")] - -// Setting ComVisible to false makes the types in this assembly not visible -// to COM components. If you need to access a type in this assembly from -// COM, set the ComVisible attribute to true on that type. - -[assembly: ComVisible(false)] - -// The following GUID is for the ID of the typelib if this project is exposed to COM - -[assembly: Guid("cc54abe3-13d2-491c-81e2-4d0355abfa93")] \ No newline at end of file diff --git a/gremlin-dotnet/test/Gremlin.Net.UnitTest/Gremlin.Net.UnitTest.csproj b/gremlin-dotnet/test/Gremlin.Net.UnitTest/Gremlin.Net.UnitTest.csproj index 6cf88ac9396..db36085da50 100644 --- a/gremlin-dotnet/test/Gremlin.Net.UnitTest/Gremlin.Net.UnitTest.csproj +++ b/gremlin-dotnet/test/Gremlin.Net.UnitTest/Gremlin.Net.UnitTest.csproj @@ -5,11 +5,7 @@ portable Gremlin.Net.UnitTest Gremlin.Net.UnitTest - true 1.0.4 - false - false - false @@ -19,8 +15,6 @@ - - diff --git a/gremlin-dotnet/test/Gremlin.Net.UnitTest/Properties/AssemblyInfo.cs b/gremlin-dotnet/test/Gremlin.Net.UnitTest/Properties/AssemblyInfo.cs deleted file mode 100644 index f339aa098d5..00000000000 --- a/gremlin-dotnet/test/Gremlin.Net.UnitTest/Properties/AssemblyInfo.cs +++ /dev/null @@ -1,44 +0,0 @@ -#region License - -/* - * 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 - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -#endregion - -using System.Reflection; -using System.Runtime.InteropServices; - -// General Information about an assembly is controlled through the following -// set of attributes. Change these attribute values to modify the information -// associated with an assembly. - -[assembly: AssemblyConfiguration("")] -[assembly: AssemblyCompany("")] -[assembly: AssemblyProduct("Gremlin.Net.UnitTest")] -[assembly: AssemblyTrademark("")] - -// Setting ComVisible to false makes the types in this assembly not visible -// to COM components. If you need to access a type in this assembly from -// COM, set the ComVisible attribute to true on that type. - -[assembly: ComVisible(false)] - -// The following GUID is for the ID of the typelib if this project is exposed to COM - -[assembly: Guid("1fab781b-b857-4ad2-bec8-e20c214d9e21")] \ No newline at end of file From ab55e95de63efc6d670a7af50901f9c48a33501d Mon Sep 17 00:00:00 2001 From: Florian Hockmann Date: Thu, 15 Jun 2017 19:00:38 +0200 Subject: [PATCH 2/3] Let Gremlin-DotNet include the documentation comments Every build now generates an XML document containing the documentation comments which will be displayed to the user with IntelliSense. The warning about missing comments had to be disabled for some files as we currently just don't have comments for those. --- gremlin-dotnet/glv/AnonymousTraversal.template | 4 ++++ gremlin-dotnet/glv/Enum.template | 4 ++++ gremlin-dotnet/glv/GraphTraversal.template | 4 ++++ gremlin-dotnet/glv/GraphTraversalSource.template | 4 ++++ gremlin-dotnet/glv/P.template | 4 ++++ gremlin-dotnet/src/Gremlin.Net/Gremlin.Net.csproj | 1 + gremlin-dotnet/src/Gremlin.Net/Process/Traversal/Barrier.cs | 4 ++++ .../src/Gremlin.Net/Process/Traversal/Cardinality.cs | 4 ++++ gremlin-dotnet/src/Gremlin.Net/Process/Traversal/Column.cs | 4 ++++ gremlin-dotnet/src/Gremlin.Net/Process/Traversal/Direction.cs | 4 ++++ .../src/Gremlin.Net/Process/Traversal/GraphSONVersion.cs | 4 ++++ .../src/Gremlin.Net/Process/Traversal/GraphTraversal.cs | 4 ++++ .../src/Gremlin.Net/Process/Traversal/GraphTraversalSource.cs | 4 ++++ .../src/Gremlin.Net/Process/Traversal/GryoVersion.cs | 4 ++++ gremlin-dotnet/src/Gremlin.Net/Process/Traversal/Operator.cs | 4 ++++ gremlin-dotnet/src/Gremlin.Net/Process/Traversal/Order.cs | 4 ++++ gremlin-dotnet/src/Gremlin.Net/Process/Traversal/P.cs | 4 ++++ gremlin-dotnet/src/Gremlin.Net/Process/Traversal/Pick.cs | 4 ++++ gremlin-dotnet/src/Gremlin.Net/Process/Traversal/Pop.cs | 4 ++++ gremlin-dotnet/src/Gremlin.Net/Process/Traversal/Scope.cs | 4 ++++ .../Traversal/Strategy/Decoration/HaltedTraverserStrategy.cs | 2 ++ .../Traversal/Strategy/Decoration/VertexProgramStrategy.cs | 2 ++ .../Traversal/Strategy/Finalization/MatchAlgorithmStrategy.cs | 2 ++ .../Traversal/Strategy/Optimization/GraphFilterStrategy.cs | 2 ++ .../Traversal/Strategy/Optimization/OrderLimitStrategy.cs | 2 ++ .../Traversal/Strategy/Optimization/PathRetractionStrategy.cs | 2 ++ .../Traversal/Strategy/Optimization/RepeatUnrollStrategy.cs | 2 ++ gremlin-dotnet/src/Gremlin.Net/Process/Traversal/T.cs | 4 ++++ gremlin-dotnet/src/Gremlin.Net/Process/Traversal/__.cs | 4 ++++ 29 files changed, 99 insertions(+) diff --git a/gremlin-dotnet/glv/AnonymousTraversal.template b/gremlin-dotnet/glv/AnonymousTraversal.template index 9bc72576b33..216b6d4502f 100644 --- a/gremlin-dotnet/glv/AnonymousTraversal.template +++ b/gremlin-dotnet/glv/AnonymousTraversal.template @@ -27,6 +27,8 @@ using Gremlin.Net.Structure; // THIS IS A GENERATED FILE - DO NOT MODIFY THIS FILE DIRECTLY - see pom.xml namespace Gremlin.Net.Process.Traversal { +#pragma warning disable 1591 + /// /// An anonymous . /// @@ -48,5 +50,7 @@ namespace Gremlin.Net.Process.Traversal return new GraphTraversal().<%= toCSharpMethodName.call(method.methodName) %><%= method.tParam %>(args); } <% } %> + +#pragma warning restore 1591 } } \ No newline at end of file diff --git a/gremlin-dotnet/glv/Enum.template b/gremlin-dotnet/glv/Enum.template index 25537f4720b..1fddab109db 100644 --- a/gremlin-dotnet/glv/Enum.template +++ b/gremlin-dotnet/glv/Enum.template @@ -24,8 +24,12 @@ // THIS IS A GENERATED FILE - DO NOT MODIFY THIS FILE DIRECTLY - see pom.xml namespace Gremlin.Net.Process.Traversal { +#pragma warning disable 1591 + public enum <%= enumClass.simpleName %> { <%= constants %> } + +#pragma warning restore 1591 } \ No newline at end of file diff --git a/gremlin-dotnet/glv/GraphTraversal.template b/gremlin-dotnet/glv/GraphTraversal.template index d514e163ca9..ab96a17f35e 100644 --- a/gremlin-dotnet/glv/GraphTraversal.template +++ b/gremlin-dotnet/glv/GraphTraversal.template @@ -27,6 +27,8 @@ using Gremlin.Net.Structure; // THIS IS A GENERATED FILE - DO NOT MODIFY THIS FILE DIRECTLY - see pom.xml namespace Gremlin.Net.Process.Traversal { +#pragma warning disable 1591 + /// /// Graph traversals are the primary way in which graphs are processed. /// @@ -73,4 +75,6 @@ namespace Gremlin.Net.Process.Traversal <% } %> } + +#pragma warning restore 1591 } \ No newline at end of file diff --git a/gremlin-dotnet/glv/GraphTraversalSource.template b/gremlin-dotnet/glv/GraphTraversalSource.template index 7a945f8604e..0d98433101a 100644 --- a/gremlin-dotnet/glv/GraphTraversalSource.template +++ b/gremlin-dotnet/glv/GraphTraversalSource.template @@ -30,6 +30,8 @@ using Gremlin.Net.Structure; // THIS IS A GENERATED FILE - DO NOT MODIFY THIS FILE DIRECTLY - see pom.xml namespace Gremlin.Net.Process.Traversal { +#pragma warning disable 1591 + /// /// A is the primary DSL of the Gremlin traversal machine. /// It provides access to all the configurations and steps for Turing complete graph computing. @@ -125,4 +127,6 @@ namespace Gremlin.Net.Process.Traversal } <% } %> } + +#pragma warning restore 1591 } \ No newline at end of file diff --git a/gremlin-dotnet/glv/P.template b/gremlin-dotnet/glv/P.template index 6a62414840d..f187cbb27b0 100644 --- a/gremlin-dotnet/glv/P.template +++ b/gremlin-dotnet/glv/P.template @@ -24,6 +24,8 @@ // THIS IS A GENERATED FILE - DO NOT MODIFY THIS FILE DIRECTLY - see pom.xml namespace Gremlin.Net.Process.Traversal { +#pragma warning disable 1591 + /// /// A is a predicate of the form Func<object, bool>. /// That is, given some object, return true or false. @@ -38,4 +40,6 @@ namespace Gremlin.Net.Process.Traversal } <% } %> } + +#pragma warning restore 1591 } \ No newline at end of file diff --git a/gremlin-dotnet/src/Gremlin.Net/Gremlin.Net.csproj b/gremlin-dotnet/src/Gremlin.Net/Gremlin.Net.csproj index 124bb963a6a..93f135c3288 100644 --- a/gremlin-dotnet/src/Gremlin.Net/Gremlin.Net.csproj +++ b/gremlin-dotnet/src/Gremlin.Net/Gremlin.Net.csproj @@ -3,6 +3,7 @@ netstandard1.3 true + true diff --git a/gremlin-dotnet/src/Gremlin.Net/Process/Traversal/Barrier.cs b/gremlin-dotnet/src/Gremlin.Net/Process/Traversal/Barrier.cs index aa4040a747f..555d372589d 100644 --- a/gremlin-dotnet/src/Gremlin.Net/Process/Traversal/Barrier.cs +++ b/gremlin-dotnet/src/Gremlin.Net/Process/Traversal/Barrier.cs @@ -24,8 +24,12 @@ // THIS IS A GENERATED FILE - DO NOT MODIFY THIS FILE DIRECTLY - see pom.xml namespace Gremlin.Net.Process.Traversal { +#pragma warning disable 1591 + public enum Barrier { NormSack } + +#pragma warning restore 1591 } \ No newline at end of file diff --git a/gremlin-dotnet/src/Gremlin.Net/Process/Traversal/Cardinality.cs b/gremlin-dotnet/src/Gremlin.Net/Process/Traversal/Cardinality.cs index 029638087ea..c31a142654b 100644 --- a/gremlin-dotnet/src/Gremlin.Net/Process/Traversal/Cardinality.cs +++ b/gremlin-dotnet/src/Gremlin.Net/Process/Traversal/Cardinality.cs @@ -24,8 +24,12 @@ // THIS IS A GENERATED FILE - DO NOT MODIFY THIS FILE DIRECTLY - see pom.xml namespace Gremlin.Net.Process.Traversal { +#pragma warning disable 1591 + public enum Cardinality { List,Set,Single } + +#pragma warning restore 1591 } \ No newline at end of file diff --git a/gremlin-dotnet/src/Gremlin.Net/Process/Traversal/Column.cs b/gremlin-dotnet/src/Gremlin.Net/Process/Traversal/Column.cs index 15e248c3756..adcf738cef2 100644 --- a/gremlin-dotnet/src/Gremlin.Net/Process/Traversal/Column.cs +++ b/gremlin-dotnet/src/Gremlin.Net/Process/Traversal/Column.cs @@ -24,8 +24,12 @@ // THIS IS A GENERATED FILE - DO NOT MODIFY THIS FILE DIRECTLY - see pom.xml namespace Gremlin.Net.Process.Traversal { +#pragma warning disable 1591 + public enum Column { Keys,Values } + +#pragma warning restore 1591 } \ No newline at end of file diff --git a/gremlin-dotnet/src/Gremlin.Net/Process/Traversal/Direction.cs b/gremlin-dotnet/src/Gremlin.Net/Process/Traversal/Direction.cs index 27d393494b5..d3792633ac4 100644 --- a/gremlin-dotnet/src/Gremlin.Net/Process/Traversal/Direction.cs +++ b/gremlin-dotnet/src/Gremlin.Net/Process/Traversal/Direction.cs @@ -24,8 +24,12 @@ // THIS IS A GENERATED FILE - DO NOT MODIFY THIS FILE DIRECTLY - see pom.xml namespace Gremlin.Net.Process.Traversal { +#pragma warning disable 1591 + public enum Direction { Both,In,Out } + +#pragma warning restore 1591 } \ No newline at end of file diff --git a/gremlin-dotnet/src/Gremlin.Net/Process/Traversal/GraphSONVersion.cs b/gremlin-dotnet/src/Gremlin.Net/Process/Traversal/GraphSONVersion.cs index cc66fba0644..6869ba5a4dd 100644 --- a/gremlin-dotnet/src/Gremlin.Net/Process/Traversal/GraphSONVersion.cs +++ b/gremlin-dotnet/src/Gremlin.Net/Process/Traversal/GraphSONVersion.cs @@ -24,8 +24,12 @@ // THIS IS A GENERATED FILE - DO NOT MODIFY THIS FILE DIRECTLY - see pom.xml namespace Gremlin.Net.Process.Traversal { +#pragma warning disable 1591 + public enum GraphSONVersion { V1_0,V2_0 } + +#pragma warning restore 1591 } \ No newline at end of file diff --git a/gremlin-dotnet/src/Gremlin.Net/Process/Traversal/GraphTraversal.cs b/gremlin-dotnet/src/Gremlin.Net/Process/Traversal/GraphTraversal.cs index 34f5bfb6aa1..4390c795c28 100644 --- a/gremlin-dotnet/src/Gremlin.Net/Process/Traversal/GraphTraversal.cs +++ b/gremlin-dotnet/src/Gremlin.Net/Process/Traversal/GraphTraversal.cs @@ -27,6 +27,8 @@ // THIS IS A GENERATED FILE - DO NOT MODIFY THIS FILE DIRECTLY - see pom.xml namespace Gremlin.Net.Process.Traversal { +#pragma warning disable 1591 + /// /// Graph traversals are the primary way in which graphs are processed. /// @@ -946,4 +948,6 @@ public GraphTraversal< S , E > Where (params object[] args) } + +#pragma warning restore 1591 } \ No newline at end of file diff --git a/gremlin-dotnet/src/Gremlin.Net/Process/Traversal/GraphTraversalSource.cs b/gremlin-dotnet/src/Gremlin.Net/Process/Traversal/GraphTraversalSource.cs index 317afadc15a..e0cd25ae7ff 100644 --- a/gremlin-dotnet/src/Gremlin.Net/Process/Traversal/GraphTraversalSource.cs +++ b/gremlin-dotnet/src/Gremlin.Net/Process/Traversal/GraphTraversalSource.cs @@ -30,6 +30,8 @@ // THIS IS A GENERATED FILE - DO NOT MODIFY THIS FILE DIRECTLY - see pom.xml namespace Gremlin.Net.Process.Traversal { +#pragma warning disable 1591 + /// /// A is the primary DSL of the Gremlin traversal machine. /// It provides access to all the configurations and steps for Turing complete graph computing. @@ -187,4 +189,6 @@ public GraphTraversal< Vertex,Vertex > AddV(params object[] args) } } + +#pragma warning restore 1591 } \ No newline at end of file diff --git a/gremlin-dotnet/src/Gremlin.Net/Process/Traversal/GryoVersion.cs b/gremlin-dotnet/src/Gremlin.Net/Process/Traversal/GryoVersion.cs index 76a263dee76..5ee735882be 100644 --- a/gremlin-dotnet/src/Gremlin.Net/Process/Traversal/GryoVersion.cs +++ b/gremlin-dotnet/src/Gremlin.Net/Process/Traversal/GryoVersion.cs @@ -24,8 +24,12 @@ // THIS IS A GENERATED FILE - DO NOT MODIFY THIS FILE DIRECTLY - see pom.xml namespace Gremlin.Net.Process.Traversal { +#pragma warning disable 1591 + public enum GryoVersion { V1_0 } + +#pragma warning restore 1591 } \ No newline at end of file diff --git a/gremlin-dotnet/src/Gremlin.Net/Process/Traversal/Operator.cs b/gremlin-dotnet/src/Gremlin.Net/Process/Traversal/Operator.cs index d98d9bab890..1ebc581433e 100644 --- a/gremlin-dotnet/src/Gremlin.Net/Process/Traversal/Operator.cs +++ b/gremlin-dotnet/src/Gremlin.Net/Process/Traversal/Operator.cs @@ -24,8 +24,12 @@ // THIS IS A GENERATED FILE - DO NOT MODIFY THIS FILE DIRECTLY - see pom.xml namespace Gremlin.Net.Process.Traversal { +#pragma warning disable 1591 + public enum Operator { AddAll,And,Assign,Div,Max,Min,Minus,Mult,Or,Sum,SumLong } + +#pragma warning restore 1591 } \ No newline at end of file diff --git a/gremlin-dotnet/src/Gremlin.Net/Process/Traversal/Order.cs b/gremlin-dotnet/src/Gremlin.Net/Process/Traversal/Order.cs index 2e0c4ea60fa..0fdbbf9b04e 100644 --- a/gremlin-dotnet/src/Gremlin.Net/Process/Traversal/Order.cs +++ b/gremlin-dotnet/src/Gremlin.Net/Process/Traversal/Order.cs @@ -24,8 +24,12 @@ // THIS IS A GENERATED FILE - DO NOT MODIFY THIS FILE DIRECTLY - see pom.xml namespace Gremlin.Net.Process.Traversal { +#pragma warning disable 1591 + public enum Order { Decr,Incr,KeyDecr,KeyIncr,Shuffle,ValueDecr,ValueIncr } + +#pragma warning restore 1591 } \ No newline at end of file diff --git a/gremlin-dotnet/src/Gremlin.Net/Process/Traversal/P.cs b/gremlin-dotnet/src/Gremlin.Net/Process/Traversal/P.cs index e0174023415..89bdc29fe7c 100644 --- a/gremlin-dotnet/src/Gremlin.Net/Process/Traversal/P.cs +++ b/gremlin-dotnet/src/Gremlin.Net/Process/Traversal/P.cs @@ -24,6 +24,8 @@ // THIS IS A GENERATED FILE - DO NOT MODIFY THIS FILE DIRECTLY - see pom.xml namespace Gremlin.Net.Process.Traversal { +#pragma warning disable 1591 + /// /// A is a predicate of the form Func<object, bool>. /// That is, given some object, return true or false. @@ -110,4 +112,6 @@ public static TraversalPredicate Without(params object[] args) } } + +#pragma warning restore 1591 } \ No newline at end of file diff --git a/gremlin-dotnet/src/Gremlin.Net/Process/Traversal/Pick.cs b/gremlin-dotnet/src/Gremlin.Net/Process/Traversal/Pick.cs index 2231cdaf125..1f8c2d91263 100644 --- a/gremlin-dotnet/src/Gremlin.Net/Process/Traversal/Pick.cs +++ b/gremlin-dotnet/src/Gremlin.Net/Process/Traversal/Pick.cs @@ -24,8 +24,12 @@ // THIS IS A GENERATED FILE - DO NOT MODIFY THIS FILE DIRECTLY - see pom.xml namespace Gremlin.Net.Process.Traversal { +#pragma warning disable 1591 + public enum Pick { Any,None } + +#pragma warning restore 1591 } \ No newline at end of file diff --git a/gremlin-dotnet/src/Gremlin.Net/Process/Traversal/Pop.cs b/gremlin-dotnet/src/Gremlin.Net/Process/Traversal/Pop.cs index 01c6e1a616b..f0975d224e1 100644 --- a/gremlin-dotnet/src/Gremlin.Net/Process/Traversal/Pop.cs +++ b/gremlin-dotnet/src/Gremlin.Net/Process/Traversal/Pop.cs @@ -24,8 +24,12 @@ // THIS IS A GENERATED FILE - DO NOT MODIFY THIS FILE DIRECTLY - see pom.xml namespace Gremlin.Net.Process.Traversal { +#pragma warning disable 1591 + public enum Pop { All,First,Last } + +#pragma warning restore 1591 } \ No newline at end of file diff --git a/gremlin-dotnet/src/Gremlin.Net/Process/Traversal/Scope.cs b/gremlin-dotnet/src/Gremlin.Net/Process/Traversal/Scope.cs index e443252786c..67fa9707e8d 100644 --- a/gremlin-dotnet/src/Gremlin.Net/Process/Traversal/Scope.cs +++ b/gremlin-dotnet/src/Gremlin.Net/Process/Traversal/Scope.cs @@ -24,8 +24,12 @@ // THIS IS A GENERATED FILE - DO NOT MODIFY THIS FILE DIRECTLY - see pom.xml namespace Gremlin.Net.Process.Traversal { +#pragma warning disable 1591 + public enum Scope { Global,Local } + +#pragma warning restore 1591 } \ No newline at end of file diff --git a/gremlin-dotnet/src/Gremlin.Net/Process/Traversal/Strategy/Decoration/HaltedTraverserStrategy.cs b/gremlin-dotnet/src/Gremlin.Net/Process/Traversal/Strategy/Decoration/HaltedTraverserStrategy.cs index 98f949cda00..688ef92a1be 100644 --- a/gremlin-dotnet/src/Gremlin.Net/Process/Traversal/Strategy/Decoration/HaltedTraverserStrategy.cs +++ b/gremlin-dotnet/src/Gremlin.Net/Process/Traversal/Strategy/Decoration/HaltedTraverserStrategy.cs @@ -23,6 +23,7 @@ namespace Gremlin.Net.Process.Traversal.Strategy.Decoration { +#pragma warning disable 1591 public class HaltedTraverserStrategy : AbstractTraversalStrategy { public HaltedTraverserStrategy(string haltedTraverserFactoryName = null) @@ -31,4 +32,5 @@ public HaltedTraverserStrategy(string haltedTraverserFactoryName = null) Configuration["haltedTraverserFactory"] = haltedTraverserFactoryName; } } +#pragma warning restore 1591 } \ No newline at end of file diff --git a/gremlin-dotnet/src/Gremlin.Net/Process/Traversal/Strategy/Decoration/VertexProgramStrategy.cs b/gremlin-dotnet/src/Gremlin.Net/Process/Traversal/Strategy/Decoration/VertexProgramStrategy.cs index 1c5b5f2cf27..61df1c1bee2 100644 --- a/gremlin-dotnet/src/Gremlin.Net/Process/Traversal/Strategy/Decoration/VertexProgramStrategy.cs +++ b/gremlin-dotnet/src/Gremlin.Net/Process/Traversal/Strategy/Decoration/VertexProgramStrategy.cs @@ -26,6 +26,7 @@ namespace Gremlin.Net.Process.Traversal.Strategy.Decoration { +#pragma warning disable 1591 public class VertexProgramStrategy : AbstractTraversalStrategy { public VertexProgramStrategy(string graphComputer = null, int? workers = null, string persist = null, @@ -47,4 +48,5 @@ public VertexProgramStrategy(string graphComputer = null, int? workers = null, s configuration?.ToList().ForEach(x => Configuration[x.Key] = x.Value); } } +#pragma warning restore 1591 } \ No newline at end of file diff --git a/gremlin-dotnet/src/Gremlin.Net/Process/Traversal/Strategy/Finalization/MatchAlgorithmStrategy.cs b/gremlin-dotnet/src/Gremlin.Net/Process/Traversal/Strategy/Finalization/MatchAlgorithmStrategy.cs index 11a9e2c52b6..d066c8a4319 100644 --- a/gremlin-dotnet/src/Gremlin.Net/Process/Traversal/Strategy/Finalization/MatchAlgorithmStrategy.cs +++ b/gremlin-dotnet/src/Gremlin.Net/Process/Traversal/Strategy/Finalization/MatchAlgorithmStrategy.cs @@ -23,6 +23,7 @@ namespace Gremlin.Net.Process.Traversal.Strategy.Finalization { +#pragma warning disable 1591 public class MatchAlgorithmStrategy : AbstractTraversalStrategy { public MatchAlgorithmStrategy(string matchAlgorithm = null) @@ -31,4 +32,5 @@ public MatchAlgorithmStrategy(string matchAlgorithm = null) Configuration["matchAlgorithm"] = matchAlgorithm; } } +#pragma warning restore 1591 } \ No newline at end of file diff --git a/gremlin-dotnet/src/Gremlin.Net/Process/Traversal/Strategy/Optimization/GraphFilterStrategy.cs b/gremlin-dotnet/src/Gremlin.Net/Process/Traversal/Strategy/Optimization/GraphFilterStrategy.cs index aaaee2c617e..7d29b0d719c 100644 --- a/gremlin-dotnet/src/Gremlin.Net/Process/Traversal/Strategy/Optimization/GraphFilterStrategy.cs +++ b/gremlin-dotnet/src/Gremlin.Net/Process/Traversal/Strategy/Optimization/GraphFilterStrategy.cs @@ -23,7 +23,9 @@ namespace Gremlin.Net.Process.Traversal.Strategy.Optimization { +#pragma warning disable 1591 public class GraphFilterStrategy : AbstractTraversalStrategy { } +#pragma warning restore 1591 } \ No newline at end of file diff --git a/gremlin-dotnet/src/Gremlin.Net/Process/Traversal/Strategy/Optimization/OrderLimitStrategy.cs b/gremlin-dotnet/src/Gremlin.Net/Process/Traversal/Strategy/Optimization/OrderLimitStrategy.cs index 82a8df9e8a4..c8b4ec4bcac 100644 --- a/gremlin-dotnet/src/Gremlin.Net/Process/Traversal/Strategy/Optimization/OrderLimitStrategy.cs +++ b/gremlin-dotnet/src/Gremlin.Net/Process/Traversal/Strategy/Optimization/OrderLimitStrategy.cs @@ -23,7 +23,9 @@ namespace Gremlin.Net.Process.Traversal.Strategy.Optimization { +#pragma warning disable 1591 public class OrderLimitStrategy : AbstractTraversalStrategy { } +#pragma warning restore 1591 } \ No newline at end of file diff --git a/gremlin-dotnet/src/Gremlin.Net/Process/Traversal/Strategy/Optimization/PathRetractionStrategy.cs b/gremlin-dotnet/src/Gremlin.Net/Process/Traversal/Strategy/Optimization/PathRetractionStrategy.cs index e54fbb5a978..03978e7efdb 100644 --- a/gremlin-dotnet/src/Gremlin.Net/Process/Traversal/Strategy/Optimization/PathRetractionStrategy.cs +++ b/gremlin-dotnet/src/Gremlin.Net/Process/Traversal/Strategy/Optimization/PathRetractionStrategy.cs @@ -23,7 +23,9 @@ namespace Gremlin.Net.Process.Traversal.Strategy.Optimization { +#pragma warning disable 1591 public class PathRetractionStrategy : AbstractTraversalStrategy { } +#pragma warning restore 1591 } \ No newline at end of file diff --git a/gremlin-dotnet/src/Gremlin.Net/Process/Traversal/Strategy/Optimization/RepeatUnrollStrategy.cs b/gremlin-dotnet/src/Gremlin.Net/Process/Traversal/Strategy/Optimization/RepeatUnrollStrategy.cs index 6cac454dd36..b9e3fc2802e 100644 --- a/gremlin-dotnet/src/Gremlin.Net/Process/Traversal/Strategy/Optimization/RepeatUnrollStrategy.cs +++ b/gremlin-dotnet/src/Gremlin.Net/Process/Traversal/Strategy/Optimization/RepeatUnrollStrategy.cs @@ -23,7 +23,9 @@ namespace Gremlin.Net.Process.Traversal.Strategy.Optimization { +#pragma warning disable 1591 public class RepeatUnrollStrategy : AbstractTraversalStrategy { } +#pragma warning restore 1591 } \ No newline at end of file diff --git a/gremlin-dotnet/src/Gremlin.Net/Process/Traversal/T.cs b/gremlin-dotnet/src/Gremlin.Net/Process/Traversal/T.cs index f914916b33d..b580aabeaab 100644 --- a/gremlin-dotnet/src/Gremlin.Net/Process/Traversal/T.cs +++ b/gremlin-dotnet/src/Gremlin.Net/Process/Traversal/T.cs @@ -24,8 +24,12 @@ // THIS IS A GENERATED FILE - DO NOT MODIFY THIS FILE DIRECTLY - see pom.xml namespace Gremlin.Net.Process.Traversal { +#pragma warning disable 1591 + public enum T { Id,Key,Label,Value } + +#pragma warning restore 1591 } \ No newline at end of file diff --git a/gremlin-dotnet/src/Gremlin.Net/Process/Traversal/__.cs b/gremlin-dotnet/src/Gremlin.Net/Process/Traversal/__.cs index fd7a901bb72..0574d244371 100644 --- a/gremlin-dotnet/src/Gremlin.Net/Process/Traversal/__.cs +++ b/gremlin-dotnet/src/Gremlin.Net/Process/Traversal/__.cs @@ -27,6 +27,8 @@ // THIS IS A GENERATED FILE - DO NOT MODIFY THIS FILE DIRECTLY - see pom.xml namespace Gremlin.Net.Process.Traversal { +#pragma warning disable 1591 + /// /// An anonymous . /// @@ -768,5 +770,7 @@ public static GraphTraversal Where(params object[] args) return new GraphTraversal().Where(args); } + +#pragma warning restore 1591 } } \ No newline at end of file From 99bbcb478de1cdc5704e47f598e30738f734342e Mon Sep 17 00:00:00 2001 From: Florian Hockmann Date: Fri, 16 Jun 2017 16:49:12 +0200 Subject: [PATCH 3/3] Re-enable warnings where they were disabled unnecessarily --- gremlin-dotnet/glv/AnonymousTraversal.template | 4 ---- gremlin-dotnet/glv/GraphTraversal.template | 5 ----- .../src/Gremlin.Net/Process/Traversal/GraphTraversal.cs | 5 ----- gremlin-dotnet/src/Gremlin.Net/Process/Traversal/__.cs | 4 ---- 4 files changed, 18 deletions(-) diff --git a/gremlin-dotnet/glv/AnonymousTraversal.template b/gremlin-dotnet/glv/AnonymousTraversal.template index 216b6d4502f..9bc72576b33 100644 --- a/gremlin-dotnet/glv/AnonymousTraversal.template +++ b/gremlin-dotnet/glv/AnonymousTraversal.template @@ -27,8 +27,6 @@ using Gremlin.Net.Structure; // THIS IS A GENERATED FILE - DO NOT MODIFY THIS FILE DIRECTLY - see pom.xml namespace Gremlin.Net.Process.Traversal { -#pragma warning disable 1591 - /// /// An anonymous . /// @@ -50,7 +48,5 @@ namespace Gremlin.Net.Process.Traversal return new GraphTraversal().<%= toCSharpMethodName.call(method.methodName) %><%= method.tParam %>(args); } <% } %> - -#pragma warning restore 1591 } } \ No newline at end of file diff --git a/gremlin-dotnet/glv/GraphTraversal.template b/gremlin-dotnet/glv/GraphTraversal.template index ab96a17f35e..5c3e03e34be 100644 --- a/gremlin-dotnet/glv/GraphTraversal.template +++ b/gremlin-dotnet/glv/GraphTraversal.template @@ -27,8 +27,6 @@ using Gremlin.Net.Structure; // THIS IS A GENERATED FILE - DO NOT MODIFY THIS FILE DIRECTLY - see pom.xml namespace Gremlin.Net.Process.Traversal { -#pragma warning disable 1591 - /// /// Graph traversals are the primary way in which graphs are processed. /// @@ -73,8 +71,5 @@ namespace Gremlin.Net.Process.Traversal return Wrap< <%= method.t1 %> , <%= method.t2 %> >(this); } <% } %> - } - -#pragma warning restore 1591 } \ No newline at end of file diff --git a/gremlin-dotnet/src/Gremlin.Net/Process/Traversal/GraphTraversal.cs b/gremlin-dotnet/src/Gremlin.Net/Process/Traversal/GraphTraversal.cs index 4390c795c28..24938649090 100644 --- a/gremlin-dotnet/src/Gremlin.Net/Process/Traversal/GraphTraversal.cs +++ b/gremlin-dotnet/src/Gremlin.Net/Process/Traversal/GraphTraversal.cs @@ -27,8 +27,6 @@ // THIS IS A GENERATED FILE - DO NOT MODIFY THIS FILE DIRECTLY - see pom.xml namespace Gremlin.Net.Process.Traversal { -#pragma warning disable 1591 - /// /// Graph traversals are the primary way in which graphs are processed. /// @@ -946,8 +944,5 @@ public GraphTraversal< S , E > Where (params object[] args) return Wrap< S , E >(this); } - } - -#pragma warning restore 1591 } \ No newline at end of file diff --git a/gremlin-dotnet/src/Gremlin.Net/Process/Traversal/__.cs b/gremlin-dotnet/src/Gremlin.Net/Process/Traversal/__.cs index 0574d244371..fd7a901bb72 100644 --- a/gremlin-dotnet/src/Gremlin.Net/Process/Traversal/__.cs +++ b/gremlin-dotnet/src/Gremlin.Net/Process/Traversal/__.cs @@ -27,8 +27,6 @@ // THIS IS A GENERATED FILE - DO NOT MODIFY THIS FILE DIRECTLY - see pom.xml namespace Gremlin.Net.Process.Traversal { -#pragma warning disable 1591 - /// /// An anonymous . /// @@ -770,7 +768,5 @@ public static GraphTraversal Where(params object[] args) return new GraphTraversal().Where(args); } - -#pragma warning restore 1591 } } \ No newline at end of file