Validate/dry-run mode
See original GitHub issueMatching google-java-format’s google/google-java-format/issues/105 and google/google-java-format/pull/106 - it would be nice to have a dry-run mode that would show which files would be changed. Context: a CI task checking that the files are properly formatted.
google-java-format does this with two command line switches:
--dry-run
or -n
Prints the paths of the files whose contents would change if the formatter were run normally.
--set-exit-if-changed
Return exit code 1 if there are any formatting changes.
Issue Analytics
- State:
- Created 2 years ago
- Reactions:2
- Comments:6 (4 by maintainers)
Top Results From Across the Web
Using Dry-Run Upgrade Mode to Check ... - Oracle Help Center
Use dry-run upgrade mode of Oracle Grid Infrastructure installation wizard, gridSetup.sh, to check readiness for Oracle Clusterware upgrades.
Read more >Apex Data Loader: "Dry Run" test mode | IdeaExchange
When running an Insert, Update, or Upsert it would be nice to be able to run the batch but not actually have it...
Read more >Validate/dry-run mode · Issue #212 · facebook/ktfmt - GitHub
Context: a CI task checking that the files are properly formatted. ... Prints the paths of the files whose contents would change if...
Read more >PERFORMING A DRY RUN OF TEST SCRIPTS ... - Dataworks
The most common approach to doing a Dry Run is when the software tester has all the test scripts written and in place...
Read more >Enable dry-run mode | Binary Authorization - Google Cloud
When you enable dry-run mode, Binary Authorization allows all container images to be deployed, even if those images violate the Binary Authorization policy....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
As a side note, ktfmt-gradle will also benefit form this. Currently I had to manually diff the ktfmt output with the original source file to understand if there was a violation or not (in order to support a
ktfmtCheck
task).This is now fixed in main, will release a new version on Monday or Tuesday.