This is an automated email from the ASF dual-hosted git repository. joshtynjala pushed a change to branch develop in repository https://gitbox.apache.org/repos/asf/royale-compiler.git
from f04e9788b linter: more tests new 861d8098e linter: null reference checks new f8d280353 NodeBase: avoid null reference exceptions when getting file scope or workspace new 5b4b3bbdf FunctionNode: avoid null reference exception if workspace is null for package level function new fd6ab58cc linter: tests for rest of rules new b5307405b formatter: tests shouldn't use deprecated APIs new 2e643d2c8 formatter: a few more tests The 6 revisions listed above as "new" are entirely new to this repository and will be described in separate emails. The revisions listed as "add" were already present in the repository and have only been added to this reference. Summary of changes: .../compiler/internal/tree/as/FunctionNode.java | 10 +- .../royale/compiler/internal/tree/as/NodeBase.java | 9 +- .../royale/formatter/BaseFormatterTests.java | 1 - .../royale/formatter/TestArithmeticOperators.java | 90 ++++-- .../apache/royale/formatter/TestArrayLiteral.java | 81 +++-- .../apache/royale/formatter/TestAsDocComment.java | 88 +++--- .../formatter/TestAutomaticSemicolonInsertion.java | 9 +- .../royale/formatter/TestBitwiseOperators.java | 117 +++++--- .../royale/formatter/TestBreakStatement.java | 55 ++-- .../royale/formatter/TestClassDeclaration.java | 110 +++---- .../royale/formatter/TestComparisonOperators.java | 73 +++-- .../royale/formatter/TestConstDeclaration.java | 33 ++- .../royale/formatter/TestContinueStatement.java | 56 ++-- .../royale/formatter/TestDecrementOperator.java | 22 +- .../TestDefaultXMLNamespaceDirective.java | 11 +- .../royale/formatter/TestDeleteOperator.java | 11 +- .../royale/formatter/TestDoWhileStatement.java | 154 +++++----- .../royale/formatter/TestElseIfStatement.java | 176 ++++++----- .../apache/royale/formatter/TestElseStatement.java | 187 ++++++------ .../royale/formatter/TestFieldDeclaration.java | 77 ++--- .../royale/formatter/TestForEachStatement.java | 143 +++++---- .../royale/formatter/TestForInStatement.java | 143 +++++---- .../apache/royale/formatter/TestForStatement.java | 154 +++++----- .../apache/royale/formatter/TestFormatterOff.java | 30 +- .../royale/formatter/TestFunctionDeclaration.java | 154 +++++----- .../apache/royale/formatter/TestIdentifier.java | 126 +++++--- .../apache/royale/formatter/TestIfStatement.java | 198 +++++++------ .../royale/formatter/TestImportDirective.java | 31 +- .../royale/formatter/TestIncludeDirective.java | 11 +- .../royale/formatter/TestIncrementOperator.java | 22 +- .../royale/formatter/TestInterfaceDeclaration.java | 110 +++---- .../royale/formatter/TestLogicalOperators.java | 45 ++- .../apache/royale/formatter/TestMXMLMetadata.java | 35 ++- .../apache/royale/formatter/TestMXMLScript.java | 21 +- .../org/apache/royale/formatter/TestMXMLTag.java | 103 ++++--- .../org/apache/royale/formatter/TestMetadata.java | 110 +++---- .../royale/formatter/TestMethodDeclaration.java | 57 ++-- .../formatter/TestMiscellaneousOperators.java | 14 +- .../royale/formatter/TestMultiLineComment.java | 57 ++-- .../apache/royale/formatter/TestNewStatement.java | 44 +-- .../apache/royale/formatter/TestNumberLiteral.java | 129 +++++++- .../apache/royale/formatter/TestObjectLiteral.java | 63 ++-- .../royale/formatter/TestPackageDeclaration.java | 66 +++-- .../royale/formatter/TestPreserveNewLines.java | 27 +- .../org/apache/royale/formatter/TestRegExp.java | 13 +- .../royale/formatter/TestReturnStatement.java | 56 ++-- .../royale/formatter/TestSingleLineComment.java | 106 ++++--- .../apache/royale/formatter/TestStringLiteral.java | 66 +++-- .../royale/formatter/TestSwitchStatement.java | 330 +++++++++++---------- .../royale/formatter/TestTernaryStatement.java | 33 ++- .../royale/formatter/TestThrowStatement.java | 61 ++-- .../royale/formatter/TestTryCatchStatement.java | 77 ++--- .../formatter/TestUseNamespaceDirective.java | 11 +- .../royale/formatter/TestVariableDeclaration.java | 66 +++-- .../royale/formatter/TestWhileStatement.java | 143 +++++---- .../java/org/apache/royale/formatter/TestXML.java | 27 +- .../java/org/apache/royale/linter/MXMLLinter.java | 23 +- ...ssRule.java => TestMXMLEmptyAttributeRule.java} | 22 +- ...qualityRule.java => TestMaxBlockDepthRule.java} | 39 ++- ...qualityRule.java => TestMaxParametersRule.java} | 39 ++- ...tionNameRule.java => TestMissingASDocRule.java} | 155 ++++++---- ...e.java => TestMissingConstructorSuperRule.java} | 16 +- ...NameRule.java => TestMissingNamespaceRule.java} | 110 ++++--- ...WithRule.java => TestMissingSemicolonRule.java} | 14 +- ...lidTypeofRule.java => TestMissingTypeRule.java} | 67 +++-- 65 files changed, 2749 insertions(+), 1988 deletions(-) copy linter/src/test/java/org/apache/royale/linter/rules/{TestNoDynamicClassRule.java => TestMXMLEmptyAttributeRule.java} (75%) copy linter/src/test/java/org/apache/royale/linter/rules/{TestStrictEqualityRule.java => TestMaxBlockDepthRule.java} (71%) copy linter/src/test/java/org/apache/royale/linter/rules/{TestStrictEqualityRule.java => TestMaxParametersRule.java} (70%) copy linter/src/test/java/org/apache/royale/linter/rules/{TestFunctionNameRule.java => TestMissingASDocRule.java} (53%) copy linter/src/test/java/org/apache/royale/linter/rules/{TestNoDynamicClassRule.java => TestMissingConstructorSuperRule.java} (77%) copy linter/src/test/java/org/apache/royale/linter/rules/{TestPackageNameRule.java => TestMissingNamespaceRule.java} (53%) copy linter/src/test/java/org/apache/royale/linter/rules/{TestNoWithRule.java => TestMissingSemicolonRule.java} (86%) copy linter/src/test/java/org/apache/royale/linter/rules/{TestValidTypeofRule.java => TestMissingTypeRule.java} (66%)