Releases: HaxeCheckstyle/haxe-formatter
Releases · HaxeCheckstyle/haxe-formatter
haxe-formatter v1.9.1
haxe-formatter v1.9.0
- Added
fixedZeroIncrease
andfixedZeroIncreaseBlocks
policies toindentation.conditionalPolicy
(#514) - Added
alignedNestedIncrease
policies toindentation.conditionalPolicy
, fixes #519 (#520) - Added range to format API (#524)
- Fixed missing space when returning an arrow function, fixes #513 (#514)
- Fixed conditionals in return types, fixes #446 (#515)
- Fixed null pointer issues in MarkWhitespace (#521)
- Fixed path handling in Hashlink 1.1 (#521)
- Fixed postfix exclamation mark, fixes #516 (#527)
haxe-formatter v1.8.1
- Fixed debug info in command line version
- Fixed total runtime calculation
haxe-formatter v1.8.0
- Added
sameLine.returnBodySingleLine
, fixes #303 (#483) - Added
emptyLines.*.existingBetweenFields
, fixes #455 (#484) - Added printing config filename in verbose mode, fixes #460 (#493)
- Added
indentation.indentCaseLabels
, fixes #478 (#502) - Added
sameLine.untypedBody
, fixes #362 (#506) - Fixed same line handling of if-else with try catch body, fixes #360 (#483)
- Fixed line end handling of structure type as type parameter, fixes #475 (#486)
- Fixed wrapping function parameters with comments, fixes #472 (#487)
- Fixed line break right before, fixes #311 (#456)
- Fixed wrapping of array comprehension, fixes #357 + #366 (#491)
- Fixed type hint detection for enums and overload metas, fixes #488 (#491)
- Fixed comments in OpAdd chains and case, fixes #396 + #477 (#492)
- Fixed wrapping of call, fixes #386 (#492)
- Fixed nested method chain handling, fixes #496 (#497)
- Fixed nested inline array comprehension, fixes #498 (#501)
- Fixed incorrect comment closing, fixes #500 (#501)
- Fixed imports with conditionals, fixes #504 (#505)
- Fixed line break in type parameters, fixes #494 (#507)
- Changed
sameLine.returnBody
to only apply to multiline or loop/switch/try/if expressions, fixes #303 (#483)
haxe-formatter v1.7.1
haxe-formatter v1.7.0
- Added
wrapping.multiVar
, fixes #355, fixes #430 (#422 + #434) - Added
emptylines.afterFieldsWithDocComments
, fixes #385, fixes #432 (#425 + #434) - Added
lineEnds.anonTypeCurly
,lineEnds.blockCurly
,lineEnds.objectLiteralCurly
,lineEnds.typedefCurly
, fixes #346 (#427 + #434 + #456) - Added
wrapping.arrayMatrixWrap
for array matrix wrapping with column alignment, fixes #433 (#442) - Added Java compilation and tests on TravisCI (#456)
- Added browser JS compilation, fixes #449 (#456)
- Added cache for close tokens
]
,)
and}
(#461) - Added
indentation.indentComplexValueExpressions
, fixes #468 (#469) - Fixed missing empty lines in classes with conditionals, fixes #419 (#422)
- Fixed wrapping of concatenated strings (#422
- Fixed ECheckType detection with cast, fixes #374 (#422)
- Fixed same line handling of cases with object pattern, fixes #306 (#422)
- Fixed ETypeCheck with conditional, fixes #395 (#422)
- Fixed wrong OpBool indentation in nested switch/case, fixes #423 (#424)
- Fixed
afterFieldsWithDocComments
with conditionals, fixes #428 - Fixed default wrapping stopping after first line break (#436)
- Fixed wrapping in field access, fixes #314 (#442)
- Fixed object literal detection when using expression level entry point, fixes #450 (#451)
- Fixed null check for indentation on expression level entry points (#453)
- Fixed length check in removeBOM (#453)
- Fixed semicolon after
#end
, fixes #429 (#456) - Fixed comments in array and matrix wrapping, fixes #443 + #444 (#456)
- Fixed eof handling in stdin mode when running on Windows, fixes #418 (#457)
- Fixed indentation of if / else in complex var assignments, fixes #334 (#458)
- Fixed ECheckType in if body, fixes #354 (#459)
- Fixed whitespace between IntInterval and POpen (#462)
- Fixed incorrect function header wrapping, fixes #439 (#463)
- Fixed incorrect wrapping of multiline strings, fixes #438 (#463)
- Fixed indentation of if in value place, fixes #464 #465 (#467)
- Changed default value for
excludes
to includenode_modules
(#420) - Changed debug code to produce less unneccessary code in non debug mode (#417)
- Refactored wrapping to use an ordered list (#436)
- Refactored array wrapping (#442)
- Updated testcases for #305 (#422)
- Removed compiletime library, fixes #390 (#467)
haxe-formatter v1.6.0
- Added
--stdin
CLI switch to allow reading code from stdin and printing formatted code to stdout, fixes #411 (#412 + #413) - Fixed specifiying an entry point for tokentree, fixes #393 (#403 + #404)
- Fixed whitespace for conditionals in function arguments with question mark, fixes #397 (#405)
- Fixed unary OpSub in arrays (#405)
- Fixed whitespace for else body with ECheckType, fixes #361 (#405)
- Fixed indentation after block breaking conditional, fixes #290 (#406 + #408)
- Fixed sameline format of anon types with wrapping set to keep, fixes #301 (#412)
- Changed default value for
excludes
to include.git
folders (#399) - Changed using comma as an indicator for simple wrapping (#403)
- Changed formatter api calls, fixes #393 (#403)
- Changed command line help text, fixes #400 (#402)
- Replaced custom schema generator with json2objects (#398)
haxe-formatter v1.5.1
- Fixed vanishing string literals at end of file (#391)
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)