Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
WARNING: Missing test for base type 'Positive-Single-Flonum'
WARNING: Missing test for base type '∪'
WARNING: Missing test for base type 'Single-Flonum'
WARNING: Missing test for base type 'Intersection'
WARNING: Missing test for base type 'Inexact-Imaginary'
WARNING: Missing test for base type 'Single-Flonum-Complex'
WARNING: Missing test for base type 'Union'
WARNING: Missing test for base type 'Single-Flonum-Zero'
WARNING: Missing test for base type 'ExtFlVector'
WARNING: Missing test for base type '∩'
WARNING: Missing test for base type 'ExtFlonum-Positive-Zero'
WARNING: Missing test for base type 'Nonpositive-ExtFlonum'
WARNING: Missing test for base type 'Place'
WARNING: Missing test for base type 'U'
WARNING: Missing test for base type 'ExtFlonum-Zero'
WARNING: Missing test for base type 'Internal-Definition-Context'
WARNING: Missing test for base type 'Read-Table'
WARNING: Missing test for base type 'Un'
WARNING: Missing test for base type 'Negative-Single-Flonum'
WARNING: Missing test for base type 'Unquoted-Printing-String'
WARNING: Missing test for base type 'Negative-ExtFlonum'
WARNING: Missing test for base type 'Single-Flonum-Negative-Zero'
WARNING: Missing test for base type 'Single-Flonum-Positive-Zero'
WARNING: Missing test for base type 'ExtFlonum'
WARNING: Missing test for base type 'Nonnegative-Single-Flonum'
WARNING: Missing test for base type 'ExtFlonum-Nan'
WARNING: Missing test for base type 'ExtFlonum-Negative-Zero'
WARNING: Missing test for base type 'Single-Flonum-Nan'
WARNING: Missing test for base type 'Positive-ExtFlonum'
WARNING: Missing test for base type 'Nonnegative-ExtFlonum'
WARNING: Missing test for base type 'Nonpositive-Single-Flonum'
This is an automated change generated by Resyntax.
Pass 1
Applied 3 fixes to
typed-racket-lib/typed-racket/types/signatures.rkttidy-require: Keep imports inrequiresorted and grouped by phase, with collections before files.let-to-define: Internal definitions are recommended instead ofletexpressions, to reduce nesting.let-to-define: Internal definitions are recommended instead ofletexpressions, to reduce nesting.Applied 6 fixes to
typed-racket-lib/typed-racket/types/base-abbrev.rktdefine-syntax-syntax-rules-to-define-syntax-rule: Thisdefine-syntaxmacro can be replaced with a simpler, equivalentdefine-syntax-rulemacro.define-syntax-syntax-rules-to-define-syntax-rule: Thisdefine-syntaxmacro can be replaced with a simpler, equivalentdefine-syntax-rulemacro.define-syntax-syntax-rules-to-define-syntax-rule: Thisdefine-syntaxmacro can be replaced with a simpler, equivalentdefine-syntax-rulemacro.define-syntax-syntax-rules-to-define-syntax-rule: Thisdefine-syntaxmacro can be replaced with a simpler, equivalentdefine-syntax-rulemacro.define-syntax-syntax-rules-to-define-syntax-rule: Thisdefine-syntaxmacro can be replaced with a simpler, equivalentdefine-syntax-rulemacro.define-syntax-syntax-rules-to-define-syntax-rule: Thisdefine-syntaxmacro can be replaced with a simpler, equivalentdefine-syntax-rulemacro.Applied 1 fix to
typed-racket-test/succeed/pr575-variation-3.rkttidy-require: Keep imports inrequiresorted and grouped by phase, with collections before files.Applied 2 fixes to
typed-racket-lib/typed-racket/core.rkttidy-require: Keep imports inrequiresorted and grouped by phase, with collections before files.inverted-when: This negatedwhenexpression can be replaced by anunlessexpression.Applied 1 fix to
typed-racket-test/succeed/tr-evt.rkttidy-require: Keep imports inrequiresorted and grouped by phase, with collections before files.Applied 1 fix to
typed-racket-test/succeed/pr14829.rkttidy-require: Keep imports inrequiresorted and grouped by phase, with collections before files.Applied 2 fixes to
typed-racket-lib/typed-racket/types/generalize.rkttidy-require: Keep imports inrequiresorted and grouped by phase, with collections before files.let-to-define: Internal definitions are recommended instead ofletexpressions, to reduce nesting.Applied 1 fix to
typed-racket-lib/typed/private/no-check-helper.rkttidy-require: Keep imports inrequiresorted and grouped by phase, with collections before files.Applied 1 fix to
typed-racket-test/succeed/opaque-object-name.rkttidy-require: Keep imports inrequiresorted and grouped by phase, with collections before files.Applied 3 fixes to
typed-racket-lib/typed-racket/types/utils.rktdefine-lambda-to-define: Thedefineform supports a shorthand for defining functions.let-to-define: Internal definitions are recommended instead ofletexpressions, to reduce nesting.let-to-define: Internal definitions are recommended instead ofletexpressions, to reduce nesting.Applied 1 fix to
typed-racket-test/succeed/type-printer-single-level.rkttidy-require: Keep imports inrequiresorted and grouped by phase, with collections before files.Applied 1 fix to
typed-racket-lib/typed-racket/types/overlap.rkttidy-require: Keep imports inrequiresorted and grouped by phase, with collections before files.Applied 3 fixes to
typed-racket-lib/typed-racket/types/subtype.rktapply-flattening: Theapplyfunction accepts single arguments in addition to a trailing list argument.if-else-false-to-and: Thisifexpression can be refactored to an equivalent expression usingand.single-clause-match-to-match-define: Thismatchexpression can be simplified usingmatch-define.Applied 1 fix to
typed-racket-test/succeed/opaque-object-stronger.rktlet-to-define: Internal definitions are recommended instead ofletexpressions, to reduce nesting.Applied 1 fix to
typed-racket-test/succeed/vector-contract.rkttidy-require: Keep imports inrequiresorted and grouped by phase, with collections before files.Applied 2 fixes to
typed-racket-lib/typed-racket/tc-setup.rkttidy-require: Keep imports inrequiresorted and grouped by phase, with collections before files.if-begin-to-cond: Usingcondinstead ofifhere makesbeginunnecessaryApplied 1 fix to
typed-racket-test/succeed/hash-contract.rkttidy-require: Keep imports inrequiresorted and grouped by phase, with collections before files.Applied 4 fixes to
typed-racket-lib/typed-racket/typed-reader.rktlet-to-define: Internal definitions are recommended instead ofletexpressions, to reduce nesting.let-to-define: Internal definitions are recommended instead ofletexpressions, to reduce nesting.let-to-define: Internal definitions are recommended instead ofletexpressions, to reduce nesting.case-lambda-with-single-case-to-lambda: Thiscase-lambdaform only has one case. Use a regular lambda instead.Applied 2 fixes to
typed-racket-lib/typed/private/rewriter.rkttidy-require: Keep imports inrequiresorted and grouped by phase, with collections before files.syntax-disarm-migration: Thesyntax-disarmfunction is a legacy function that does nothing.Applied 1 fix to
typed-racket-test/succeed/check-env-lang-based-env.rkttidy-require: Keep imports inrequiresorted and grouped by phase, with collections before files.Pass 2
Applied 2 fixes to
typed-racket-lib/typed-racket/typed-reader.rktlet-to-define: Internal definitions are recommended instead ofletexpressions, to reduce nesting.cond-let-to-cond-define: Internal definitions are recommended instead ofletexpressions, to reduce nesting.Summary
Fixed 40 issues in 20 files.
tidy-requirelet-to-definedefine-syntax-syntax-rules-to-define-syntax-rulesingle-clause-match-to-match-definecase-lambda-with-single-case-to-lambdainverted-whenif-begin-to-condapply-flatteningdefine-lambda-to-definecond-let-to-cond-definesyntax-disarm-migrationif-else-false-to-and