prettier-plugin-solidity 1.0.0-dev.22 → 1.0.0-dev.24
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +28 -61
- package/coverage/clover.xml +1165 -0
- package/coverage/coverage-final.json +98 -0
- package/coverage/lcov-report/base.css +224 -0
- package/coverage/lcov-report/block-navigation.js +87 -0
- package/coverage/lcov-report/favicon.png +0 -0
- package/coverage/lcov-report/index.html +176 -0
- package/coverage/lcov-report/prettify.css +1 -0
- package/coverage/lcov-report/prettify.js +2 -0
- package/coverage/lcov-report/sort-arrow-sprite.png +0 -0
- package/coverage/lcov-report/sorter.js +196 -0
- package/coverage/lcov-report/src/binary-operator-printers/arithmetic.js.html +244 -0
- package/coverage/lcov-report/src/binary-operator-printers/assignment.js.html +175 -0
- package/coverage/lcov-report/src/binary-operator-printers/bit.js.html +103 -0
- package/coverage/lcov-report/src/binary-operator-printers/comparison.js.html +199 -0
- package/coverage/lcov-report/src/binary-operator-printers/exponentiation.js.html +163 -0
- package/coverage/lcov-report/src/binary-operator-printers/index.html +221 -0
- package/coverage/lcov-report/src/binary-operator-printers/index.js.html +124 -0
- package/coverage/lcov-report/src/binary-operator-printers/logical.js.html +208 -0
- package/coverage/lcov-report/src/binary-operator-printers/shift.js.html +103 -0
- package/coverage/lcov-report/src/clean.js.html +109 -0
- package/coverage/lcov-report/src/comments/handler.js.html +373 -0
- package/coverage/lcov-report/src/comments/handlers/handleContractDefinitionComments.js.html +265 -0
- package/coverage/lcov-report/src/comments/handlers/handleModifierInvocationComments.js.html +292 -0
- package/coverage/lcov-report/src/comments/handlers/index.html +146 -0
- package/coverage/lcov-report/src/comments/handlers/index.js.html +103 -0
- package/coverage/lcov-report/src/comments/ignore.js.html +184 -0
- package/coverage/lcov-report/src/comments/index.html +161 -0
- package/coverage/lcov-report/src/comments/index.js.html +97 -0
- package/coverage/lcov-report/src/comments/printer.js.html +277 -0
- package/coverage/lcov-report/src/index.html +191 -0
- package/coverage/lcov-report/src/index.js.html +268 -0
- package/coverage/lcov-report/src/loc.js.html +133 -0
- package/coverage/lcov-report/src/nodes/ArrayTypeName.js.html +115 -0
- package/coverage/lcov-report/src/nodes/AssemblyAssignment.js.html +133 -0
- package/coverage/lcov-report/src/nodes/AssemblyBlock.js.html +160 -0
- package/coverage/lcov-report/src/nodes/AssemblyCall.js.html +133 -0
- package/coverage/lcov-report/src/nodes/AssemblyCase.js.html +112 -0
- package/coverage/lcov-report/src/nodes/AssemblyFor.js.html +139 -0
- package/coverage/lcov-report/src/nodes/AssemblyFunctionDefinition.js.html +184 -0
- package/coverage/lcov-report/src/nodes/AssemblyIf.js.html +115 -0
- package/coverage/lcov-report/src/nodes/AssemblyLocalDefinition.js.html +160 -0
- package/coverage/lcov-report/src/nodes/AssemblyMemberAccess.js.html +112 -0
- package/coverage/lcov-report/src/nodes/AssemblySwitch.js.html +133 -0
- package/coverage/lcov-report/src/nodes/BinaryOperation.js.html +127 -0
- package/coverage/lcov-report/src/nodes/Block.js.html +166 -0
- package/coverage/lcov-report/src/nodes/BooleanLiteral.js.html +100 -0
- package/coverage/lcov-report/src/nodes/Break.js.html +100 -0
- package/coverage/lcov-report/src/nodes/BreakStatement.js.html +100 -0
- package/coverage/lcov-report/src/nodes/CatchClause.js.html +148 -0
- package/coverage/lcov-report/src/nodes/Conditional.js.html +151 -0
- package/coverage/lcov-report/src/nodes/Continue.js.html +100 -0
- package/coverage/lcov-report/src/nodes/ContinueStatement.js.html +100 -0
- package/coverage/lcov-report/src/nodes/ContractDefinition.js.html +226 -0
- package/coverage/lcov-report/src/nodes/CustomErrorDefinition.js.html +139 -0
- package/coverage/lcov-report/src/nodes/DecimalNumber.js.html +100 -0
- package/coverage/lcov-report/src/nodes/DoWhileStatement.js.html +157 -0
- package/coverage/lcov-report/src/nodes/ElementaryTypeName.js.html +115 -0
- package/coverage/lcov-report/src/nodes/EmitStatement.js.html +100 -0
- package/coverage/lcov-report/src/nodes/EnumDefinition.js.html +151 -0
- package/coverage/lcov-report/src/nodes/EnumValue.js.html +100 -0
- package/coverage/lcov-report/src/nodes/EventDefinition.js.html +145 -0
- package/coverage/lcov-report/src/nodes/ExpressionStatement.js.html +181 -0
- package/coverage/lcov-report/src/nodes/FileLevelConstant.js.html +121 -0
- package/coverage/lcov-report/src/nodes/ForStatement.js.html +223 -0
- package/coverage/lcov-report/src/nodes/FunctionCall.js.html +280 -0
- package/coverage/lcov-report/src/nodes/FunctionDefinition.js.html +457 -0
- package/coverage/lcov-report/src/nodes/FunctionTypeName.js.html +217 -0
- package/coverage/lcov-report/src/nodes/HexLiteral.js.html +133 -0
- package/coverage/lcov-report/src/nodes/HexNumber.js.html +100 -0
- package/coverage/lcov-report/src/nodes/Identifier.js.html +100 -0
- package/coverage/lcov-report/src/nodes/IfStatement.js.html +265 -0
- package/coverage/lcov-report/src/nodes/ImportDirective.js.html +247 -0
- package/coverage/lcov-report/src/nodes/IndexAccess.js.html +199 -0
- package/coverage/lcov-report/src/nodes/IndexRangeAccess.js.html +121 -0
- package/coverage/lcov-report/src/nodes/InheritanceSpecifier.js.html +130 -0
- package/coverage/lcov-report/src/nodes/InlineAssemblyStatement.js.html +148 -0
- package/coverage/lcov-report/src/nodes/LabelDefinition.js.html +118 -0
- package/coverage/lcov-report/src/nodes/Mapping.js.html +118 -0
- package/coverage/lcov-report/src/nodes/MemberAccess.js.html +466 -0
- package/coverage/lcov-report/src/nodes/ModifierDefinition.js.html +259 -0
- package/coverage/lcov-report/src/nodes/ModifierInvocation.js.html +190 -0
- package/coverage/lcov-report/src/nodes/NameValueExpression.js.html +115 -0
- package/coverage/lcov-report/src/nodes/NameValueList.js.html +148 -0
- package/coverage/lcov-report/src/nodes/NewExpression.js.html +100 -0
- package/coverage/lcov-report/src/nodes/NumberLiteral.js.html +109 -0
- package/coverage/lcov-report/src/nodes/PragmaDirective.js.html +100 -0
- package/coverage/lcov-report/src/nodes/ReturnStatement.js.html +157 -0
- package/coverage/lcov-report/src/nodes/RevertStatement.js.html +100 -0
- package/coverage/lcov-report/src/nodes/SourceUnit.js.html +133 -0
- package/coverage/lcov-report/src/nodes/StateVariableDeclaration.js.html +166 -0
- package/coverage/lcov-report/src/nodes/StringLiteral.js.html +148 -0
- package/coverage/lcov-report/src/nodes/StructDefinition.js.html +154 -0
- package/coverage/lcov-report/src/nodes/ThrowStatement.js.html +100 -0
- package/coverage/lcov-report/src/nodes/TryStatement.js.html +214 -0
- package/coverage/lcov-report/src/nodes/TupleExpression.js.html +160 -0
- package/coverage/lcov-report/src/nodes/TypeDefinition.js.html +100 -0
- package/coverage/lcov-report/src/nodes/UnaryOperation.js.html +121 -0
- package/coverage/lcov-report/src/nodes/UncheckedStatement.js.html +118 -0
- package/coverage/lcov-report/src/nodes/UserDefinedTypeName.js.html +100 -0
- package/coverage/lcov-report/src/nodes/UsingForDeclaration.js.html +166 -0
- package/coverage/lcov-report/src/nodes/VariableDeclaration.js.html +253 -0
- package/coverage/lcov-report/src/nodes/VariableDeclarationStatement.js.html +217 -0
- package/coverage/lcov-report/src/nodes/WhileStatement.js.html +154 -0
- package/coverage/lcov-report/src/nodes/index.html +1241 -0
- package/coverage/lcov-report/src/nodes/index.js.html +316 -0
- package/coverage/lcov-report/src/nodes/print-comments.js.html +166 -0
- package/coverage/lcov-report/src/nodes/print-preserving-empty-lines.js.html +244 -0
- package/coverage/lcov-report/src/nodes/print-separated-item.js.html +148 -0
- package/coverage/lcov-report/src/nodes/print-separated-list.js.html +154 -0
- package/coverage/lcov-report/src/options.js.html +238 -0
- package/coverage/lcov-report/src/parser.js.html +643 -0
- package/coverage/lcov-report/src/printer.js.html +214 -0
- package/coverage/lcov.info +2658 -0
- package/package.json +5 -5
- package/src/binary-operator-printers/index.js +1 -1
- package/src/comments/handler.js +15 -12
- package/src/comments/handlers/{ContractDefinition.js → handleContractDefinitionComments.js} +3 -3
- package/src/comments/handlers/handleModifierInvocationComments.js +69 -0
- package/src/comments/handlers/index.js +6 -0
- package/src/comments/printer.js +3 -3
- package/src/nodes/AssemblyBlock.js +1 -1
- package/src/nodes/AssemblyFunctionDefinition.js +10 -12
- package/src/nodes/Continue.js +5 -0
- package/src/nodes/ContractDefinition.js +1 -1
- package/src/nodes/DoWhileStatement.js +3 -1
- package/src/nodes/FunctionCall.js +2 -2
- package/src/nodes/FunctionDefinition.js +4 -10
- package/src/nodes/IfStatement.js +1 -3
- package/src/nodes/IndexAccess.js +2 -2
- package/src/nodes/ModifierInvocation.js +16 -3
- package/src/nodes/TryStatement.js +4 -6
- package/src/nodes/VariableDeclarationStatement.js +2 -2
- package/src/nodes/WhileStatement.js +3 -1
- package/src/nodes/index.js +2 -1
- package/src/nodes/print-separated-item.js +10 -6
- package/src/nodes/print-separated-list.js +6 -5
- package/src/options.js +0 -20
- package/src/parser.js +0 -10
- package/.github/FUNDING.yml +0 -1
- package/.github/dependabot.yml +0 -23
- package/.github/workflows/CI.yml +0 -83
- package/assets/telegram-badge.svg +0 -29
- package/scripts/generateIndexes.js +0 -16
- package/scripts/makeData.js +0 -23
- package/tests/config/.prettierrc +0 -5
- package/tests/config/format-test.js +0 -458
- package/tests/config/require-prettier.js +0 -5
- package/tests/config/require-standalone.js +0 -25
- package/tests/config/setup.js +0 -7
- package/tests/config/utils/check-parsers.js +0 -207
- package/tests/config/utils/compile-contract.js +0 -36
- package/tests/config/utils/consistent-end-of-line.js +0 -13
- package/tests/config/utils/create-snapshot.js +0 -98
- package/tests/config/utils/stringify-options-for-title.js +0 -15
- package/tests/config/utils/visualize-end-of-line.js +0 -18
- package/tests/config/utils/visualize-range.js +0 -40
- package/tests/format/AddressPayable/AddressPayable.sol +0 -10
- package/tests/format/AddressPayable/__snapshots__/jsfmt.spec.js.snap +0 -37
- package/tests/format/AddressPayable/jsfmt.spec.js +0 -1
- package/tests/format/AllSolidityFeatures/AllSolidityFeatures.sol +0 -534
- package/tests/format/AllSolidityFeatures/__snapshots__/jsfmt.spec.js.snap +0 -1148
- package/tests/format/AllSolidityFeatures/jsfmt.spec.js +0 -1
- package/tests/format/Arrays/Arrays.sol +0 -17
- package/tests/format/Arrays/__snapshots__/jsfmt.spec.js.snap +0 -63
- package/tests/format/Arrays/jsfmt.spec.js +0 -1
- package/tests/format/Assembly/Assembly.sol +0 -187
- package/tests/format/Assembly/__snapshots__/jsfmt.spec.js.snap +0 -422
- package/tests/format/Assembly/jsfmt.spec.js +0 -1
- package/tests/format/BasicIterator/BasicIterator.sol +0 -44
- package/tests/format/BasicIterator/__snapshots__/jsfmt.spec.js.snap +0 -102
- package/tests/format/BasicIterator/jsfmt.spec.js +0 -1
- package/tests/format/BinaryOperators/BinaryOperators.sol +0 -186
- package/tests/format/BinaryOperators/Parentheses.sol +0 -132
- package/tests/format/BinaryOperators/__snapshots__/jsfmt.spec.js.snap +0 -952
- package/tests/format/BinaryOperators/jsfmt.spec.js +0 -1
- package/tests/format/BreakingChangesV0.7.4/BreakingChangesV0.7.4.sol +0 -9
- package/tests/format/BreakingChangesV0.7.4/__snapshots__/jsfmt.spec.js.snap +0 -198
- package/tests/format/BreakingChangesV0.7.4/jsfmt.spec.js +0 -14
- package/tests/format/BreakingChangesV0.8.0/BreakingChangesV0.8.0.sol +0 -43
- package/tests/format/BreakingChangesV0.8.0/__snapshots__/jsfmt.spec.js.snap +0 -815
- package/tests/format/BreakingChangesV0.8.0/jsfmt.spec.js +0 -26
- package/tests/format/Comments/Comments.sol +0 -116
- package/tests/format/Comments/__snapshots__/jsfmt.spec.js.snap +0 -270
- package/tests/format/Comments/jsfmt.spec.js +0 -1
- package/tests/format/Conditional/Conditional.sol +0 -26
- package/tests/format/Conditional/__snapshots__/jsfmt.spec.js.snap +0 -80
- package/tests/format/Conditional/jsfmt.spec.js +0 -1
- package/tests/format/Constructors/Constructors.sol +0 -8
- package/tests/format/Constructors/__snapshots__/jsfmt.spec.js.snap +0 -54
- package/tests/format/Constructors/jsfmt.spec.js +0 -1
- package/tests/format/ContractDefinitions/ContractDefinitions.sol +0 -2
- package/tests/format/ContractDefinitions/__snapshots__/jsfmt.spec.js.snap +0 -22
- package/tests/format/ContractDefinitions/jsfmt.spec.js +0 -1
- package/tests/format/CustomErrors/CustomErrors.sol +0 -20
- package/tests/format/CustomErrors/__snapshots__/jsfmt.spec.js.snap +0 -50
- package/tests/format/CustomErrors/jsfmt.spec.js +0 -1
- package/tests/format/EnumDefinitions/EnumDefinitions.sol +0 -4
- package/tests/format/EnumDefinitions/__snapshots__/jsfmt.spec.js.snap +0 -72
- package/tests/format/EnumDefinitions/jsfmt.spec.js +0 -2
- package/tests/format/Etc/Etc.sol +0 -48
- package/tests/format/Etc/__snapshots__/jsfmt.spec.js.snap +0 -134
- package/tests/format/Etc/jsfmt.spec.js +0 -1
- package/tests/format/ExplicitVariableTypes/ExplicitVariableTypes.sol +0 -36
- package/tests/format/ExplicitVariableTypes/__snapshots__/jsfmt.spec.js.snap +0 -258
- package/tests/format/ExplicitVariableTypes/jsfmt.spec.js +0 -9
- package/tests/format/ForStatements/ForStatements.sol +0 -43
- package/tests/format/ForStatements/__snapshots__/jsfmt.spec.js.snap +0 -108
- package/tests/format/ForStatements/jsfmt.spec.js +0 -1
- package/tests/format/FunctionCalls/FunctionCalls.sol +0 -40
- package/tests/format/FunctionCalls/__snapshots__/jsfmt.spec.js.snap +0 -310
- package/tests/format/FunctionCalls/jsfmt.spec.js +0 -2
- package/tests/format/FunctionDefinitions/FunctionDefinitions.sol +0 -169
- package/tests/format/FunctionDefinitions/__snapshots__/jsfmt.spec.js.snap +0 -875
- package/tests/format/FunctionDefinitions/jsfmt.spec.js +0 -1
- package/tests/format/HexLiteral/HexLiteral.sol +0 -7
- package/tests/format/HexLiteral/__snapshots__/jsfmt.spec.js.snap +0 -57
- package/tests/format/HexLiteral/jsfmt.spec.js +0 -8
- package/tests/format/IfStatements/IfStatements.sol +0 -112
- package/tests/format/IfStatements/__snapshots__/jsfmt.spec.js.snap +0 -534
- package/tests/format/IfStatements/jsfmt.spec.js +0 -1
- package/tests/format/Immutable/Immutable.sol +0 -20
- package/tests/format/Immutable/__snapshots__/jsfmt.spec.js.snap +0 -53
- package/tests/format/Immutable/jsfmt.spec.js +0 -1
- package/tests/format/ImportDirective/ImportDirectives.sol +0 -5
- package/tests/format/ImportDirective/__snapshots__/jsfmt.spec.js.snap +0 -46
- package/tests/format/ImportDirective/jsfmt.spec.js +0 -2
- package/tests/format/Inbox/Inbox.sol +0 -33
- package/tests/format/Inbox/__snapshots__/jsfmt.spec.js.snap +0 -79
- package/tests/format/Inbox/jsfmt.spec.js +0 -1
- package/tests/format/IndexOf/IndexOf.sol +0 -67
- package/tests/format/IndexOf/__snapshots__/jsfmt.spec.js.snap +0 -144
- package/tests/format/IndexOf/jsfmt.spec.js +0 -1
- package/tests/format/IndexRangeAccess/IndexRangeAccess.sol +0 -9
- package/tests/format/IndexRangeAccess/__snapshots__/jsfmt.spec.js.snap +0 -31
- package/tests/format/IndexRangeAccess/jsfmt.spec.js +0 -1
- package/tests/format/InheritanceSpecifier/InheritanceSpecifier.sol +0 -2
- package/tests/format/InheritanceSpecifier/__snapshots__/jsfmt.spec.js.snap +0 -24
- package/tests/format/InheritanceSpecifier/jsfmt.spec.js +0 -1
- package/tests/format/Issues/Issue205.sol +0 -12
- package/tests/format/Issues/Issue289.sol +0 -6
- package/tests/format/Issues/Issue355.sol +0 -12
- package/tests/format/Issues/Issue385.sol +0 -13
- package/tests/format/Issues/Issue564.sol +0 -9
- package/tests/format/Issues/__snapshots__/jsfmt.spec.js.snap +0 -174
- package/tests/format/Issues/jsfmt.spec.js +0 -1
- package/tests/format/Libraries/Libraries.sol +0 -10
- package/tests/format/Libraries/__snapshots__/jsfmt.spec.js.snap +0 -102
- package/tests/format/Libraries/jsfmt.spec.js +0 -2
- package/tests/format/MemberAccess/MemberAccess.sol +0 -102
- package/tests/format/MemberAccess/__snapshots__/jsfmt.spec.js.snap +0 -243
- package/tests/format/MemberAccess/jsfmt.spec.js +0 -1
- package/tests/format/ModifierDefinitions/ModifierDefinitions.sol +0 -8
- package/tests/format/ModifierDefinitions/__snapshots__/jsfmt.spec.js.snap +0 -33
- package/tests/format/ModifierDefinitions/jsfmt.spec.js +0 -1
- package/tests/format/ModifierInvocations/ModifierInvocations.sol +0 -17
- package/tests/format/ModifierInvocations/__snapshots__/jsfmt.spec.js.snap +0 -51
- package/tests/format/ModifierInvocations/jsfmt.spec.js +0 -1
- package/tests/format/MultipartStrings/MultipartStrings.sol +0 -10
- package/tests/format/MultipartStrings/__snapshots__/jsfmt.spec.js.snap +0 -39
- package/tests/format/MultipartStrings/jsfmt.spec.js +0 -1
- package/tests/format/NameValueExpression/NameValueExpression.sol +0 -6
- package/tests/format/NameValueExpression/__snapshots__/jsfmt.spec.js.snap +0 -68
- package/tests/format/NameValueExpression/jsfmt.spec.js +0 -2
- package/tests/format/Ownable/Ownable.sol +0 -75
- package/tests/format/Ownable/__snapshots__/jsfmt.spec.js.snap +0 -163
- package/tests/format/Ownable/jsfmt.spec.js +0 -1
- package/tests/format/Parentheses/AddNoParentheses.sol +0 -92
- package/tests/format/Parentheses/BitAndNoParentheses.sol +0 -92
- package/tests/format/Parentheses/BitOrNoParentheses.sol +0 -92
- package/tests/format/Parentheses/BitXorNoParentheses.sol +0 -92
- package/tests/format/Parentheses/DivNoParentheses.sol +0 -92
- package/tests/format/Parentheses/ExpNoParentheses.sol +0 -92
- package/tests/format/Parentheses/LogicNoParentheses.sol +0 -20
- package/tests/format/Parentheses/ModNoParentheses.sol +0 -92
- package/tests/format/Parentheses/MulNoParentheses.sol +0 -92
- package/tests/format/Parentheses/ShiftLNoParentheses.sol +0 -92
- package/tests/format/Parentheses/ShiftRNoParentheses.sol +0 -92
- package/tests/format/Parentheses/SubNoParentheses.sol +0 -92
- package/tests/format/Parentheses/__snapshots__/jsfmt.spec.js.snap +0 -2237
- package/tests/format/Parentheses/jsfmt.spec.js +0 -1
- package/tests/format/Pragma/Pragma.sol +0 -8
- package/tests/format/Pragma/__snapshots__/jsfmt.spec.js.snap +0 -29
- package/tests/format/Pragma/jsfmt.spec.js +0 -1
- package/tests/format/PrettierIgnore/PrettierIgnore.sol +0 -39
- package/tests/format/PrettierIgnore/__snapshots__/jsfmt.spec.js.snap +0 -87
- package/tests/format/PrettierIgnore/jsfmt.spec.js +0 -1
- package/tests/format/Proxy/Proxy.sol +0 -52
- package/tests/format/Proxy/__snapshots__/jsfmt.spec.js.snap +0 -127
- package/tests/format/Proxy/jsfmt.spec.js +0 -1
- package/tests/format/RespectDefaultOptions/__snapshots__/jsfmt.spec.js.snap +0 -19
- package/tests/format/RespectDefaultOptions/jsfmt.spec.js +0 -5
- package/tests/format/RespectDefaultOptions/respect-default-options.js +0 -3
- package/tests/format/SampleCrowdsale/SampleCrowdsale.sol +0 -48
- package/tests/format/SampleCrowdsale/__snapshots__/jsfmt.spec.js.snap +0 -113
- package/tests/format/SampleCrowdsale/jsfmt.spec.js +0 -1
- package/tests/format/SimpleAuction/SimpleAuction.sol +0 -123
- package/tests/format/SimpleAuction/__snapshots__/jsfmt.spec.js.snap +0 -250
- package/tests/format/SimpleAuction/jsfmt.spec.js +0 -1
- package/tests/format/SimpleStorage/SimpleStorage.sol +0 -14
- package/tests/format/SimpleStorage/__snapshots__/jsfmt.spec.js.snap +0 -41
- package/tests/format/SimpleStorage/jsfmt.spec.js +0 -1
- package/tests/format/SplittableCommodity/SplittableCommodity.sol +0 -57
- package/tests/format/SplittableCommodity/__snapshots__/jsfmt.spec.js.snap +0 -135
- package/tests/format/SplittableCommodity/jsfmt.spec.js +0 -1
- package/tests/format/StateVariableDeclarations/StateVariableDeclarations.sol +0 -3
- package/tests/format/StateVariableDeclarations/__snapshots__/jsfmt.spec.js.snap +0 -20
- package/tests/format/StateVariableDeclarations/jsfmt.spec.js +0 -1
- package/tests/format/StringLiteral/StringLiteral.sol +0 -11
- package/tests/format/StringLiteral/__snapshots__/jsfmt.spec.js.snap +0 -36
- package/tests/format/StringLiteral/jsfmt.spec.js +0 -1
- package/tests/format/StyleGuide/BlankLines.sol +0 -19
- package/tests/format/StyleGuide/ControlStructures.sol +0 -57
- package/tests/format/StyleGuide/FunctionDeclaration.sol +0 -135
- package/tests/format/StyleGuide/Mappings.sol +0 -9
- package/tests/format/StyleGuide/MaximumLineLength.sol +0 -67
- package/tests/format/StyleGuide/OtherRecommendations.sol +0 -29
- package/tests/format/StyleGuide/VariableDeclarations.sol +0 -6
- package/tests/format/StyleGuide/WhitespaceInExpressions.sol +0 -13
- package/tests/format/StyleGuide/__snapshots__/jsfmt.spec.js.snap +0 -772
- package/tests/format/StyleGuide/jsfmt.spec.js +0 -1
- package/tests/format/TryCatch/TryCatch.sol +0 -103
- package/tests/format/TryCatch/__snapshots__/jsfmt.spec.js.snap +0 -241
- package/tests/format/TryCatch/jsfmt.spec.js +0 -1
- package/tests/format/Tupples/Tupples.sol +0 -25
- package/tests/format/Tupples/__snapshots__/jsfmt.spec.js.snap +0 -74
- package/tests/format/Tupples/jsfmt.spec.js +0 -1
- package/tests/format/TypeDefinition/TypeDefinition.sol +0 -12
- package/tests/format/TypeDefinition/__snapshots__/jsfmt.spec.js.snap +0 -74
- package/tests/format/TypeDefinition/jsfmt.spec.js +0 -1
- package/tests/format/WhileStatements/WhileStatements.sol +0 -37
- package/tests/format/WhileStatements/__snapshots__/jsfmt.spec.js.snap +0 -110
- package/tests/format/WhileStatements/jsfmt.spec.js +0 -1
- package/tests/format/WrongCompiler/WrongCompiler.sol +0 -3
- package/tests/format/WrongCompiler/__snapshots__/jsfmt.spec.js.snap +0 -55
- package/tests/format/WrongCompiler/jsfmt.spec.js +0 -10
- package/tests/format/quotes/Quotes.sol +0 -24
- package/tests/format/quotes/__snapshots__/jsfmt.spec.js.snap +0 -135
- package/tests/format/quotes/jsfmt.spec.js +0 -2
- package/tests/format/strings/__snapshots__/jsfmt.spec.js.snap +0 -1579
- package/tests/format/strings/jsfmt.spec.js +0 -1
- package/tests/format/strings/strings.sol +0 -717
- package/tests/unit/binary-operator-printers/__snapshots__/index.test.js.snap +0 -13
- package/tests/unit/binary-operator-printers/index.test.js +0 -5
- package/tests/unit/comments/printer.test.js +0 -9
- package/tests/unit/prettier-version.test.js +0 -26
- package/tests/unit/printer.test.js +0 -9
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
|
|
2
|
+
<!doctype html>
|
|
3
|
+
<html lang="en">
|
|
4
|
+
|
|
5
|
+
<head>
|
|
6
|
+
<title>Code coverage report for src/comments/handlers</title>
|
|
7
|
+
<meta charset="utf-8" />
|
|
8
|
+
<link rel="stylesheet" href="../../../prettify.css" />
|
|
9
|
+
<link rel="stylesheet" href="../../../base.css" />
|
|
10
|
+
<link rel="shortcut icon" type="image/x-icon" href="../../../favicon.png" />
|
|
11
|
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
12
|
+
<style type='text/css'>
|
|
13
|
+
.coverage-summary .sorter {
|
|
14
|
+
background-image: url(../../../sort-arrow-sprite.png);
|
|
15
|
+
}
|
|
16
|
+
</style>
|
|
17
|
+
</head>
|
|
18
|
+
|
|
19
|
+
<body>
|
|
20
|
+
<div class='wrapper'>
|
|
21
|
+
<div class='pad1'>
|
|
22
|
+
<h1><a href="../../../index.html">All files</a> src/comments/handlers</h1>
|
|
23
|
+
<div class='clearfix'>
|
|
24
|
+
|
|
25
|
+
<div class='fl pad1y space-right2'>
|
|
26
|
+
<span class="strong">100% </span>
|
|
27
|
+
<span class="quiet">Statements</span>
|
|
28
|
+
<span class='fraction'>34/34</span>
|
|
29
|
+
</div>
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
<div class='fl pad1y space-right2'>
|
|
33
|
+
<span class="strong">100% </span>
|
|
34
|
+
<span class="quiet">Branches</span>
|
|
35
|
+
<span class='fraction'>27/27</span>
|
|
36
|
+
</div>
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
<div class='fl pad1y space-right2'>
|
|
40
|
+
<span class="strong">100% </span>
|
|
41
|
+
<span class="quiet">Functions</span>
|
|
42
|
+
<span class='fraction'>2/2</span>
|
|
43
|
+
</div>
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
<div class='fl pad1y space-right2'>
|
|
47
|
+
<span class="strong">100% </span>
|
|
48
|
+
<span class="quiet">Lines</span>
|
|
49
|
+
<span class='fraction'>34/34</span>
|
|
50
|
+
</div>
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
</div>
|
|
54
|
+
<p class="quiet">
|
|
55
|
+
Press <em>n</em> or <em>j</em> to go to the next uncovered block, <em>b</em>, <em>p</em> or <em>k</em> for the previous block.
|
|
56
|
+
</p>
|
|
57
|
+
<template id="filterTemplate">
|
|
58
|
+
<div class="quiet">
|
|
59
|
+
Filter:
|
|
60
|
+
<input oninput="onInput()" type="search" id="fileSearch">
|
|
61
|
+
</div>
|
|
62
|
+
</template>
|
|
63
|
+
</div>
|
|
64
|
+
<div class='status-line high'></div>
|
|
65
|
+
<div class="pad1">
|
|
66
|
+
<table class="coverage-summary">
|
|
67
|
+
<thead>
|
|
68
|
+
<tr>
|
|
69
|
+
<th data-col="file" data-fmt="html" data-html="true" class="file">File</th>
|
|
70
|
+
<th data-col="pic" data-type="number" data-fmt="html" data-html="true" class="pic"></th>
|
|
71
|
+
<th data-col="statements" data-type="number" data-fmt="pct" class="pct">Statements</th>
|
|
72
|
+
<th data-col="statements_raw" data-type="number" data-fmt="html" class="abs"></th>
|
|
73
|
+
<th data-col="branches" data-type="number" data-fmt="pct" class="pct">Branches</th>
|
|
74
|
+
<th data-col="branches_raw" data-type="number" data-fmt="html" class="abs"></th>
|
|
75
|
+
<th data-col="functions" data-type="number" data-fmt="pct" class="pct">Functions</th>
|
|
76
|
+
<th data-col="functions_raw" data-type="number" data-fmt="html" class="abs"></th>
|
|
77
|
+
<th data-col="lines" data-type="number" data-fmt="pct" class="pct">Lines</th>
|
|
78
|
+
<th data-col="lines_raw" data-type="number" data-fmt="html" class="abs"></th>
|
|
79
|
+
</tr>
|
|
80
|
+
</thead>
|
|
81
|
+
<tbody><tr>
|
|
82
|
+
<td class="file high" data-value="handleContractDefinitionComments.js"><a href="handleContractDefinitionComments.js.html">handleContractDefinitionComments.js</a></td>
|
|
83
|
+
<td data-value="100" class="pic high">
|
|
84
|
+
<div class="chart"><div class="cover-fill cover-full" style="width: 100%"></div><div class="cover-empty" style="width: 0%"></div></div>
|
|
85
|
+
</td>
|
|
86
|
+
<td data-value="100" class="pct high">100%</td>
|
|
87
|
+
<td data-value="15" class="abs high">15/15</td>
|
|
88
|
+
<td data-value="100" class="pct high">100%</td>
|
|
89
|
+
<td data-value="15" class="abs high">15/15</td>
|
|
90
|
+
<td data-value="100" class="pct high">100%</td>
|
|
91
|
+
<td data-value="1" class="abs high">1/1</td>
|
|
92
|
+
<td data-value="100" class="pct high">100%</td>
|
|
93
|
+
<td data-value="15" class="abs high">15/15</td>
|
|
94
|
+
</tr>
|
|
95
|
+
|
|
96
|
+
<tr>
|
|
97
|
+
<td class="file high" data-value="handleModifierInvocationComments.js"><a href="handleModifierInvocationComments.js.html">handleModifierInvocationComments.js</a></td>
|
|
98
|
+
<td data-value="100" class="pic high">
|
|
99
|
+
<div class="chart"><div class="cover-fill cover-full" style="width: 100%"></div><div class="cover-empty" style="width: 0%"></div></div>
|
|
100
|
+
</td>
|
|
101
|
+
<td data-value="100" class="pct high">100%</td>
|
|
102
|
+
<td data-value="18" class="abs high">18/18</td>
|
|
103
|
+
<td data-value="100" class="pct high">100%</td>
|
|
104
|
+
<td data-value="12" class="abs high">12/12</td>
|
|
105
|
+
<td data-value="100" class="pct high">100%</td>
|
|
106
|
+
<td data-value="1" class="abs high">1/1</td>
|
|
107
|
+
<td data-value="100" class="pct high">100%</td>
|
|
108
|
+
<td data-value="18" class="abs high">18/18</td>
|
|
109
|
+
</tr>
|
|
110
|
+
|
|
111
|
+
<tr>
|
|
112
|
+
<td class="file high" data-value="index.js"><a href="index.js.html">index.js</a></td>
|
|
113
|
+
<td data-value="100" class="pic high">
|
|
114
|
+
<div class="chart"><div class="cover-fill cover-full" style="width: 100%"></div><div class="cover-empty" style="width: 0%"></div></div>
|
|
115
|
+
</td>
|
|
116
|
+
<td data-value="100" class="pct high">100%</td>
|
|
117
|
+
<td data-value="1" class="abs high">1/1</td>
|
|
118
|
+
<td data-value="100" class="pct high">100%</td>
|
|
119
|
+
<td data-value="0" class="abs high">0/0</td>
|
|
120
|
+
<td data-value="100" class="pct high">100%</td>
|
|
121
|
+
<td data-value="0" class="abs high">0/0</td>
|
|
122
|
+
<td data-value="100" class="pct high">100%</td>
|
|
123
|
+
<td data-value="1" class="abs high">1/1</td>
|
|
124
|
+
</tr>
|
|
125
|
+
|
|
126
|
+
</tbody>
|
|
127
|
+
</table>
|
|
128
|
+
</div>
|
|
129
|
+
<div class='push'></div><!-- for sticky footer -->
|
|
130
|
+
</div><!-- /wrapper -->
|
|
131
|
+
<div class='footer quiet pad2 space-top1 center small'>
|
|
132
|
+
Code coverage generated by
|
|
133
|
+
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
134
|
+
at 2022-09-14T13:25:30.619Z
|
|
135
|
+
</div>
|
|
136
|
+
<script src="../../../prettify.js"></script>
|
|
137
|
+
<script>
|
|
138
|
+
window.onload = function () {
|
|
139
|
+
prettyPrint();
|
|
140
|
+
};
|
|
141
|
+
</script>
|
|
142
|
+
<script src="../../../sorter.js"></script>
|
|
143
|
+
<script src="../../../block-navigation.js"></script>
|
|
144
|
+
</body>
|
|
145
|
+
</html>
|
|
146
|
+
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
|
|
2
|
+
<!doctype html>
|
|
3
|
+
<html lang="en">
|
|
4
|
+
|
|
5
|
+
<head>
|
|
6
|
+
<title>Code coverage report for src/comments/handlers/index.js</title>
|
|
7
|
+
<meta charset="utf-8" />
|
|
8
|
+
<link rel="stylesheet" href="../../../prettify.css" />
|
|
9
|
+
<link rel="stylesheet" href="../../../base.css" />
|
|
10
|
+
<link rel="shortcut icon" type="image/x-icon" href="../../../favicon.png" />
|
|
11
|
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
12
|
+
<style type='text/css'>
|
|
13
|
+
.coverage-summary .sorter {
|
|
14
|
+
background-image: url(../../../sort-arrow-sprite.png);
|
|
15
|
+
}
|
|
16
|
+
</style>
|
|
17
|
+
</head>
|
|
18
|
+
|
|
19
|
+
<body>
|
|
20
|
+
<div class='wrapper'>
|
|
21
|
+
<div class='pad1'>
|
|
22
|
+
<h1><a href="../../../index.html">All files</a> / <a href="index.html">src/comments/handlers</a> index.js</h1>
|
|
23
|
+
<div class='clearfix'>
|
|
24
|
+
|
|
25
|
+
<div class='fl pad1y space-right2'>
|
|
26
|
+
<span class="strong">100% </span>
|
|
27
|
+
<span class="quiet">Statements</span>
|
|
28
|
+
<span class='fraction'>1/1</span>
|
|
29
|
+
</div>
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
<div class='fl pad1y space-right2'>
|
|
33
|
+
<span class="strong">100% </span>
|
|
34
|
+
<span class="quiet">Branches</span>
|
|
35
|
+
<span class='fraction'>0/0</span>
|
|
36
|
+
</div>
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
<div class='fl pad1y space-right2'>
|
|
40
|
+
<span class="strong">100% </span>
|
|
41
|
+
<span class="quiet">Functions</span>
|
|
42
|
+
<span class='fraction'>0/0</span>
|
|
43
|
+
</div>
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
<div class='fl pad1y space-right2'>
|
|
47
|
+
<span class="strong">100% </span>
|
|
48
|
+
<span class="quiet">Lines</span>
|
|
49
|
+
<span class='fraction'>1/1</span>
|
|
50
|
+
</div>
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
</div>
|
|
54
|
+
<p class="quiet">
|
|
55
|
+
Press <em>n</em> or <em>j</em> to go to the next uncovered block, <em>b</em>, <em>p</em> or <em>k</em> for the previous block.
|
|
56
|
+
</p>
|
|
57
|
+
<template id="filterTemplate">
|
|
58
|
+
<div class="quiet">
|
|
59
|
+
Filter:
|
|
60
|
+
<input oninput="onInput()" type="search" id="fileSearch">
|
|
61
|
+
</div>
|
|
62
|
+
</template>
|
|
63
|
+
</div>
|
|
64
|
+
<div class='status-line high'></div>
|
|
65
|
+
<pre><table class="coverage">
|
|
66
|
+
<tr><td class="line-count quiet"><a name='L1'></a><a href='#L1'>1</a>
|
|
67
|
+
<a name='L2'></a><a href='#L2'>2</a>
|
|
68
|
+
<a name='L3'></a><a href='#L3'>3</a>
|
|
69
|
+
<a name='L4'></a><a href='#L4'>4</a>
|
|
70
|
+
<a name='L5'></a><a href='#L5'>5</a>
|
|
71
|
+
<a name='L6'></a><a href='#L6'>6</a>
|
|
72
|
+
<a name='L7'></a><a href='#L7'>7</a></td><td class="line-coverage quiet"><span class="cline-any cline-neutral"> </span>
|
|
73
|
+
<span class="cline-any cline-neutral"> </span>
|
|
74
|
+
<span class="cline-any cline-yes">54x</span>
|
|
75
|
+
<span class="cline-any cline-neutral"> </span>
|
|
76
|
+
<span class="cline-any cline-neutral"> </span>
|
|
77
|
+
<span class="cline-any cline-neutral"> </span>
|
|
78
|
+
<span class="cline-any cline-neutral"> </span></td><td class="text"><pre class="prettyprint lang-js">/* eslint-disable global-require */
|
|
79
|
+
|
|
80
|
+
module.exports = [
|
|
81
|
+
require('./handleContractDefinitionComments'),
|
|
82
|
+
require('./handleModifierInvocationComments')
|
|
83
|
+
];
|
|
84
|
+
</pre></td></tr></table></pre>
|
|
85
|
+
|
|
86
|
+
<div class='push'></div><!-- for sticky footer -->
|
|
87
|
+
</div><!-- /wrapper -->
|
|
88
|
+
<div class='footer quiet pad2 space-top1 center small'>
|
|
89
|
+
Code coverage generated by
|
|
90
|
+
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
91
|
+
at 2022-09-14T13:25:30.619Z
|
|
92
|
+
</div>
|
|
93
|
+
<script src="../../../prettify.js"></script>
|
|
94
|
+
<script>
|
|
95
|
+
window.onload = function () {
|
|
96
|
+
prettyPrint();
|
|
97
|
+
};
|
|
98
|
+
</script>
|
|
99
|
+
<script src="../../../sorter.js"></script>
|
|
100
|
+
<script src="../../../block-navigation.js"></script>
|
|
101
|
+
</body>
|
|
102
|
+
</html>
|
|
103
|
+
|
|
@@ -0,0 +1,184 @@
|
|
|
1
|
+
|
|
2
|
+
<!doctype html>
|
|
3
|
+
<html lang="en">
|
|
4
|
+
|
|
5
|
+
<head>
|
|
6
|
+
<title>Code coverage report for src/comments/ignore.js</title>
|
|
7
|
+
<meta charset="utf-8" />
|
|
8
|
+
<link rel="stylesheet" href="../../prettify.css" />
|
|
9
|
+
<link rel="stylesheet" href="../../base.css" />
|
|
10
|
+
<link rel="shortcut icon" type="image/x-icon" href="../../favicon.png" />
|
|
11
|
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
12
|
+
<style type='text/css'>
|
|
13
|
+
.coverage-summary .sorter {
|
|
14
|
+
background-image: url(../../sort-arrow-sprite.png);
|
|
15
|
+
}
|
|
16
|
+
</style>
|
|
17
|
+
</head>
|
|
18
|
+
|
|
19
|
+
<body>
|
|
20
|
+
<div class='wrapper'>
|
|
21
|
+
<div class='pad1'>
|
|
22
|
+
<h1><a href="../../index.html">All files</a> / <a href="index.html">src/comments</a> ignore.js</h1>
|
|
23
|
+
<div class='clearfix'>
|
|
24
|
+
|
|
25
|
+
<div class='fl pad1y space-right2'>
|
|
26
|
+
<span class="strong">100% </span>
|
|
27
|
+
<span class="quiet">Statements</span>
|
|
28
|
+
<span class='fraction'>17/17</span>
|
|
29
|
+
</div>
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
<div class='fl pad1y space-right2'>
|
|
33
|
+
<span class="strong">100% </span>
|
|
34
|
+
<span class="quiet">Branches</span>
|
|
35
|
+
<span class='fraction'>12/12</span>
|
|
36
|
+
</div>
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
<div class='fl pad1y space-right2'>
|
|
40
|
+
<span class="strong">100% </span>
|
|
41
|
+
<span class="quiet">Functions</span>
|
|
42
|
+
<span class='fraction'>3/3</span>
|
|
43
|
+
</div>
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
<div class='fl pad1y space-right2'>
|
|
47
|
+
<span class="strong">100% </span>
|
|
48
|
+
<span class="quiet">Lines</span>
|
|
49
|
+
<span class='fraction'>16/16</span>
|
|
50
|
+
</div>
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
</div>
|
|
54
|
+
<p class="quiet">
|
|
55
|
+
Press <em>n</em> or <em>j</em> to go to the next uncovered block, <em>b</em>, <em>p</em> or <em>k</em> for the previous block.
|
|
56
|
+
</p>
|
|
57
|
+
<template id="filterTemplate">
|
|
58
|
+
<div class="quiet">
|
|
59
|
+
Filter:
|
|
60
|
+
<input oninput="onInput()" type="search" id="fileSearch">
|
|
61
|
+
</div>
|
|
62
|
+
</template>
|
|
63
|
+
</div>
|
|
64
|
+
<div class='status-line high'></div>
|
|
65
|
+
<pre><table class="coverage">
|
|
66
|
+
<tr><td class="line-count quiet"><a name='L1'></a><a href='#L1'>1</a>
|
|
67
|
+
<a name='L2'></a><a href='#L2'>2</a>
|
|
68
|
+
<a name='L3'></a><a href='#L3'>3</a>
|
|
69
|
+
<a name='L4'></a><a href='#L4'>4</a>
|
|
70
|
+
<a name='L5'></a><a href='#L5'>5</a>
|
|
71
|
+
<a name='L6'></a><a href='#L6'>6</a>
|
|
72
|
+
<a name='L7'></a><a href='#L7'>7</a>
|
|
73
|
+
<a name='L8'></a><a href='#L8'>8</a>
|
|
74
|
+
<a name='L9'></a><a href='#L9'>9</a>
|
|
75
|
+
<a name='L10'></a><a href='#L10'>10</a>
|
|
76
|
+
<a name='L11'></a><a href='#L11'>11</a>
|
|
77
|
+
<a name='L12'></a><a href='#L12'>12</a>
|
|
78
|
+
<a name='L13'></a><a href='#L13'>13</a>
|
|
79
|
+
<a name='L14'></a><a href='#L14'>14</a>
|
|
80
|
+
<a name='L15'></a><a href='#L15'>15</a>
|
|
81
|
+
<a name='L16'></a><a href='#L16'>16</a>
|
|
82
|
+
<a name='L17'></a><a href='#L17'>17</a>
|
|
83
|
+
<a name='L18'></a><a href='#L18'>18</a>
|
|
84
|
+
<a name='L19'></a><a href='#L19'>19</a>
|
|
85
|
+
<a name='L20'></a><a href='#L20'>20</a>
|
|
86
|
+
<a name='L21'></a><a href='#L21'>21</a>
|
|
87
|
+
<a name='L22'></a><a href='#L22'>22</a>
|
|
88
|
+
<a name='L23'></a><a href='#L23'>23</a>
|
|
89
|
+
<a name='L24'></a><a href='#L24'>24</a>
|
|
90
|
+
<a name='L25'></a><a href='#L25'>25</a>
|
|
91
|
+
<a name='L26'></a><a href='#L26'>26</a>
|
|
92
|
+
<a name='L27'></a><a href='#L27'>27</a>
|
|
93
|
+
<a name='L28'></a><a href='#L28'>28</a>
|
|
94
|
+
<a name='L29'></a><a href='#L29'>29</a>
|
|
95
|
+
<a name='L30'></a><a href='#L30'>30</a>
|
|
96
|
+
<a name='L31'></a><a href='#L31'>31</a>
|
|
97
|
+
<a name='L32'></a><a href='#L32'>32</a>
|
|
98
|
+
<a name='L33'></a><a href='#L33'>33</a>
|
|
99
|
+
<a name='L34'></a><a href='#L34'>34</a></td><td class="line-coverage quiet"><span class="cline-any cline-neutral"> </span>
|
|
100
|
+
<span class="cline-any cline-yes">265x</span>
|
|
101
|
+
<span class="cline-any cline-neutral"> </span>
|
|
102
|
+
<span class="cline-any cline-yes">265x</span>
|
|
103
|
+
<span class="cline-any cline-neutral"> </span>
|
|
104
|
+
<span class="cline-any cline-yes">155x</span>
|
|
105
|
+
<span class="cline-any cline-yes">155x</span>
|
|
106
|
+
<span class="cline-any cline-yes">850x</span>
|
|
107
|
+
<span class="cline-any cline-neutral"> </span>
|
|
108
|
+
<span class="cline-any cline-neutral"> </span>
|
|
109
|
+
<span class="cline-any cline-neutral"> </span>
|
|
110
|
+
<span class="cline-any cline-yes">310x</span>
|
|
111
|
+
<span class="cline-any cline-neutral"> </span>
|
|
112
|
+
<span class="cline-any cline-neutral"> </span>
|
|
113
|
+
<span class="cline-any cline-yes">30x</span>
|
|
114
|
+
<span class="cline-any cline-yes">40x</span>
|
|
115
|
+
<span class="cline-any cline-yes">40x</span>
|
|
116
|
+
<span class="cline-any cline-neutral"> </span>
|
|
117
|
+
<span class="cline-any cline-yes">30x</span>
|
|
118
|
+
<span class="cline-any cline-neutral"> </span>
|
|
119
|
+
<span class="cline-any cline-neutral"> </span>
|
|
120
|
+
<span class="cline-any cline-yes">510x</span>
|
|
121
|
+
<span class="cline-any cline-yes">205x</span>
|
|
122
|
+
<span class="cline-any cline-yes">55x</span>
|
|
123
|
+
<span class="cline-any cline-yes">55x</span>
|
|
124
|
+
<span class="cline-any cline-neutral"> </span>
|
|
125
|
+
<span class="cline-any cline-yes">150x</span>
|
|
126
|
+
<span class="cline-any cline-neutral"> </span>
|
|
127
|
+
<span class="cline-any cline-neutral"> </span>
|
|
128
|
+
<span class="cline-any cline-neutral"> </span>
|
|
129
|
+
<span class="cline-any cline-neutral"> </span>
|
|
130
|
+
<span class="cline-any cline-neutral"> </span>
|
|
131
|
+
<span class="cline-any cline-yes">55x</span>
|
|
132
|
+
<span class="cline-any cline-neutral"> </span></td><td class="text"><pre class="prettyprint lang-js">function ignoreComments(path) {
|
|
133
|
+
const node = path.getValue();
|
|
134
|
+
// We ignore anything that is not an object
|
|
135
|
+
if (node === null || typeof node !== 'object') return;
|
|
136
|
+
|
|
137
|
+
const keys = Object.keys(node);
|
|
138
|
+
keys.forEach((key) => {
|
|
139
|
+
switch (key) {
|
|
140
|
+
// We ignore `loc` and `range` since these are added by the parser
|
|
141
|
+
case 'loc':
|
|
142
|
+
case 'range':
|
|
143
|
+
break;
|
|
144
|
+
// The key `comments` will contain every comment for this node
|
|
145
|
+
case 'comments':
|
|
146
|
+
path.each((commentPath) => {
|
|
147
|
+
const comment = commentPath.getValue();
|
|
148
|
+
comment.printed = true;
|
|
149
|
+
}, 'comments');
|
|
150
|
+
break;
|
|
151
|
+
default:
|
|
152
|
+
// If the value for that key is an Array or an Object we go deeper.
|
|
153
|
+
if (typeof node[key] === 'object') {
|
|
154
|
+
if (Array.isArray(node[key])) {
|
|
155
|
+
path.each(ignoreComments, key);
|
|
156
|
+
return;
|
|
157
|
+
}
|
|
158
|
+
path.call(ignoreComments, key);
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
});
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
module.exports = ignoreComments;
|
|
165
|
+
</pre></td></tr></table></pre>
|
|
166
|
+
|
|
167
|
+
<div class='push'></div><!-- for sticky footer -->
|
|
168
|
+
</div><!-- /wrapper -->
|
|
169
|
+
<div class='footer quiet pad2 space-top1 center small'>
|
|
170
|
+
Code coverage generated by
|
|
171
|
+
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
172
|
+
at 2022-09-14T13:25:30.619Z
|
|
173
|
+
</div>
|
|
174
|
+
<script src="../../prettify.js"></script>
|
|
175
|
+
<script>
|
|
176
|
+
window.onload = function () {
|
|
177
|
+
prettyPrint();
|
|
178
|
+
};
|
|
179
|
+
</script>
|
|
180
|
+
<script src="../../sorter.js"></script>
|
|
181
|
+
<script src="../../block-navigation.js"></script>
|
|
182
|
+
</body>
|
|
183
|
+
</html>
|
|
184
|
+
|
|
@@ -0,0 +1,161 @@
|
|
|
1
|
+
|
|
2
|
+
<!doctype html>
|
|
3
|
+
<html lang="en">
|
|
4
|
+
|
|
5
|
+
<head>
|
|
6
|
+
<title>Code coverage report for src/comments</title>
|
|
7
|
+
<meta charset="utf-8" />
|
|
8
|
+
<link rel="stylesheet" href="../../prettify.css" />
|
|
9
|
+
<link rel="stylesheet" href="../../base.css" />
|
|
10
|
+
<link rel="shortcut icon" type="image/x-icon" href="../../favicon.png" />
|
|
11
|
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
12
|
+
<style type='text/css'>
|
|
13
|
+
.coverage-summary .sorter {
|
|
14
|
+
background-image: url(../../sort-arrow-sprite.png);
|
|
15
|
+
}
|
|
16
|
+
</style>
|
|
17
|
+
</head>
|
|
18
|
+
|
|
19
|
+
<body>
|
|
20
|
+
<div class='wrapper'>
|
|
21
|
+
<div class='pad1'>
|
|
22
|
+
<h1><a href="../../index.html">All files</a> src/comments</h1>
|
|
23
|
+
<div class='clearfix'>
|
|
24
|
+
|
|
25
|
+
<div class='fl pad1y space-right2'>
|
|
26
|
+
<span class="strong">100% </span>
|
|
27
|
+
<span class="quiet">Statements</span>
|
|
28
|
+
<span class='fraction'>60/60</span>
|
|
29
|
+
</div>
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
<div class='fl pad1y space-right2'>
|
|
33
|
+
<span class="strong">100% </span>
|
|
34
|
+
<span class="quiet">Branches</span>
|
|
35
|
+
<span class='fraction'>39/39</span>
|
|
36
|
+
</div>
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
<div class='fl pad1y space-right2'>
|
|
40
|
+
<span class="strong">100% </span>
|
|
41
|
+
<span class="quiet">Functions</span>
|
|
42
|
+
<span class='fraction'>15/15</span>
|
|
43
|
+
</div>
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
<div class='fl pad1y space-right2'>
|
|
47
|
+
<span class="strong">100% </span>
|
|
48
|
+
<span class="quiet">Lines</span>
|
|
49
|
+
<span class='fraction'>58/58</span>
|
|
50
|
+
</div>
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
</div>
|
|
54
|
+
<p class="quiet">
|
|
55
|
+
Press <em>n</em> or <em>j</em> to go to the next uncovered block, <em>b</em>, <em>p</em> or <em>k</em> for the previous block.
|
|
56
|
+
</p>
|
|
57
|
+
<template id="filterTemplate">
|
|
58
|
+
<div class="quiet">
|
|
59
|
+
Filter:
|
|
60
|
+
<input oninput="onInput()" type="search" id="fileSearch">
|
|
61
|
+
</div>
|
|
62
|
+
</template>
|
|
63
|
+
</div>
|
|
64
|
+
<div class='status-line high'></div>
|
|
65
|
+
<div class="pad1">
|
|
66
|
+
<table class="coverage-summary">
|
|
67
|
+
<thead>
|
|
68
|
+
<tr>
|
|
69
|
+
<th data-col="file" data-fmt="html" data-html="true" class="file">File</th>
|
|
70
|
+
<th data-col="pic" data-type="number" data-fmt="html" data-html="true" class="pic"></th>
|
|
71
|
+
<th data-col="statements" data-type="number" data-fmt="pct" class="pct">Statements</th>
|
|
72
|
+
<th data-col="statements_raw" data-type="number" data-fmt="html" class="abs"></th>
|
|
73
|
+
<th data-col="branches" data-type="number" data-fmt="pct" class="pct">Branches</th>
|
|
74
|
+
<th data-col="branches_raw" data-type="number" data-fmt="html" class="abs"></th>
|
|
75
|
+
<th data-col="functions" data-type="number" data-fmt="pct" class="pct">Functions</th>
|
|
76
|
+
<th data-col="functions_raw" data-type="number" data-fmt="html" class="abs"></th>
|
|
77
|
+
<th data-col="lines" data-type="number" data-fmt="pct" class="pct">Lines</th>
|
|
78
|
+
<th data-col="lines_raw" data-type="number" data-fmt="html" class="abs"></th>
|
|
79
|
+
</tr>
|
|
80
|
+
</thead>
|
|
81
|
+
<tbody><tr>
|
|
82
|
+
<td class="file high" data-value="handler.js"><a href="handler.js.html">handler.js</a></td>
|
|
83
|
+
<td data-value="100" class="pic high">
|
|
84
|
+
<div class="chart"><div class="cover-fill cover-full" style="width: 100%"></div><div class="cover-empty" style="width: 0%"></div></div>
|
|
85
|
+
</td>
|
|
86
|
+
<td data-value="100" class="pct high">100%</td>
|
|
87
|
+
<td data-value="22" class="abs high">22/22</td>
|
|
88
|
+
<td data-value="100" class="pct high">100%</td>
|
|
89
|
+
<td data-value="12" class="abs high">12/12</td>
|
|
90
|
+
<td data-value="100" class="pct high">100%</td>
|
|
91
|
+
<td data-value="7" class="abs high">7/7</td>
|
|
92
|
+
<td data-value="100" class="pct high">100%</td>
|
|
93
|
+
<td data-value="22" class="abs high">22/22</td>
|
|
94
|
+
</tr>
|
|
95
|
+
|
|
96
|
+
<tr>
|
|
97
|
+
<td class="file high" data-value="ignore.js"><a href="ignore.js.html">ignore.js</a></td>
|
|
98
|
+
<td data-value="100" class="pic high">
|
|
99
|
+
<div class="chart"><div class="cover-fill cover-full" style="width: 100%"></div><div class="cover-empty" style="width: 0%"></div></div>
|
|
100
|
+
</td>
|
|
101
|
+
<td data-value="100" class="pct high">100%</td>
|
|
102
|
+
<td data-value="17" class="abs high">17/17</td>
|
|
103
|
+
<td data-value="100" class="pct high">100%</td>
|
|
104
|
+
<td data-value="12" class="abs high">12/12</td>
|
|
105
|
+
<td data-value="100" class="pct high">100%</td>
|
|
106
|
+
<td data-value="3" class="abs high">3/3</td>
|
|
107
|
+
<td data-value="100" class="pct high">100%</td>
|
|
108
|
+
<td data-value="16" class="abs high">16/16</td>
|
|
109
|
+
</tr>
|
|
110
|
+
|
|
111
|
+
<tr>
|
|
112
|
+
<td class="file high" data-value="index.js"><a href="index.js.html">index.js</a></td>
|
|
113
|
+
<td data-value="100" class="pic high">
|
|
114
|
+
<div class="chart"><div class="cover-fill cover-full" style="width: 100%"></div><div class="cover-empty" style="width: 0%"></div></div>
|
|
115
|
+
</td>
|
|
116
|
+
<td data-value="100" class="pct high">100%</td>
|
|
117
|
+
<td data-value="3" class="abs high">3/3</td>
|
|
118
|
+
<td data-value="100" class="pct high">100%</td>
|
|
119
|
+
<td data-value="0" class="abs high">0/0</td>
|
|
120
|
+
<td data-value="100" class="pct high">100%</td>
|
|
121
|
+
<td data-value="0" class="abs high">0/0</td>
|
|
122
|
+
<td data-value="100" class="pct high">100%</td>
|
|
123
|
+
<td data-value="3" class="abs high">3/3</td>
|
|
124
|
+
</tr>
|
|
125
|
+
|
|
126
|
+
<tr>
|
|
127
|
+
<td class="file high" data-value="printer.js"><a href="printer.js.html">printer.js</a></td>
|
|
128
|
+
<td data-value="100" class="pic high">
|
|
129
|
+
<div class="chart"><div class="cover-fill cover-full" style="width: 100%"></div><div class="cover-empty" style="width: 0%"></div></div>
|
|
130
|
+
</td>
|
|
131
|
+
<td data-value="100" class="pct high">100%</td>
|
|
132
|
+
<td data-value="18" class="abs high">18/18</td>
|
|
133
|
+
<td data-value="100" class="pct high">100%</td>
|
|
134
|
+
<td data-value="15" class="abs high">15/15</td>
|
|
135
|
+
<td data-value="100" class="pct high">100%</td>
|
|
136
|
+
<td data-value="5" class="abs high">5/5</td>
|
|
137
|
+
<td data-value="100" class="pct high">100%</td>
|
|
138
|
+
<td data-value="17" class="abs high">17/17</td>
|
|
139
|
+
</tr>
|
|
140
|
+
|
|
141
|
+
</tbody>
|
|
142
|
+
</table>
|
|
143
|
+
</div>
|
|
144
|
+
<div class='push'></div><!-- for sticky footer -->
|
|
145
|
+
</div><!-- /wrapper -->
|
|
146
|
+
<div class='footer quiet pad2 space-top1 center small'>
|
|
147
|
+
Code coverage generated by
|
|
148
|
+
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
149
|
+
at 2022-09-14T13:25:30.619Z
|
|
150
|
+
</div>
|
|
151
|
+
<script src="../../prettify.js"></script>
|
|
152
|
+
<script>
|
|
153
|
+
window.onload = function () {
|
|
154
|
+
prettyPrint();
|
|
155
|
+
};
|
|
156
|
+
</script>
|
|
157
|
+
<script src="../../sorter.js"></script>
|
|
158
|
+
<script src="../../block-navigation.js"></script>
|
|
159
|
+
</body>
|
|
160
|
+
</html>
|
|
161
|
+
|