Skip to main content

conscrypt-formatting

Automatically formats C++, Java, and C source files in the Conscrypt directory using a project-specific formatting tool. Use when you have modified any C++, Java, or C files under `third_party/java/conscrypt/main_src/` and need to ensure they comply with project style before committing or submitting. Don't use for general Google3 formatting (use the standard `g4 fix` or `hg fix` instead unless working in Conscrypt).

소스 정보

저장소
google/conscrypt
최근 소스 활동
2026년 7월 2일 14:27
감지된 SKILL.md 언어
영어
스타
1,412
포크
330

설치 방법

기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.

소스 파일 검토

설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.

SKILL.md 표시 중

SKILL.md
소스 지침 · 읽기 전용 미리보기
name
conscrypt-formatting
description
Automatically formats C++, Java, and C source files in the Conscrypt directory using a project-specific formatting tool. Use when you have modified any C++, Java, or C files under `third_party/java/conscrypt/main_src/` and need to ensure they comply with project style before committing or submitting. Don't use for general Google3 formatting (use the standard `g4 fix` or `hg fix` instead unless working in Conscrypt).
# Conscrypt Formatting When modifying C++, C, or Java files in the Conscrypt project, you **MUST** run the project's custom formatting script. The standard `g4 fix` or global formatters are not sufficient as Conscrypt uses a specific configuration. ## Critical Rules 1. **Run after modifications**: Always run the formatter *after* making any changes to `.java`, `.cc`, `.h`, `.cpp`, or `.c` files in Conscrypt, and *before* creating a CL, uploading, or submitting. 2. **Files must be opened**: The formatting script only processes files that are currently **opened for edit** in your VCS (e.g., via `g4 edit`, `hg edit`, etc.). Ensure your modified files are opened before running the script. ## How to Format Run the Python script located in the Conscrypt root directory: ```bash python3 third_party/java/conscrypt/main_src/fix_format.py ```
GitHub에서 보기