belav / csharpier

CSharpier is an opinionated code formatter for c#.
https://csharpier.com
MIT License
1.43k stars 99 forks source link

Inconsistent empty line handling before the csharpier-ignore comment #1116

Open Qtax opened 10 months ago

Qtax commented 10 months ago

Input:

var foo = 1;

var bar = 2;

// csharpier-ignore
var baz = 3;

Output: Inconsistent empty line handling before the // csharpier-ignore comment

var foo = 1;

var bar = 2;
// csharpier-ignore
var baz = 3;

Expected behavior: Allow a blank line before the // csharpier-ignore comment like with other comments and statements

var foo = 1;

var bar = 2;

// csharpier-ignore
var baz = 3;
jamesfoster-excelpoint commented 2 months ago

:+1: