diff --git a/src/.editorconfig b/src/.editorconfig index e9a7cee8..7273fbaf 100644 --- a/src/.editorconfig +++ b/src/.editorconfig @@ -404,4 +404,5 @@ file_header_template = Copyright (c) by Terradue Srl. All Rights Reserved.\nLice dotnet_diagnostic.SA1636.severity = none # Disable file header matching dotnet_diagnostic.SA1501.severity = error # Braces must not be omitted dotnet_diagnostic.SA1101.severity = warning # Prefix local calls with this -dotnet_diagnostic.SA1507.severity = warning # Code should not contain multiple blank lines in a row \ No newline at end of file +dotnet_diagnostic.SA1507.severity = warning # Code should not contain multiple blank lines in a row +dotnet_diagnostic.SA1124.severity = warning # Do not use regions \ No newline at end of file diff --git a/src/DotNetStac/Extensions/VirtualAssets/VirtualAsset.cs b/src/DotNetStac/Extensions/VirtualAssets/VirtualAsset.cs index 08885ae7..e4dca72f 100644 --- a/src/DotNetStac/Extensions/VirtualAssets/VirtualAsset.cs +++ b/src/DotNetStac/Extensions/VirtualAssets/VirtualAsset.cs @@ -15,7 +15,6 @@ namespace Stac.Extensions.VirtualAssets public class VirtualAsset : StacAsset { - #region Static members /// /// Create a new Virtual Asset from assets defined in an existing stac item @@ -30,7 +29,6 @@ public static VirtualAsset Create(StacItem stacItem, IList assetsKey, IS return new VirtualAsset(parentObject, stacItem.Assets.Select(asset => new Uri(asset.Value.Uri, "#" + asset.Key)).ToList()); } - #endregion /// /// Initialize a new Virtual Asset for a STAC object with an array of items diff --git a/src/DotNetStac/StacCatalog.cs b/src/DotNetStac/StacCatalog.cs index 3e6d1e8c..3a06a197 100644 --- a/src/DotNetStac/StacCatalog.cs +++ b/src/DotNetStac/StacCatalog.cs @@ -65,7 +65,6 @@ public StacCatalog(StacCatalog stacCatalog) this.Properties = new Dictionary(stacCatalog.Properties); } - # region IStacObject /// /// Identifier for the Catalog. @@ -104,7 +103,6 @@ public ICollection Links [JsonIgnore] public ContentType MediaType => CATALOG_MEDIATYPE; - # endregion IStacObject /// /// STAC type (Catalog) diff --git a/src/DotNetStac/StacCollection.cs b/src/DotNetStac/StacCollection.cs index 2ace4abf..f219eedc 100644 --- a/src/DotNetStac/StacCollection.cs +++ b/src/DotNetStac/StacCollection.cs @@ -71,7 +71,6 @@ public StacCollection(StacCollection stacCollection) this.Extent = new StacExtent(stacCollection.Extent); } - #region IStacObject /// /// Identifier for the Collection. @@ -110,7 +109,6 @@ public ICollection Links [JsonIgnore] public ContentType MediaType => COLLECTION_MEDIATYPE; - #endregion IStacObject /// /// STAC type (Collection) @@ -188,7 +186,6 @@ public bool ShouldSerializeAssets() return this.Assets.Count > 0; } - #region Static Methods /// /// Generate a collection corresponding to the items' dictionary. Spatial and temporal extents @@ -258,8 +255,6 @@ public static StacCollection Create(string id, return collection; } - #endregion - public void Update(IDictionary items) { diff --git a/src/DotNetStac/StacItem.cs b/src/DotNetStac/StacItem.cs index 634eb1c5..94732a97 100644 --- a/src/DotNetStac/StacItem.cs +++ b/src/DotNetStac/StacItem.cs @@ -82,7 +82,6 @@ private void LinksCollectionChanged(object sender, NotifyCollectionChangedEventA } } - #region IStacObject /// /// The STAC version the Item implements @@ -114,8 +113,6 @@ public ICollection Links [JsonIgnore] public ContentType MediaType => ITEM_MEDIATYPE; - # endregion IStacObject - [JsonProperty("assets", Order = 4)] public IDictionary Assets { get; private set; } diff --git a/src/DotNetStac/StacLink.cs b/src/DotNetStac/StacLink.cs index 01ce261a..2868100b 100644 --- a/src/DotNetStac/StacLink.cs +++ b/src/DotNetStac/StacLink.cs @@ -14,8 +14,6 @@ namespace Stac [DataContract] public class StacLink { - #region Static members - public static StacLink CreateSelfLink(Uri uri, string mediaType = null, string title = null) { return new StacLink(uri, "self", title, mediaType); @@ -61,8 +59,6 @@ public static StacLink CreateObjectLink(IStacObject stacObject, Uri uri) return new StacObjectLink(stacObject, uri); } - #endregion - public StacLink() { }