src/Services/ConferenceManagement/Strive.Core/Utilities/CronYearParser.cs
Method GetNextYear
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private static int? GetNextYear(string yearExp, int year)
{
if (yearExp == "*")
return year;
Avoid too many return
statements within this method. Open
Open
if (year > end) return null;
Avoid too many return
statements within this method. Open
Open
return year;
Avoid too many return
statements within this method. Open
Open
if (specificYears.Contains(year)) return year;
Avoid too many return
statements within this method. Open
Open
return CronExpression.Parse(cronExp).GetNextOccurrence(now, timeZone);
Avoid too many return
statements within this method. Open
Open
return nextYear;
Avoid too many return
statements within this method. Open
Open
if (start > year) return start;