question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Validate/dry-run mode

See original GitHub issue

Matching 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:closed
  • Created 2 years ago
  • Reactions:2
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
cortinicocommented, Apr 24, 2021

it would be nice to have a dry-run mode that would show which files would be changed

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).

1reaction
cgrushkocommented, Oct 2, 2021

This is now fixed in main, will release a new version on Monday or Tuesday.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found