Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
64 lines (43 sloc) 2.85 KB
Root.Formatting.Spacing.BlankLine.BlankLineAfterDeclaration Parent Index
Sibling aspects BlankLineAfterClass BlankLineAfterProcedure NewlineAtEOF

BlankLineAfterDeclaration

Those found after declarations.

Tastes

Taste Meaning Values
blank_lines_after_declarations Represents the number of blank lines after declarations 0, 1, 2

* bold denotes default value

Subaspects

This aspect does not have any sub aspects.

Example

#include <stdio.h>

int main ()
{
  int a;
  float b;

  scanf("%d%f", &a, &b);
  printf("a = %d and b = %f", a, b);
  return 0;
}

Importance

Having a specific and reasonable number of blank lines after every block of declarations improves on the readability of the code.

How to fix this

BlankLintAfterDeclaration issues can be fixed specifying (and of course using) a reasonable number of blank lines to use after block declaration.