From c4eec99a7555909ac16d21755f28f02ce3522918 Mon Sep 17 00:00:00 2001 From: Njeri Gachoka Date: Wed, 2 Apr 2025 13:59:14 -0700 Subject: [PATCH 1/6] Add git pre-commit hook with setup script --- telemetry/.githooks/pre-commit | 47 ++++++++++++++++++++++++++++++++++ telemetry/setup-hooks.sh | 4 +++ 2 files changed, 51 insertions(+) create mode 100644 telemetry/.githooks/pre-commit create mode 100644 telemetry/setup-hooks.sh diff --git a/telemetry/.githooks/pre-commit b/telemetry/.githooks/pre-commit new file mode 100644 index 000000000..9e27c9f7a --- /dev/null +++ b/telemetry/.githooks/pre-commit @@ -0,0 +1,47 @@ +#!/bin/sh +set -e + +# Styling +BOLD="\033[1m" +GREEN="\033[0;32m" +NC="\033[0m" + +# Header +printf "${BOLD}${GREEN}\n" +printf "=====================================\n" +printf " FS-3 Telemetry Code Checks \n" +printf "=====================================\n" +printf "${NC}" + +# Get staged files +FILES=$(git diff --cached --name-only --diff-filter=ACM) +FORMATTABLE_FILES=$(printf "%s\n" "$FILES" | grep -E '\.(c|cpp|h|hpp|js|ts|jsx|tsx|html|css|json|md|yaml|yml)$' || true) +TOTAL=$(printf "%s\n" "$FORMATTABLE_FILES" | wc -l | tr -d ' ') + +[ "$TOTAL" -eq 0 ] && { + echo "${GREEN}āœ… No files to format. You're good to go!${NC}" + exit 0 +} + +# Format loop +INDEX=1 +printf "%s\n" "$FORMATTABLE_FILES" | while IFS= read -r FILE; do + TOOL="" + case "$FILE" in + *.c|*.cpp|*.h|*.hpp) + TOOL="šŸ”§ clang-format" + clang-format -i "$FILE" >/dev/null 2>&1 + ;; + *.js|*.ts|*.jsx|*.tsx|*.html|*.css|*.json|*.md|*.yaml|*.yml) + TOOL="šŸŽØ prettier" + npx prettier --write "$FILE" >/dev/null 2>&1 + ;; + esac + + git add "$FILE" + printf "[%d/%d] %s: %s\n" "$INDEX" "$TOTAL" "$TOOL" "$FILE" + INDEX=$((INDEX + 1)) +done + +# Final message +echo "\n${BOLD}${GREEN}āœ… All formatted! Pre-commit complete.\n" diff --git a/telemetry/setup-hooks.sh b/telemetry/setup-hooks.sh new file mode 100644 index 000000000..6995749d9 --- /dev/null +++ b/telemetry/setup-hooks.sh @@ -0,0 +1,4 @@ +# telemetry/setup-hooks.sh +#!/bin/bash +ln -sf ../../telemetry/hooks/pre-commit .git/hooks/pre-commit +chmod +x .git/hooks/pre-commit \ No newline at end of file From f81ac8fa83966cd8e28c411dd2dc43eebfb4236b Mon Sep 17 00:00:00 2001 From: Njeri Gachoka Date: Wed, 2 Apr 2025 14:05:10 -0700 Subject: [PATCH 2/6] Add printing to setup script --- telemetry/setup-hooks.sh | 35 +++++++++++++++++++++++++++++++---- 1 file changed, 31 insertions(+), 4 deletions(-) diff --git a/telemetry/setup-hooks.sh b/telemetry/setup-hooks.sh index 6995749d9..2c855c9a9 100644 --- a/telemetry/setup-hooks.sh +++ b/telemetry/setup-hooks.sh @@ -1,4 +1,31 @@ -# telemetry/setup-hooks.sh -#!/bin/bash -ln -sf ../../telemetry/hooks/pre-commit .git/hooks/pre-commit -chmod +x .git/hooks/pre-commit \ No newline at end of file +#!/bin/sh +set -e + +HOOK_SOURCE="telemetry/hooks/pre-commit" +HOOK_TARGET=".git/hooks/pre-commit" + +echo "šŸ› ļø FS-3 Telemetry: Pre-Commit Hook Setup" + +# Does source hook exist? +if [ ! -f "$HOOK_SOURCE" ]; then + echo "āŒ Error: Cannot find hook source at $HOOK_SOURCE" + exit 1 +fi + +# Create .git/hooks if needed +if [ ! -d ".git/hooks" ]; then + echo "šŸ“‚ Creating .git/hooks directory..." + mkdir -p .git/hooks +fi + +# Symlink the hook +echo "šŸ”— Linking $HOOK_SOURCE → $HOOK_TARGET" +ln -sf "../../$HOOK_SOURCE" "$HOOK_TARGET" + +# Make it executable +echo "šŸ”’ Making hook executable" +chmod +x "$HOOK_TARGET" + +# Finish up +echo "āœ… Pre-commit hook installed!" +echo "🚦 Try staging a file and running: git commit -m 'Test'" \ No newline at end of file From 171cfb0e36a9d393b982459a5ff9bf6fc6068baf Mon Sep 17 00:00:00 2001 From: Njeri Gachoka Date: Wed, 2 Apr 2025 14:05:59 -0700 Subject: [PATCH 3/6] Add instructions for how to install hooks --- telemetry/README.md | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 telemetry/README.md diff --git a/telemetry/README.md b/telemetry/README.md new file mode 100644 index 000000000..e34a99456 --- /dev/null +++ b/telemetry/README.md @@ -0,0 +1,6 @@ +# FS-3 Telemetry + +## Setup (git hooks) +1. `chmod +x setup-hooks.sh` +2. `./setup-hooks.sh` +3. Go ahead and `git add ` and `git commit`! \ No newline at end of file From 183c48181e31dfb1cb86dcb6acea32a318305997 Mon Sep 17 00:00:00 2001 From: Njeri Gachoka Date: Wed, 2 Apr 2025 14:19:34 -0700 Subject: [PATCH 4/6] Add formatting config --- telemetry/.clang-format | 274 ++++++++++++++++++++++++++++++++++++++++ telemetry/.prettierrc | 6 + 2 files changed, 280 insertions(+) create mode 100644 telemetry/.clang-format create mode 100644 telemetry/.prettierrc diff --git a/telemetry/.clang-format b/telemetry/.clang-format new file mode 100644 index 000000000..25563f427 --- /dev/null +++ b/telemetry/.clang-format @@ -0,0 +1,274 @@ +--- +Language: Cpp +AccessModifierOffset: -2 +AlignAfterOpenBracket: Align +AlignArrayOfStructures: None +AlignConsecutiveAssignments: + Enabled: false + AcrossEmptyLines: false + AcrossComments: false + AlignCompound: false + AlignFunctionPointers: false + PadOperators: true +AlignConsecutiveBitFields: + Enabled: false + AcrossEmptyLines: false + AcrossComments: false + AlignCompound: false + AlignFunctionPointers: false + PadOperators: false +AlignConsecutiveDeclarations: + Enabled: false + AcrossEmptyLines: false + AcrossComments: false + AlignCompound: false + AlignFunctionPointers: false + PadOperators: false +AlignConsecutiveMacros: + Enabled: false + AcrossEmptyLines: false + AcrossComments: false + AlignCompound: false + AlignFunctionPointers: false + PadOperators: false +AlignConsecutiveShortCaseStatements: + Enabled: false + AcrossEmptyLines: false + AcrossComments: false + AlignCaseArrows: false + AlignCaseColons: false +AlignConsecutiveTableGenBreakingDAGArgColons: + Enabled: false + AcrossEmptyLines: false + AcrossComments: false + AlignCompound: false + AlignFunctionPointers: false + PadOperators: false +AlignConsecutiveTableGenCondOperatorColons: + Enabled: false + AcrossEmptyLines: false + AcrossComments: false + AlignCompound: false + AlignFunctionPointers: false + PadOperators: false +AlignConsecutiveTableGenDefinitionColons: + Enabled: false + AcrossEmptyLines: false + AcrossComments: false + AlignCompound: false + AlignFunctionPointers: false + PadOperators: false +AlignEscapedNewlines: Right +AlignOperands: Align +AlignTrailingComments: + Kind: Always + OverEmptyLines: 0 +AllowAllArgumentsOnNextLine: true +AllowAllParametersOfDeclarationOnNextLine: true +AllowBreakBeforeNoexceptSpecifier: Never +AllowShortBlocksOnASingleLine: Never +AllowShortCaseExpressionOnASingleLine: true +AllowShortCaseLabelsOnASingleLine: false +AllowShortCompoundRequirementOnASingleLine: true +AllowShortEnumsOnASingleLine: true +AllowShortFunctionsOnASingleLine: All +AllowShortIfStatementsOnASingleLine: Never +AllowShortLambdasOnASingleLine: All +AllowShortLoopsOnASingleLine: false +AlwaysBreakAfterDefinitionReturnType: None +AlwaysBreakBeforeMultilineStrings: false +AttributeMacros: + - __capability +BinPackArguments: true +BinPackParameters: true +BitFieldColonSpacing: Both +BraceWrapping: + AfterCaseLabel: false + AfterClass: false + AfterControlStatement: Never + AfterEnum: false + AfterExternBlock: false + AfterFunction: false + AfterNamespace: false + AfterObjCDeclaration: false + AfterStruct: false + AfterUnion: false + BeforeCatch: false + BeforeElse: false + BeforeLambdaBody: false + BeforeWhile: false + IndentBraces: false + SplitEmptyFunction: true + SplitEmptyRecord: true + SplitEmptyNamespace: true +BreakAdjacentStringLiterals: true +BreakAfterAttributes: Leave +BreakAfterJavaFieldAnnotations: false +BreakAfterReturnType: None +BreakArrays: true +BreakBeforeBinaryOperators: None +BreakBeforeConceptDeclarations: Always +BreakBeforeBraces: Attach +BreakBeforeInlineASMColon: OnlyMultiline +BreakBeforeTernaryOperators: true +BreakConstructorInitializers: BeforeColon +BreakFunctionDefinitionParameters: false +BreakInheritanceList: BeforeColon +BreakStringLiterals: true +BreakTemplateDeclarations: MultiLine +ColumnLimit: 80 +CommentPragmas: '^ IWYU pragma:' +CompactNamespaces: false +ConstructorInitializerIndentWidth: 4 +ContinuationIndentWidth: 4 +Cpp11BracedListStyle: true +DerivePointerAlignment: false +DisableFormat: false +EmptyLineAfterAccessModifier: Never +EmptyLineBeforeAccessModifier: LogicalBlock +ExperimentalAutoDetectBinPacking: false +FixNamespaceComments: true +ForEachMacros: + - foreach + - Q_FOREACH + - BOOST_FOREACH +IfMacros: + - KJ_IF_MAYBE +IncludeBlocks: Preserve +IncludeCategories: + - Regex: '^"(llvm|llvm-c|clang|clang-c)/' + Priority: 2 + SortPriority: 0 + CaseSensitive: false + - Regex: '^(<|"(gtest|gmock|isl|json)/)' + Priority: 3 + SortPriority: 0 + CaseSensitive: false + - Regex: '.*' + Priority: 1 + SortPriority: 0 + CaseSensitive: false +IncludeIsMainRegex: '(Test)?$' +IncludeIsMainSourceRegex: '' +IndentAccessModifiers: false +IndentCaseBlocks: false +IndentCaseLabels: false +IndentExternBlock: AfterExternBlock +IndentGotoLabels: true +IndentPPDirectives: None +IndentRequiresClause: true +IndentWidth: 2 +IndentWrappedFunctionNames: false +InsertBraces: false +InsertNewlineAtEOF: false +InsertTrailingCommas: None +IntegerLiteralSeparator: + Binary: 0 + BinaryMinDigits: 0 + Decimal: 0 + DecimalMinDigits: 0 + Hex: 0 + HexMinDigits: 0 +JavaScriptQuotes: Leave +JavaScriptWrapImports: true +KeepEmptyLines: + AtEndOfFile: false + AtStartOfBlock: true + AtStartOfFile: true +LambdaBodyIndentation: Signature +LineEnding: DeriveLF +MacroBlockBegin: '' +MacroBlockEnd: '' +MainIncludeChar: Quote +MaxEmptyLinesToKeep: 1 +NamespaceIndentation: None +ObjCBinPackProtocolList: Auto +ObjCBlockIndentWidth: 2 +ObjCBreakBeforeNestedBlockParam: true +ObjCSpaceAfterProperty: false +ObjCSpaceBeforeProtocolList: true +PackConstructorInitializers: BinPack +PenaltyBreakAssignment: 2 +PenaltyBreakBeforeFirstCallParameter: 19 +PenaltyBreakComment: 300 +PenaltyBreakFirstLessLess: 120 +PenaltyBreakOpenParenthesis: 0 +PenaltyBreakScopeResolution: 500 +PenaltyBreakString: 1000 +PenaltyBreakTemplateDeclaration: 10 +PenaltyExcessCharacter: 1000000 +PenaltyIndentedWhitespace: 0 +PenaltyReturnTypeOnItsOwnLine: 60 +PointerAlignment: Right +PPIndentWidth: -1 +QualifierAlignment: Leave +ReferenceAlignment: Pointer +ReflowComments: true +RemoveBracesLLVM: false +RemoveParentheses: Leave +RemoveSemicolon: false +RequiresClausePosition: OwnLine +RequiresExpressionIndentation: OuterScope +SeparateDefinitionBlocks: Leave +ShortNamespaceLines: 1 +SkipMacroDefinitionBody: false +SortIncludes: CaseSensitive +SortJavaStaticImport: Before +SortUsingDeclarations: LexicographicNumeric +SpaceAfterCStyleCast: false +SpaceAfterLogicalNot: false +SpaceAfterTemplateKeyword: true +SpaceAroundPointerQualifiers: Default +SpaceBeforeAssignmentOperators: true +SpaceBeforeCaseColon: false +SpaceBeforeCpp11BracedList: false +SpaceBeforeCtorInitializerColon: true +SpaceBeforeInheritanceColon: true +SpaceBeforeJsonColon: false +SpaceBeforeParens: ControlStatements +SpaceBeforeParensOptions: + AfterControlStatements: true + AfterForeachMacros: true + AfterFunctionDefinitionName: false + AfterFunctionDeclarationName: false + AfterIfMacros: true + AfterOverloadedOperator: false + AfterPlacementOperator: true + AfterRequiresInClause: false + AfterRequiresInExpression: false + BeforeNonEmptyParentheses: false +SpaceBeforeRangeBasedForLoopColon: true +SpaceBeforeSquareBrackets: false +SpaceInEmptyBlock: false +SpacesBeforeTrailingComments: 1 +SpacesInAngles: Never +SpacesInContainerLiterals: true +SpacesInLineCommentPrefix: + Minimum: 1 + Maximum: -1 +SpacesInParens: Never +SpacesInParensOptions: + ExceptDoubleParentheses: false + InCStyleCasts: false + InConditionalStatements: false + InEmptyParentheses: false + Other: false +SpacesInSquareBrackets: false +Standard: Latest +StatementAttributeLikeMacros: + - Q_EMIT +StatementMacros: + - Q_UNUSED + - QT_REQUIRE_VERSION +TableGenBreakInsideDAGArg: DontBreak +TabWidth: 8 +UseTab: Never +VerilogBreakBetweenInstancePorts: true +WhitespaceSensitiveMacros: + - BOOST_PP_STRINGIZE + - CF_SWIFT_NAME + - NS_SWIFT_NAME + - PP_STRINGIZE + - STRINGIZE +... + diff --git a/telemetry/.prettierrc b/telemetry/.prettierrc new file mode 100644 index 000000000..8b8b7b99f --- /dev/null +++ b/telemetry/.prettierrc @@ -0,0 +1,6 @@ +{ + "trailingComma": "es5", + "tabWidth": 4, + "semi": false, + "singleQuote": true +} \ No newline at end of file From 261548f8d65a129c1b085c84e7693d713883209e Mon Sep 17 00:00:00 2001 From: Njeri Gachoka Date: Fri, 4 Apr 2025 11:08:23 -0700 Subject: [PATCH 5/6] No need for prettier here --- telemetry/.githooks/pre-commit | 38 +++++++++++----------------------- 1 file changed, 12 insertions(+), 26 deletions(-) diff --git a/telemetry/.githooks/pre-commit b/telemetry/.githooks/pre-commit index 9e27c9f7a..36d515bd4 100644 --- a/telemetry/.githooks/pre-commit +++ b/telemetry/.githooks/pre-commit @@ -1,47 +1,33 @@ #!/bin/sh set -e -# Styling -BOLD="\033[1m" -GREEN="\033[0;32m" -NC="\033[0m" - # Header -printf "${BOLD}${GREEN}\n" +printf "\n" printf "=====================================\n" printf " FS-3 Telemetry Code Checks \n" printf "=====================================\n" -printf "${NC}" # Get staged files FILES=$(git diff --cached --name-only --diff-filter=ACM) -FORMATTABLE_FILES=$(printf "%s\n" "$FILES" | grep -E '\.(c|cpp|h|hpp|js|ts|jsx|tsx|html|css|json|md|yaml|yml)$' || true) -TOTAL=$(printf "%s\n" "$FORMATTABLE_FILES" | wc -l | tr -d ' ') +FORMATTABLE_FILES=$(printf "%s\n" "$FILES" | grep -E '\.(c|cpp|h|hpp)$' || true) -[ "$TOTAL" -eq 0 ] && { - echo "${GREEN}āœ… No files to format. You're good to go!${NC}" +# Check if there are any files to format +if [ -z "$FORMATTABLE_FILES" ]; then + printf "āœ… No files to format. You're good to go!\n\n" exit 0 -} +fi -# Format loop +TOTAL=$(printf "%s\n" "$FORMATTABLE_FILES" | wc -l | tr -d ' ') + +# Format loops INDEX=1 printf "%s\n" "$FORMATTABLE_FILES" | while IFS= read -r FILE; do - TOOL="" - case "$FILE" in - *.c|*.cpp|*.h|*.hpp) - TOOL="šŸ”§ clang-format" - clang-format -i "$FILE" >/dev/null 2>&1 - ;; - *.js|*.ts|*.jsx|*.tsx|*.html|*.css|*.json|*.md|*.yaml|*.yml) - TOOL="šŸŽØ prettier" - npx prettier --write "$FILE" >/dev/null 2>&1 - ;; - esac - + TOOL="šŸŽØ clang-format" + clang-format -i "$FILE" >/dev/null 2>&1 git add "$FILE" printf "[%d/%d] %s: %s\n" "$INDEX" "$TOTAL" "$TOOL" "$FILE" INDEX=$((INDEX + 1)) done # Final message -echo "\n${BOLD}${GREEN}āœ… All formatted! Pre-commit complete.\n" +printf "\nāœ… All formatted! Pre-commit complete.\n" From c212253362cb38d1e00fbaeb2157ea7910ea8d27 Mon Sep 17 00:00:00 2001 From: Njeri Gachoka Date: Fri, 4 Apr 2025 11:16:24 -0700 Subject: [PATCH 6/6] Base on Google's style --- telemetry/.clang-format | 279 +--------------------------------------- telemetry/.prettierrc | 6 - 2 files changed, 6 insertions(+), 279 deletions(-) delete mode 100644 telemetry/.prettierrc diff --git a/telemetry/.clang-format b/telemetry/.clang-format index 25563f427..66fc91b96 100644 --- a/telemetry/.clang-format +++ b/telemetry/.clang-format @@ -1,274 +1,7 @@ ---- -Language: Cpp -AccessModifierOffset: -2 -AlignAfterOpenBracket: Align -AlignArrayOfStructures: None -AlignConsecutiveAssignments: - Enabled: false - AcrossEmptyLines: false - AcrossComments: false - AlignCompound: false - AlignFunctionPointers: false - PadOperators: true -AlignConsecutiveBitFields: - Enabled: false - AcrossEmptyLines: false - AcrossComments: false - AlignCompound: false - AlignFunctionPointers: false - PadOperators: false -AlignConsecutiveDeclarations: - Enabled: false - AcrossEmptyLines: false - AcrossComments: false - AlignCompound: false - AlignFunctionPointers: false - PadOperators: false -AlignConsecutiveMacros: - Enabled: false - AcrossEmptyLines: false - AcrossComments: false - AlignCompound: false - AlignFunctionPointers: false - PadOperators: false -AlignConsecutiveShortCaseStatements: - Enabled: false - AcrossEmptyLines: false - AcrossComments: false - AlignCaseArrows: false - AlignCaseColons: false -AlignConsecutiveTableGenBreakingDAGArgColons: - Enabled: false - AcrossEmptyLines: false - AcrossComments: false - AlignCompound: false - AlignFunctionPointers: false - PadOperators: false -AlignConsecutiveTableGenCondOperatorColons: - Enabled: false - AcrossEmptyLines: false - AcrossComments: false - AlignCompound: false - AlignFunctionPointers: false - PadOperators: false -AlignConsecutiveTableGenDefinitionColons: - Enabled: false - AcrossEmptyLines: false - AcrossComments: false - AlignCompound: false - AlignFunctionPointers: false - PadOperators: false -AlignEscapedNewlines: Right -AlignOperands: Align -AlignTrailingComments: - Kind: Always - OverEmptyLines: 0 -AllowAllArgumentsOnNextLine: true -AllowAllParametersOfDeclarationOnNextLine: true -AllowBreakBeforeNoexceptSpecifier: Never -AllowShortBlocksOnASingleLine: Never -AllowShortCaseExpressionOnASingleLine: true -AllowShortCaseLabelsOnASingleLine: false -AllowShortCompoundRequirementOnASingleLine: true -AllowShortEnumsOnASingleLine: true -AllowShortFunctionsOnASingleLine: All -AllowShortIfStatementsOnASingleLine: Never -AllowShortLambdasOnASingleLine: All +# Options: https://clang.llvm.org/docs/ClangFormatStyleOptions.html +BasedOnStyle: Google +AllowShortIfStatementsOnASingleLine: false AllowShortLoopsOnASingleLine: false -AlwaysBreakAfterDefinitionReturnType: None -AlwaysBreakBeforeMultilineStrings: false -AttributeMacros: - - __capability -BinPackArguments: true -BinPackParameters: true -BitFieldColonSpacing: Both -BraceWrapping: - AfterCaseLabel: false - AfterClass: false - AfterControlStatement: Never - AfterEnum: false - AfterExternBlock: false - AfterFunction: false - AfterNamespace: false - AfterObjCDeclaration: false - AfterStruct: false - AfterUnion: false - BeforeCatch: false - BeforeElse: false - BeforeLambdaBody: false - BeforeWhile: false - IndentBraces: false - SplitEmptyFunction: true - SplitEmptyRecord: true - SplitEmptyNamespace: true -BreakAdjacentStringLiterals: true -BreakAfterAttributes: Leave -BreakAfterJavaFieldAnnotations: false -BreakAfterReturnType: None -BreakArrays: true -BreakBeforeBinaryOperators: None -BreakBeforeConceptDeclarations: Always -BreakBeforeBraces: Attach -BreakBeforeInlineASMColon: OnlyMultiline -BreakBeforeTernaryOperators: true -BreakConstructorInitializers: BeforeColon -BreakFunctionDefinitionParameters: false -BreakInheritanceList: BeforeColon -BreakStringLiterals: true -BreakTemplateDeclarations: MultiLine -ColumnLimit: 80 -CommentPragmas: '^ IWYU pragma:' -CompactNamespaces: false -ConstructorInitializerIndentWidth: 4 -ContinuationIndentWidth: 4 -Cpp11BracedListStyle: true -DerivePointerAlignment: false -DisableFormat: false -EmptyLineAfterAccessModifier: Never -EmptyLineBeforeAccessModifier: LogicalBlock -ExperimentalAutoDetectBinPacking: false -FixNamespaceComments: true -ForEachMacros: - - foreach - - Q_FOREACH - - BOOST_FOREACH -IfMacros: - - KJ_IF_MAYBE -IncludeBlocks: Preserve -IncludeCategories: - - Regex: '^"(llvm|llvm-c|clang|clang-c)/' - Priority: 2 - SortPriority: 0 - CaseSensitive: false - - Regex: '^(<|"(gtest|gmock|isl|json)/)' - Priority: 3 - SortPriority: 0 - CaseSensitive: false - - Regex: '.*' - Priority: 1 - SortPriority: 0 - CaseSensitive: false -IncludeIsMainRegex: '(Test)?$' -IncludeIsMainSourceRegex: '' -IndentAccessModifiers: false -IndentCaseBlocks: false -IndentCaseLabels: false -IndentExternBlock: AfterExternBlock -IndentGotoLabels: true -IndentPPDirectives: None -IndentRequiresClause: true -IndentWidth: 2 -IndentWrappedFunctionNames: false -InsertBraces: false -InsertNewlineAtEOF: false -InsertTrailingCommas: None -IntegerLiteralSeparator: - Binary: 0 - BinaryMinDigits: 0 - Decimal: 0 - DecimalMinDigits: 0 - Hex: 0 - HexMinDigits: 0 -JavaScriptQuotes: Leave -JavaScriptWrapImports: true -KeepEmptyLines: - AtEndOfFile: false - AtStartOfBlock: true - AtStartOfFile: true -LambdaBodyIndentation: Signature -LineEnding: DeriveLF -MacroBlockBegin: '' -MacroBlockEnd: '' -MainIncludeChar: Quote -MaxEmptyLinesToKeep: 1 -NamespaceIndentation: None -ObjCBinPackProtocolList: Auto -ObjCBlockIndentWidth: 2 -ObjCBreakBeforeNestedBlockParam: true -ObjCSpaceAfterProperty: false -ObjCSpaceBeforeProtocolList: true -PackConstructorInitializers: BinPack -PenaltyBreakAssignment: 2 -PenaltyBreakBeforeFirstCallParameter: 19 -PenaltyBreakComment: 300 -PenaltyBreakFirstLessLess: 120 -PenaltyBreakOpenParenthesis: 0 -PenaltyBreakScopeResolution: 500 -PenaltyBreakString: 1000 -PenaltyBreakTemplateDeclaration: 10 -PenaltyExcessCharacter: 1000000 -PenaltyIndentedWhitespace: 0 -PenaltyReturnTypeOnItsOwnLine: 60 -PointerAlignment: Right -PPIndentWidth: -1 -QualifierAlignment: Leave -ReferenceAlignment: Pointer -ReflowComments: true -RemoveBracesLLVM: false -RemoveParentheses: Leave -RemoveSemicolon: false -RequiresClausePosition: OwnLine -RequiresExpressionIndentation: OuterScope -SeparateDefinitionBlocks: Leave -ShortNamespaceLines: 1 -SkipMacroDefinitionBody: false -SortIncludes: CaseSensitive -SortJavaStaticImport: Before -SortUsingDeclarations: LexicographicNumeric -SpaceAfterCStyleCast: false -SpaceAfterLogicalNot: false -SpaceAfterTemplateKeyword: true -SpaceAroundPointerQualifiers: Default -SpaceBeforeAssignmentOperators: true -SpaceBeforeCaseColon: false -SpaceBeforeCpp11BracedList: false -SpaceBeforeCtorInitializerColon: true -SpaceBeforeInheritanceColon: true -SpaceBeforeJsonColon: false -SpaceBeforeParens: ControlStatements -SpaceBeforeParensOptions: - AfterControlStatements: true - AfterForeachMacros: true - AfterFunctionDefinitionName: false - AfterFunctionDeclarationName: false - AfterIfMacros: true - AfterOverloadedOperator: false - AfterPlacementOperator: true - AfterRequiresInClause: false - AfterRequiresInExpression: false - BeforeNonEmptyParentheses: false -SpaceBeforeRangeBasedForLoopColon: true -SpaceBeforeSquareBrackets: false -SpaceInEmptyBlock: false -SpacesBeforeTrailingComments: 1 -SpacesInAngles: Never -SpacesInContainerLiterals: true -SpacesInLineCommentPrefix: - Minimum: 1 - Maximum: -1 -SpacesInParens: Never -SpacesInParensOptions: - ExceptDoubleParentheses: false - InCStyleCasts: false - InConditionalStatements: false - InEmptyParentheses: false - Other: false -SpacesInSquareBrackets: false -Standard: Latest -StatementAttributeLikeMacros: - - Q_EMIT -StatementMacros: - - Q_UNUSED - - QT_REQUIRE_VERSION -TableGenBreakInsideDAGArg: DontBreak -TabWidth: 8 -UseTab: Never -VerilogBreakBetweenInstancePorts: true -WhitespaceSensitiveMacros: - - BOOST_PP_STRINGIZE - - CF_SWIFT_NAME - - NS_SWIFT_NAME - - PP_STRINGIZE - - STRINGIZE -... - +ColumnLimit: 80 +IndentWidth: 4 +UseTab: Never \ No newline at end of file diff --git a/telemetry/.prettierrc b/telemetry/.prettierrc deleted file mode 100644 index 8b8b7b99f..000000000 --- a/telemetry/.prettierrc +++ /dev/null @@ -1,6 +0,0 @@ -{ - "trailingComma": "es5", - "tabWidth": 4, - "semi": false, - "singleQuote": true -} \ No newline at end of file