mirror of
https://github.com/vapor/toolbox.git
synced 2025-04-19 16:50:44 +08:00
* New simplified rewrite of the Vapor Toolbox * Fix CI * Refactor `TemplateRenderer` to dynamically handle Fluent database options * Align `template` option name to old Toolbox * Fix command name * First attempt at dynamic arguments * Support nested variable conditions for file rendering in `manifest.yml` * Use Swift 6 language mode * Remove `Mutex` * swift format * Remove redundant calls * Group mandatory options in help view * Try using `ubuntu-22.04` in CI * Try using `latest` Swift in CI * Add basic tests * Update Dockerfile * Update README * Fix default value to `false` for top level of nested variables * Fix nested variables bug * Update README * First attempt at asking unresolved variables to user * Add `-n` flag * Refactor `which` and add more docs * Dynamically get Toolbox version via Homebrew * Add test for issue `which` fails on macOS #403 * Remove Ubuntu CodeQL job * Use new Swift Regex API * Add unit testing in CI * Try fixing CI * Fix CI * Move entrypoint to `Vapor` * Improve documentation * Make option description optional * Improve documentation * Add centered prints * Add `--manifest` flag to specify manifest file path * Add `--json` flag * Make the linter happy * Make it run on Musl * Rename `--json` to `--dump-variables` * Improve `which` test * Update README.md Co-authored-by: Tim Condon <0xTim@users.noreply.github.com> * Update Sources/VaporToolbox/Util/PrintUtilities.swift Co-authored-by: Tim Condon <0xTim@users.noreply.github.com> * Remove custom `TemplateManifest.Variable` equality operator * Handle UTF-8 encoding error when dumping JSON * Add short lowercase flag for `--template` * Remove unused `import`s * Add again uppercase short flag for `--template` * Update Package.swift Co-authored-by: Gwynne Raskind <gwynne@darkrainfall.org> * Update README.md Co-authored-by: Gwynne Raskind <gwynne@darkrainfall.org> * Update README.md Co-authored-by: Gwynne Raskind <gwynne@darkrainfall.org> * Update New.swift Co-authored-by: Gwynne Raskind <gwynne@darkrainfall.org> * Update New.swift Co-authored-by: Gwynne Raskind <gwynne@darkrainfall.org> * Update New.swift Co-authored-by: Gwynne Raskind <gwynne@darkrainfall.org> * Update New.swift Co-authored-by: Gwynne Raskind <gwynne@darkrainfall.org> * Update TemplateManifest.swift Co-authored-by: Gwynne Raskind <gwynne@darkrainfall.org> * Update TemplateRenderer.swift Co-authored-by: Gwynne Raskind <gwynne@darkrainfall.org> * Update TemplateRenderer.swift Co-authored-by: Gwynne Raskind <gwynne@darkrainfall.org> * Update TemplateRenderer.swift Co-authored-by: Gwynne Raskind <gwynne@darkrainfall.org> * Update PrintUtilities.swift Co-authored-by: Gwynne Raskind <gwynne@darkrainfall.org> * Update PrintUtilities.swift Co-authored-by: Gwynne Raskind <gwynne@darkrainfall.org> * Update PrintUtilities.swift Co-authored-by: Gwynne Raskind <gwynne@darkrainfall.org> * Update PrintUtilities.swift Co-authored-by: Gwynne Raskind <gwynne@darkrainfall.org> * Update PrintUtilities.swift Co-authored-by: Gwynne Raskind <gwynne@darkrainfall.org> * Update Vapor.swift Co-authored-by: Gwynne Raskind <gwynne@darkrainfall.org> * Update PrintUtilities.swift Co-authored-by: Gwynne Raskind <gwynne@darkrainfall.org> * Fix typo * Remove uppercase template flag * Add Android and Windows to CI * Remove CodeQL * Try fixing Android * Remove MongoDB integration tests * Enable MySQL Linux integration in CI * Disable MySQL Linux integration in CI * Fix typo in README * Fix bug in first commit * Try fixing Windows build * Remove Windows CI --------- Co-authored-by: Tim Condon <0xTim@users.noreply.github.com> Co-authored-by: Gwynne Raskind <gwynne@darkrainfall.org>
70 lines
2.4 KiB
Plaintext
70 lines
2.4 KiB
Plaintext
{
|
|
"fileScopedDeclarationPrivacy": {
|
|
"accessLevel": "private"
|
|
},
|
|
"indentation": {
|
|
"spaces": 4
|
|
},
|
|
"indentConditionalCompilationBlocks": false,
|
|
"indentSwitchCaseLabels": false,
|
|
"lineBreakAroundMultilineExpressionChainComponents": false,
|
|
"lineBreakBeforeControlFlowKeywords": false,
|
|
"lineBreakBeforeEachArgument": false,
|
|
"lineBreakBeforeEachGenericRequirement": false,
|
|
"lineLength": 140,
|
|
"maximumBlankLines": 1,
|
|
"multiElementCollectionTrailingCommas": true,
|
|
"noAssignmentInExpressions": {
|
|
"allowedFunctions": [
|
|
"XCTAssertNoThrow"
|
|
]
|
|
},
|
|
"prioritizeKeepingFunctionOutputTogether": false,
|
|
"respectsExistingLineBreaks": true,
|
|
"rules": {
|
|
"AllPublicDeclarationsHaveDocumentation": false,
|
|
"AlwaysUseLiteralForEmptyCollectionInit": false,
|
|
"AlwaysUseLowerCamelCase": true,
|
|
"AmbiguousTrailingClosureOverload": true,
|
|
"BeginDocumentationCommentWithOneLineSummary": false,
|
|
"DoNotUseSemicolons": true,
|
|
"DontRepeatTypeInStaticProperties": true,
|
|
"FileScopedDeclarationPrivacy": true,
|
|
"FullyIndirectEnum": true,
|
|
"GroupNumericLiterals": true,
|
|
"IdentifiersMustBeASCII": true,
|
|
"NeverForceUnwrap": false,
|
|
"NeverUseForceTry": false,
|
|
"NeverUseImplicitlyUnwrappedOptionals": false,
|
|
"NoAccessLevelOnExtensionDeclaration": true,
|
|
"NoAssignmentInExpressions": true,
|
|
"NoBlockComments": true,
|
|
"NoCasesWithOnlyFallthrough": true,
|
|
"NoEmptyTrailingClosureParentheses": true,
|
|
"NoLabelsInCasePatterns": true,
|
|
"NoLeadingUnderscores": false,
|
|
"NoParensAroundConditions": true,
|
|
"NoPlaygroundLiterals": true,
|
|
"NoVoidReturnOnFunctionSignature": true,
|
|
"OmitExplicitReturns": false,
|
|
"OneCasePerLine": true,
|
|
"OneVariableDeclarationPerLine": true,
|
|
"OnlyOneTrailingClosureArgument": true,
|
|
"OrderedImports": true,
|
|
"ReplaceForEachWithForLoop": true,
|
|
"ReturnVoidInsteadOfEmptyTuple": true,
|
|
"TypeNamesShouldBeCapitalized": true,
|
|
"UseEarlyExits": false,
|
|
"UseExplicitNilCheckInConditions": true,
|
|
"UseLetInEveryBoundCaseVariable": true,
|
|
"UseShorthandTypeNames": true,
|
|
"UseSingleLinePropertyGetter": true,
|
|
"UseSynthesizedInitializer": true,
|
|
"UseTripleSlashForDocumentationComments": true,
|
|
"UseWhereClausesInForLoops": false,
|
|
"ValidateDocumentationComments": false
|
|
},
|
|
"spacesAroundRangeFormationOperators": false,
|
|
"tabWidth": 8,
|
|
"version": 1
|
|
} |