Releases: HaxeCheckstyle/haxe-formatter
Releases · HaxeCheckstyle/haxe-formatter
haxe-formatter v1.5.0
- Added
wrapping.opAddSubChain
(#370) - Added
wrapping.metadataCallParameter
(#370) - Added
emptyLines.macroClassEmptyLines
, fixes #377 (#383) - Added
emptyLines.lineCommentsBetweenTypes
andemptyLines.lineCommentsBetweenTypes
to separate line comments from types and functions (#387 + #389) - Added
whitespace.addLineCommentSpace
to ensure a space after//
(#388) - Fixed type parameter constraint with structure type, fixes #337 (#349)
- Fixed wrapping of OpBool chains with null (#349)
- Fixed line comments after typedefs, fixes #331 (#349)
- Fixed line comments after #end, fixes #344 (#349)
- Fixed comments before catch, fixes #339 (#349)
- Fixed ternary with object literal, fixes #330 (#349)
- Fixed optional function parameters in conditionals, fixes #345 (#349)
- Fixed whitespace for ternary and unary operators, fixes #348 (#349)
- Fixed if body starting with metadata, fixes #333 (#350)
- Fixed else body starting with POpen, fixes #329 (#350)
- Fixed missing space after conditional, fixes #327 + #335 (#350)
- Fixed braceless if body with conditionals, fixes #328 (#351)
- Fixed complex conditional typedef, fixes #336 (#351)
- Fixed parameter wrapping with multiline string, fixes #320 (#351)
- Fixed indentation of untyped assignment, fixes #326 (#352)
- Fixed indentation of anon function call, fixes #315 (#352)
- Fixed
keep
wrapping option to respect bothbeforeLast
andafterLast
wrapping location (#370) - Fixed abstract with comments, fixes #363, fixes #364 (#370)
- Fixed handling of
@:using
,@:import
and@:package
, fixes #378 (#379) - Fixed null pointer exception when handling incomplete metadata, fixes #380 (#381)
- Fixed left curly placement for anon types as return values, fixes #358, fixes #369 (#387)
- Fixed empty lines after metadata in macro classes, fixes #384 (#387)
- Fixed line ends after opadd chain as function body, fixes #376 (#387)
haxe-formatter v1.4.0
- Added haxe-test-adapter #286 + #287 + #289
- Added
wrapping.implementsExtends
#288 - Added
emptylines.afterFileHeaderComment
andemptylines.betweenMultilineComments
fixes #292 (#296) - Added wrapping location to allow wrapping before delimiting token, fixes #299 (#309)
- Fixed whitespace of type check in array comprehension, fixes #284 (#285)
- Fixed conditional modifier handling, fixes #291 (#293)
- Fixed whitespace after left curly in anon type hints #297
- Fixed anon types handling when
leftCurly
is set toboth
, fixes #301 (#309) - Fixed same line handling of
expressionIf
, fixes #304 (#309) - Fixed indentation of object literals, fixes #305 (#309)
- Fixed same line handling of cases with object pattern, fixes #306 (#309)
- Fixed empty line after metadata with function, fixes #307 (#309)
- Fixed missing space before
(
, fixes #308 (#309) - Fixed detection of file header vs. type doc comments, fixes #292 (#312)
- Fixed detection of file header vs. type doc comments, fixes #316 (#318)
- Fixed multiline comments after typedefs without semicolon, fixes #322 (#323)
- Fixed empty line between conditional imports and types, fixes #322 (#323)
- Fixed
lineEnds.leftCurly
both for object literals, fixes #319 (#325) - Changed default rules for
wrapping.opBoolChain
, fixes #313 (#324) - Refactored to add some null safety (incomplete) #309
- Removed stacktrace from output with invalid
hxformat.json
files, fixes #300 (#309)
haxe-formatter v1.3.0
- Breaking Change replaced
whitespace.openingParenPolicy
andwhitespace.closingParenPolicy
settings withwhitespace.parenConfig
#282 - Breaking Change replaced
whitespace.openingBracePolicy
whitespace.closingBracePolicy
,whitespace.objectOpeningBracePolicy
andwhitespace.objectClosingBracePolicy
settings withwhitespace.bracesConfig
#282 - Added check to prevent tokentree parser issues from deleting code #281
- Fixed properties in anon types #276
- Fixed empty lines between single line types with meta #277
- Refactored whitespace handling (space + newline) #278
- Refactored coverage report generation #279
- Removed superfluous wrapping settings #280
haxe-formatter v1.2.0
- Breakin Change replaced
emptyLines.beforeUsing
andemptyLines.afterImportsUsing
settings withemptyLines.importAndUsing
#267 - Added
wrapping.opBoolChain
for wrapping||
and&&
chains #248 - Added line count statistic for CLI #249
- Added
alignedDecrease
option forindentation.conditionalPolicy
, fixes #252 (#253) - Added
indentation.indentObjectLiteral
to control indent of object literals, fixes #258 (#266) - Added
sameLine.returnBody
option, fixes #257 (#266) - Added
emptyLines.importAndUsing
for more control over empty lines between imports #267 + #268 - Added
emptyLines.beforePackage
to add empty lines before package declaration #267 - Added
emptyLines.betweenSingleLineTypes
for empty lines between single line types, fixes #255 (#269) - Fixed wrapping of function calls, fixes #169 (#248)
- Fixed conditional handling in multi-line object literals, fixes #182 and #211 (#248)
- Fixed indentation and wrapping of OpBool chain, fixes #187 (#248)
- Fixed sameline options for
sameLine.caseBody
andsameLine.expressionCase
#250 - Fixed conditional indentation with
indentation.conditionalPolicy
set toalignedIncrease
#253 - Fixed truncation of interface conditionals extends, fixes #259 (#260)
- Fixed multiline string interpolation, fixes #261, fixes #203 (#264 + #265)
- Fixed send error messages to stderr, fixes #262 (#265)
- Fixed metadata whitespace, fixes #263 (#265)
- Fixed indentation of wrapped anon function, fixes #256 (#266)
- Fixed empty lines of doc comments inside conditionals, fixes #188 (#270)
- Fixed
sameLine.expression*
handling of Binop and Arrow, fixes #271 + #272 (#274) - Fixed type hints for arrow function parameters in calls, fixes #273 (#274)
- Changed
sameLine.expressionCase
tokeep
#250 - Refactored call and parameter wrapping #247
- Refactored method chain wrapping #247
haxe-formatter v1.1.2
haxe-formatter v1.1.1
- Added support for key-value iterators, fixes #232 (#233)
- Added
wrapping.anonFunctionSignature
- Fixed version number reported on CLI #233
- Fixed handling of macro blocks, fixes #215 #233
- Fixed unstable formatting after typedefs without semicolon, fixes #216 #233
- Fixed CLI version checks for existence of
run.js
before invoking node #234 - Fixed
keep
option ofsameLine.ifElse
, fixes #235 (#236) - Fixed wrapping in middle of function call, fixes #180 (#239)
- Fixed wrapping function signature with long type hint, fixes #189 (#239)
- Fixed indentation with comment line, fixes #237 (#239)
- Fixed wrapping option keep, fixes #238 (#239)
- Fixed handling of metadata parameter, fixes #241 (#242)
- Changed default rules for function signature, see #232 (#233)
- Refactored marker classes to use a common base class #239
- Refactored whitespace policy add/remove handling #243
- Refactored indentation logic #243
- Removed whitespace change around comments during line end marking #243
haxe-formatter v1.1.0
- Breakin Change added a default wrap type for wrapping rules #230
- Added
Keep
to SameLinePolicy #226 - Added
emptyLines.classEmptyLines.endType
to output empty lines before end of classes #227 - Added
emptyLines.abstractEmptyLines.endType
to output empty lines before end of abstracts #227 - Added
emptyLines.enumAbstractEmptyLines.endType
to output empty lines before end of enum abstracts #227 - Added
emptyLines.externClassEmptyLines.endType
to output empty lines before end of extern classes #227 - Added
emptyLines.interfaceEmptyLines.endType
to output empty lines before end of interfaces #227 - Added
emptyLines.enumEmptyLines.endType
to output empty lines before end of enums #227 - Added
emptyLines.typedefEmptyLines.endType
to output empty lines before end of typedefs #227 - Added
indentation.trailingWhitespace
to output trailing whitespace in empty lines #227 - Added
--default-config
CLI option to generate a default "hxformat.json" #227 - Added
wrapping.methodChaining
to handle wrapping of method chains #229 - Changed
whitespace.closingBracePolicy
toafter
#227 - Changed
whitespace.typeExtensionPolicy
toafter
#227 - Changed
whitespace.semicolonPolicy
toonlyAfter
#227 - Fixed indentation of else with object literal body, fixes #220 (#224)
- Fixed indentation of prefix unary, fixes #221 (#224)
- Fixed whitespace after macro reification, fixes #218 + #219 (#225)
- Fixed type check on numbers, fixes #217 (#225)
- Refactored Space and Newline handling of MarkWhitespace #227
haxe-formatter v1.0.0
- initial release