INTL0001 when using records #231
Labels
analyzer
Items here affect the analyzers
C# coding guidelines
Content related to the C# coding guidelines
proposal
Items flagged with this are up for discussion to be included in the IntelliTect coding standards
With the introduction of positional records it has become more valuable to apply attributes inline. This is especially true when dealing with serialization.
Consider the following which triggers INTL0001 (Properties must be on their own line)
The work around is to simply do as the analyzer suggests and put it on its own line:
However, I would posit that this is less readable that the original.
We should revisit the attribute guidelines with these new use-cases in mind.
The text was updated successfully, but these errors were encountered: