Skip to content

Add code formatters for Telemetry #12

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open

Conversation

njerig
Copy link
Contributor

@njerig njerig commented Apr 2, 2025

As part of implementation of coding standards, I'd like to add code formatters to this repo for both embedded and frontend work. Embedded uses Google's .clang-format file, and frontend uses the basic .prettierrc file given by prettier on their site.

#!/bin/sh
set -e

HOOK_SOURCE="telemetry/hooks/pre-commit"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I might be blind but I think this is the wrong filepath? The other PR you made had the right one i think

@Bvngee
Copy link
Contributor

Bvngee commented Apr 4, 2025

all the frontend code is in telemetry-vis-software so the prettier stuff can be removed from this pr altogether :p
Also have you tried BasedOnStyle: Google for the clang-format? Should do the same thing iirc (apologies if im wrong, haven't tested). cole also said earlier today we should have IndentWidth: 4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants