Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 15896f0

Browse files
committedMay 17, 2024··
m
1 parent cadd16f commit 15896f0

File tree

3 files changed

+8
-6
lines changed

3 files changed

+8
-6
lines changed
 

‎.github/workflows/library_format.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ jobs:
3737

3838
- name: Check format of Java code et al
3939
run: |
40-
make setup_prettier
4140
make format_java_misc-check
4241
4342
- name: Check format of Dafny code

‎CONTRIBUTING.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,10 @@ To send us a pull request, please:
3131
1. Fork the repository.
3232
2. Modify the source; please focus on the specific change you are contributing. If you also reformat all the code, it will be hard for us to focus on your change.
3333
3. Ensure local tests pass.
34-
4. Commit to your fork using clear commit messages.
35-
5. Send us a pull request, answering any default questions in the pull request interface.
36-
6. Pay attention to any automated CI failures reported in the pull request, and stay involved in the conversation.
34+
4. Format the code. From the top level, run `make format_all`
35+
5. Commit to your fork using clear commit messages.
36+
6. Send us a pull request, answering any default questions in the pull request interface.
37+
7. Pay attention to any automated CI failures reported in the pull request, and stay involved in the conversation.
3738

3839
GitHub provides additional document on [forking a repository](https://help.github.com/articles/fork-a-repo/) and
3940
[creating a pull request](https://help.github.com/articles/creating-a-pull-request/).

‎Makefile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ duvet_report:
2222
--source-pattern "DynamoDbEncryption/runtimes/java/src/main/java/**/*.java" \
2323
--html specification_compliance_report.html
2424

25+
format_all: format_dafny format_net format_java_misc
26+
2527
format_dafny:
2628
$(foreach PROJECT, $(PROJECTS), \
2729
$(MAKE) -C $(PROJECT) format_dafny && \
@@ -42,10 +44,10 @@ format_net-check:
4244
$(MAKE) -C $(PROJECT) format_net-check && \
4345
) true
4446

45-
format_java_misc:
47+
format_java_misc: setup_prettier
4648
npx prettier --plugin=prettier-plugin-java . --write
4749

48-
format_java_misc-check:
50+
format_java_misc-check: setup_prettier
4951
npx prettier --plugin=prettier-plugin-java . --check
5052

5153
setup_prettier:

0 commit comments

Comments
 (0)
Please sign in to comment.