Open Sidebar
Close Sidebar
CrystalDoc.info
Source code
Shards.info
ameba
v1.6.4
Ameba
AST
Argument
Assignment
BaseVisitor
Branch
Branchable
CountingVisitor
FlowExpression
FlowExpressionVisitor
InstanceVariable
NodeVisitor
Category
RedundantControlExpressionVisitor
Reference
Scope
ScopeVisitor
TopLevelNodesVisitor
TypeDecVariable
Util
Variable
Config
Ext
Location
Formatter
BaseFormatter
DisabledFormatter
DotFormatter
ExplainFormatter
FlycheckFormatter
JSONFormatter
TODOFormatter
Util
GlobUtils
InlineComments
Action
Issue
Status
Presenter
BasePresenter
RuleCollectionPresenter
RulePresenter
Reportable
Rule
Base
Documentation
Documentation
DocumentationAdmonition
Layout
LineLength
TrailingBlankLines
TrailingWhitespace
Lint
AmbiguousAssignment
BadDirective
ComparisonToBoolean
DebugCalls
DebuggerStatement
DuplicatedRequire
EmptyEnsure
EmptyExpression
EmptyLoop
Formatting
HashDuplicatedKey
LiteralAssignmentsInExpressions
LiteralInCondition
LiteralInInterpolation
LiteralsComparison
MissingBlockArgument
NotNil
NotNilAfterNoBang
PercentArrays
RandZero
RedundantStringCoercion
RedundantWithIndex
RedundantWithObject
ShadowedArgument
ShadowedException
ShadowingOuterLocalVar
SharedVarInFiber
SpecFilename
SpecFocus
Syntax
Typos
Typo
UnneededDisableDirective
UnreachableCode
UnusedArgument
UnusedBlockArgument
UselessAssign
UselessConditionInWhen
Metrics
CyclomaticComplexity
Naming
AccessorMethodName
AsciiIdentifiers
BinaryOperatorParameterName
BlockParameterName
ConstantNames
Filename
MethodNames
PredicateName
QueryBoolMethods
RescuedExceptionsVariableName
TypeNames
VariableNames
Performance
AnyAfterFilter
AnyInsteadOfEmpty
Base
ChainedCallWithNoBang
CompactAfterMap
ExcessiveAllocations
FirstLastAfterFilter
FlattenAfterMap
MapInsteadOfBlock
MinMaxAfterMap
SizeAfterFilter
Style
GuardClause
IsAFilter
IsANil
LargeNumbers
NegatedConditionsInUnless
ParenthesesAroundCondition
RedundantBegin
RedundantNext
RedundantReturn
UnlessElse
VerboseBlock
WhileTrue
Runner
InfiniteCorrectionLoopError
Severity
SeverityYamlConverter
Source
Corrector
Rewriter
Spec
AnnotatedSource
BeValid
BeValidExpectation
ExpectIssue
Util
Tokenizer
Generated using Crystal 1.14.0
2024-11-26 11:33:16 UTC
module
Ameba::
Spec::
Util
Direct including types
Ameba::Source
Ameba::Spec::ExpectIssue
Defined in:
ameba/spec/util.cr
Instance Method Summary
#normalize_code
(code, separator =
'\n'
)
Instance Method Detail
def
normalize_code
(code, separator =
'\n'
)
#
[
View source
]