Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New Rule S6580: Always use DateTime.Parse overloads with an IFormatProvider parameter #7078

Closed
2 tasks done
mary-georgiou-sonarsource opened this issue Apr 14, 2023 · 0 comments · Fixed by #7525
Closed
2 tasks done
Assignees
Labels
Area: C# C# rules related issues. Area: VB.NET VB.NET rules related issues. Type: New Rule Implementation for a rule that HAS been specified.
Projects
Milestone

Comments

@mary-georgiou-sonarsource
Copy link
Contributor

mary-georgiou-sonarsource commented Apr 14, 2023

Implement new rule S6580: Always use DateTime.Parse overloads with an "IFormatProvider" parameter.
An issue should be raised for any Parse method listed below, where an IFormatProvider is not provided.

Date and Time parse methods:

  • DateTime.Parse
  • DateTimeOffset.Parse
  • DateOnly.Parse
  • TimeOnly.Parse
  • DateTime.TryParse
  • DateTimeOffset.TryParse
  • DateOnly.TryParse
  • TimeOnly.TryParse
  • DateTime.TryParseExact
  • DateTimeOffset.TryParseExact
  • DateOnly.TryParseExact
  • TimeOnly.TryParseExact
  • Implement Rule S6580 for C#
  • Implement Rule S6580 for VB.NET
@mary-georgiou-sonarsource mary-georgiou-sonarsource added Area: VB.NET VB.NET rules related issues. Area: C# C# rules related issues. Type: New Rule Implementation for a rule that HAS been specified. labels Apr 14, 2023
@csaba-sagi-sonarsource csaba-sagi-sonarsource changed the title New Rule S6580: Always use DateTime.Parse overloads with an "IFormatProvider" parameter New Rule S6580: Always use DateTime.Parse overloads with an IFormatProvider parameter Apr 14, 2023
@zsolt-kolbay-sonarsource zsolt-kolbay-sonarsource moved this from To do to In progress in Best Kanban Jun 28, 2023
@github-actions github-actions bot moved this from In progress to Review in progress in Best Kanban Jul 2, 2023
@cristian-ambrosini-sonarsource cristian-ambrosini-sonarsource moved this from Review in progress to In progress in Best Kanban Jul 3, 2023
@github-actions github-actions bot moved this from In progress to Review in progress in Best Kanban Jul 5, 2023
@github-actions github-actions bot moved this from Review in progress to Review approved in Best Kanban Jul 5, 2023
Best Kanban automation moved this from Review approved to Validate Peach Jul 5, 2023
@zsolt-kolbay-sonarsource zsolt-kolbay-sonarsource moved this from Validate Peach to Done in Best Kanban Jul 6, 2023
@cristian-ambrosini-sonarsource cristian-ambrosini-sonarsource added this to the 9.5 milestone Jul 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: C# C# rules related issues. Area: VB.NET VB.NET rules related issues. Type: New Rule Implementation for a rule that HAS been specified.
Projects
Best Kanban
  
Done
Development

Successfully merging a pull request may close this issue.

4 participants