DotNetAnalyzers / StyleCopAnalyzers

An implementation of StyleCop rules using the .NET Compiler Platform
MIT License
2.62k stars 506 forks source link

Analyzers for BOM & consistent line endings? #2128

Open d-kr opened 8 years ago

d-kr commented 8 years ago

I regularly encounter two problem when developing cross platform:

I have not found analyzers for these things. Can & Should they be implemented as analyzers?

vweijsters commented 8 years ago

They can be implemented as analyzers, it would not even be too hard. It would be appreciated if you could write up separate issues detailing each of the proposals. For inspiration you can look at all issues marked with the new rule tag.

sharwell commented 8 years ago

Note that SA1412 is available for byte order mark (BOM) checking.

otac0n commented 8 years ago

I support a consistent line endings rule. I was about to propose it myself, even.