Skip to content

Commit

Permalink
revert: Prior merge main into v3 (#1141)
Browse files Browse the repository at this point in the history
  • Loading branch information
DaveSkender authored Jan 3, 2024
1 parent adcc42d commit 0d3e8b4
Show file tree
Hide file tree
Showing 44 changed files with 585 additions and 2,166 deletions.
11 changes: 0 additions & 11 deletions Stock.Indicators.sln
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,6 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Build", "Build", "{3A4158F9
.github\build.main.yml = .github\build.main.yml
.github\workflows\build.yml = .github\workflows\build.yml
.github\dependabot.yml = .github\dependabot.yml
gitversion.yml = gitversion.yml
EndProjectSection
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Observe.Streaming", "tests\observe\Observe.Streaming.csproj", "{14DEC3AF-9AF2-4A66-8BEE-C342C6CC4307}"
ProjectSection(ProjectDependencies) = postProject
{11CD6C7E-871F-4903-AEAD-58E034C6521D} = {11CD6C7E-871F-4903-AEAD-58E034C6521D}
{8D0F1781-EDA3-4C51-B05D-D33FF1156E49} = {8D0F1781-EDA3-4C51-B05D-D33FF1156E49}
EndProjectSection
EndProject
Global
Expand All @@ -55,10 +48,6 @@ Global
{3BD4837B-D197-41FD-A286-A3256D0770E1}.Debug|Any CPU.Build.0 = Debug|Any CPU
{3BD4837B-D197-41FD-A286-A3256D0770E1}.Release|Any CPU.ActiveCfg = Release|Any CPU
{3BD4837B-D197-41FD-A286-A3256D0770E1}.Release|Any CPU.Build.0 = Release|Any CPU
{14DEC3AF-9AF2-4A66-8BEE-C342C6CC4307}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{14DEC3AF-9AF2-4A66-8BEE-C342C6CC4307}.Debug|Any CPU.Build.0 = Debug|Any CPU
{14DEC3AF-9AF2-4A66-8BEE-C342C6CC4307}.Release|Any CPU.ActiveCfg = Release|Any CPU
{14DEC3AF-9AF2-4A66-8BEE-C342C6CC4307}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
Expand Down
1 change: 0 additions & 1 deletion gitversion.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
mode: ContinuousDelivery
next-version: 3.0.0

commit-message-incrementing: Enabled
major-version-bump-message: '\+semver:\s?(breaking|major)'
Expand Down
20 changes: 0 additions & 20 deletions src/GlobalSuppressions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -44,23 +44,3 @@
"StyleCop.CSharp.SpacingRules",
"SA1010:Opening square brackets should be spaced correctly",
Justification = "Invalid for new C# 12 [ collection ] syntax.")]

[assembly: SuppressMessage(
"Naming",
"CA1725:Parameter names should match base declaration",
Justification = "The microsoft OnError implementation uses reserved word Error",
Scope = "member",
Target = "~M:Skender.Stock.Indicators.QuoteObserver.OnError(System.Exception)")]

[assembly: SuppressMessage(
"Naming",
"CA1716:Identifiers should not match keywords",
Justification = "The microsoft OnError implementation uses reserved word Error",
Scope = "member",
Target = "~M:Skender.Stock.Indicators.QuoteObserver.OnError(System.Exception)")]

[assembly: SuppressMessage(
"Naming",
"CA1716:Identifiers should not match keywords",
Justification = "The microsoft OnError implementation uses reserved word Error",
Scope = "member", Target = "~M:Skender.Stock.Indicators.TupleObserver.OnError(System.Exception)")]
14 changes: 2 additions & 12 deletions src/_common/Generics/Seek.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,22 +4,12 @@ namespace Skender.Stock.Indicators;

public static class Seeking
{
// FIND SERIES by DATE
/// <include file='./info.xml' path='info/type[@name="FindSeries"]/*' />
// FIND by DATE
/// <include file='./info.xml' path='info/type[@name="Find"]/*' />
///
public static TSeries? Find<TSeries>(
this IEnumerable<TSeries> series,
DateTime lookupDate)
where TSeries : ISeries => series
.FirstOrDefault(x => x.Date == lookupDate);

// FIND INDEX by DATE
/// <include file='./info.xml' path='info/type[@name="FindIndex"]/*' />
///
public static int FindIndex<TSeries>(
this List<TSeries> series,
DateTime lookupDate)
where TSeries : ISeries => series == null
? -1
: series.FindIndex(x => x.Date == lookupDate);
}
19 changes: 3 additions & 16 deletions src/_common/Generics/info.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>

<info>
<type name="FindSeries">
<type name="Find">
<summary> Finds time series values on a specific date.
<para>
See <see href="https://dotnet.StockIndicators.dev/utilities/#find-indicator-result-by-date?utm_source=library&amp;utm_medium=inline-help&amp;utm_campaign=embedded">documentation</see> for more information.
Expand All @@ -10,21 +10,8 @@
<typeparam name="TSeries">Any series type.</typeparam>
<param name="series">Time series to evaluate.</param>
<param name="lookupDate">Exact date to lookup.</param>
<returns>First record in the series on the date specified.</returns>
</type>
<type name="FindIndex">
<summary>
Finds time series index on a specific date.
<para>
See <see href="https://dotnet.StockIndicators.dev/utilities/#find-indicator-result-by-date?utm_source=library">documentation</see> for more information.
</para>
</summary>
<typeparam name="TSeries">Any series type.</typeparam>
<param name="series">Time series to evaluate.</param>
<param name="lookupDate">Exact date to lookup.</param>
<returns>
First index in the series of the date specified or -1 if not found.
</returns>
<returns>First
record in the series on the date specified.</returns>
</type>
<type name="Prune">
<summary> Removes a specific quantity from the beginning of the time series list.
Expand Down
194 changes: 0 additions & 194 deletions src/_common/Observables/ChainProvider.cs

This file was deleted.

29 changes: 0 additions & 29 deletions src/_common/Observables/QuoteObserver.cs

This file was deleted.

Loading

0 comments on commit 0d3e8b4

Please sign in to comment.