mirror of
https://github.com/shadowsocks/ShadowsocksX-NG.git
synced 2026-11-12 17:45:07 +00:00
- ShadowsocksX-NG2/.swift-format: Apple Swift 6.4 toolchain default rules snapshot - ShadowsocksX-NG2/.swiftlint.yml: default rules, excludes build artifacts and Legacy/ - .githooks/pre-commit: format staged NG2 Swift files into the index, then SwiftLint; error-severity violations reject the commit; non-NG2 files pass through untouched - ShadowsocksX-NG2/AGENTS.md: NG2-scoped conventions (tiered below root AGENTS.md) - normalize skeleton sources to swift format baseline (2-space indent)
82 lines
2.8 KiB
Plaintext
82 lines
2.8 KiB
Plaintext
{
|
|
"fileScopedDeclarationPrivacy" : {
|
|
"accessLevel" : "private"
|
|
},
|
|
"indentBlankLines" : false,
|
|
"indentConditionalCompilationBlocks" : true,
|
|
"indentSwitchCaseLabels" : false,
|
|
"indentation" : {
|
|
"spaces" : 2
|
|
},
|
|
"lineBreakAroundMultilineExpressionChainComponents" : false,
|
|
"lineBreakBeforeControlFlowKeywords" : false,
|
|
"lineBreakBeforeEachArgument" : false,
|
|
"lineBreakBeforeEachGenericRequirement" : false,
|
|
"lineBreakBetweenDeclarationAttributes" : false,
|
|
"lineLength" : 100,
|
|
"maximumBlankLines" : 1,
|
|
"multiElementCollectionTrailingCommas" : true,
|
|
"multilineTrailingCommaBehavior" : "keptAsWritten",
|
|
"noAssignmentInExpressions" : {
|
|
"allowedFunctions" : [
|
|
"XCTAssertNoThrow"
|
|
]
|
|
},
|
|
"orderedImports" : {
|
|
"includeConditionalImports" : false,
|
|
"shouldGroupImports" : true
|
|
},
|
|
"prioritizeKeepingFunctionOutputTogether" : false,
|
|
"reflowMultilineStringLiterals" : "never",
|
|
"respectsExistingLineBreaks" : true,
|
|
"rules" : {
|
|
"AllPublicDeclarationsHaveDocumentation" : false,
|
|
"AlwaysUseLiteralForEmptyCollectionInit" : false,
|
|
"AlwaysUseLowerCamelCase" : true,
|
|
"AmbiguousTrailingClosureOverload" : true,
|
|
"AvoidRetroactiveConformances" : 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,
|
|
"NoEmptyLinesOpeningClosingBraces" : false,
|
|
"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,
|
|
"spacesBeforeEndOfLineComments" : 2,
|
|
"tabWidth" : 8,
|
|
"version" : 1
|
|
}
|