-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use editorconfig and implement feedback
- Loading branch information
1 parent
ee08496
commit 4b8b525
Showing
6 changed files
with
82 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
root = true | ||
|
||
[*] | ||
end_of_line = lf | ||
insert_final_newline = true | ||
indent_style = space | ||
indent_size = 4 | ||
charset = utf-8 | ||
|
||
[*.cs] | ||
trim_trailing_whitespace = true | ||
max_line_length = 175 | ||
|
||
dotnet_style_namespace_match_folder = true:error | ||
dotnet_diagnostic.IDE0130.severity = error | ||
|
||
csharp_style_namespace_declarations = file_scoped:error | ||
dotnet_diagnostic.IDE0161.severity = error | ||
|
||
dotnet_diagnostic.IDE0005.severity = error | ||
|
||
dotnet_diagnostic.CA2007.severity = error | ||
dotnet_diagnostic.CA2016.severity = error | ||
|
||
dotnet_naming_rule.private_members_with_underscore.symbols = private_fields | ||
dotnet_naming_rule.private_members_with_underscore.style = prefix_underscore | ||
dotnet_naming_rule.private_members_with_underscore.severity = warning | ||
dotnet_naming_symbols.private_fields.applicable_kinds = field | ||
dotnet_naming_symbols.private_fields.applicable_accessibilities = private | ||
dotnet_naming_style.prefix_underscore.capitalization = camel_case | ||
dotnet_naming_style.prefix_underscore.required_prefix = _ | ||
|
||
dotnet_naming_rule.const_members_all_caps.symbols = const_fields | ||
dotnet_naming_rule.const_members_all_caps.style = all_caps | ||
dotnet_naming_rule.const_members_all_caps.severity = warning | ||
dotnet_naming_symbols.const_fields.applicable_kinds = field | ||
dotnet_naming_symbols.const_fields.applicable_accessibilities = * | ||
dotnet_naming_symbols.const_fields.required_modifiers = const | ||
dotnet_naming_style.all_caps.capitalization = all_upper | ||
dotnet_naming_style.all_caps.word_separator = _ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<Project> | ||
<PropertyGroup> | ||
<GenerateDocumentationFile>true</GenerateDocumentationFile> | ||
<EnforceCodeStyleInBuild>true</EnforceCodeStyleInBuild> | ||
<NoWarn>$(NoWarn);SYSLIB1006;CS1591;IL2104;IL2026;CS1570;CS1573</NoWarn> | ||
<TreatWarningsAsErrors>true</TreatWarningsAsErrors> | ||
</PropertyGroup> | ||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,36 +1,34 @@ | ||
// Copyright (c) RaaLabs. All rights reserved. | ||
// Licensed under the GPLv2 License. See LICENSE file in the project root for full license information. | ||
|
||
using System; | ||
using RaaLabs.Edge.Modules.EdgeHub; | ||
|
||
|
||
namespace RaaLabs.Edge.Connectors.OPCUA.Events | ||
namespace RaaLabs.Edge.Connectors.OPCUA.Events; | ||
|
||
/// <summary> | ||
/// The data point on the format it should be sent to EdgeHub. | ||
/// </summary> | ||
[OutputName("output")] | ||
public class OpcuaDatapointOutput : IEdgeHubOutgoingEvent | ||
{ | ||
/// <summary> | ||
/// The data point on the format it should be sent to EdgeHub. | ||
/// Represents the Source system. | ||
/// </summary> | ||
[OutputName("output")] | ||
public class OpcuaDatapointOutput : IEdgeHubOutgoingEvent | ||
{ | ||
/// <summary> | ||
/// Represents the Source system. | ||
/// </summary> | ||
public string Source { get; set; } | ||
public string Source { get; set; } | ||
|
||
/// <summary> | ||
/// Gets or sets the tag. Represents the sensor name from the source system, OPC UA node id, consisting of namespace index and identifier, e.g. "ns=3;i=1002". | ||
/// </summary> | ||
public string Tag { get; set; } | ||
/// <summary> | ||
/// Gets or sets the tag. Represents the sensor name from the source system, OPC UA node id, consisting of namespace index and identifier, e.g. "ns=3;i=1002". | ||
/// </summary> | ||
public string Tag { get; set; } | ||
|
||
/// <summary> | ||
/// The value of the sensor reading. | ||
/// </summary> | ||
public dynamic Value { get; set; } | ||
/// <summary> | ||
/// The value of the sensor reading. | ||
/// </summary> | ||
public dynamic Value { get; set; } | ||
|
||
/// <summary> | ||
/// Gets or sets the timestamp in the form of EPOCH milliseconds granularity. | ||
/// </summary> | ||
public long Timestamp { get; set; } | ||
} | ||
} | ||
/// <summary> | ||
/// Gets or sets the timestamp in the form of EPOCH milliseconds granularity. | ||
/// </summary> | ||
public long Timestamp { get; set; } | ||
} |