struct Ameba::Rule::Layout::TrailingBlankLines

Overview

A rule that disallows trailing blank lines at the end of the source file.

YAML configuration example:

Layout/TrailingBlankLines:
  Enabled: true

Defined in:

ameba/rule/layout/trailing_blank_lines.cr

Constant Summary

MSG = "Blank lines detected at the end of the file"

Constructors

Instance Method Summary

Instance methods inherited from struct Ameba::Rule::Base

==(other) ==, catch(source : Source) catch, excluded?(source) excluded?, group group, hash hash, initialize initialize, name name, special? special?, test(source : Source, node : Crystal::ASTNode, *opts)
test(source : Source)
test

Constructor methods inherited from struct Ameba::Rule::Base

new new

Class methods inherited from struct Ameba::Rule::Base

parsed_doc parsed_doc

Constructor Detail

def self.new(config = nil) #

A rule that disallows trailing blank lines at the end of the source file.

YAML configuration example:

Layout/TrailingBlankLines:
  Enabled: true

[View source]

Instance Method Detail

def test(source) #

[View source]