Check out the Issue Explorer
Looking to fund some work? You can submit a new Funded Issue here.
Text editors use newline characters to signify line breaks in code. In Darwin & Unix, the
newline character is `\n` whereas in windows, it's `\r\n` . When multiple devs are writing code on different platforms, the mix of newline characters makes things more complicated. Solium should enforce a consistent newline character across the codebase.
Keep in mind that a simple string search is not good enough to find newline characters since developers will often write newline chars by hand inside comments or strings - these shouldn’t be detected as line breaks in the code.
The rule should enforce enforce unix line ending by default, but should make this setting configurable
through soliumrc like below:
The rule should only take 1 configuration option - a string whose value could be either “unix” or “windows”.
This rule should also supply the `fix()` functionality that will replace all violations with linebreak chars as configured.
Default severity of this rule is error .
Please also note the contribution guidelines found here when submitting your PR https://github.com/duaraghav8/Solium/issues/211