-
Notifications
You must be signed in to change notification settings - Fork 27
First Pass At StyleCop Integration #23
First Pass At StyleCop Integration #23
Conversation
Conflicts: Emby.AutoOrganize/Core/Extensions.cs Emby.AutoOrganize/Data/SqliteFileOrganizationRepository.cs Emby.AutoOrganize/Model/FileOrganizationResult.cs Emby.AutoOrganize/Model/SmartMatchInfo.cs Emby.AutoOrganize/Model/SmartMatchResult.cs
[SuppressMessage("Usage", "CA2227:Collection properties should be read only", Justification = "This property needs to support serialization by both ServiceStack and XmlSerializer")] | ||
public List<SmartMatchInfo> SmartMatchInfos { get; set; } | ||
public List<SmartMatchInfo> SmartMatchInfos { get; set; } = new List<SmartMatchInfo>(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Property is initialized here to avoid using the obsolete SmartMatchInfo
class in the constructor, which raises an additional warning.
<Rule Id="SA1611" Action="Info" /> | ||
<!-- disable Warning SA1649: File name should match first type --> | ||
<Rule Id="SA1649" Action="Info" /> | ||
</Rules> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Disabling these rules for now, I will remove these ruleset entries one-by one in future PRs.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry this took so long, I wasn't watching this repo
No problem, this isn't something I care about merging quickly ;) All done with the first few changes you suggested. |
This includes a first pass at integrating StyleCop, addressing many of the outstanding issues.
I am splitting this into multiple PRs to make code review more manageable. For example, in the next PR I will probably tackle all the instances of multiple classes per file, which would produce a fairly unreadable diff if it was combined with this PR. For now, the unaddressed StyleCop issues have been disabled in the .ruleset file.