struct Ameba::Rule::Layout::TrailingWhitespace

Overview

A rule that disallows trailing whitespaces.

YAML configuration example:

Layout/TrailingWhitespace:
  Enabled: true

Defined in:

ameba/rule/layout/trailing_whitespace.cr

Constant Summary

MSG = "Trailing whitespace detected"

Constructors

Instance Method Summary

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

catch(source : Source) catch, excluded?(source) excluded?, group group, 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 whitespaces.

YAML configuration example:

Layout/TrailingWhitespace:
  Enabled: true

[View source]

Instance Method Detail

def test(source) #

[View source]