Skip to content
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

formatter: fix --verify for multiple files #2286

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

hellux
Copy link

@hellux hellux commented Nov 1, 2024

Attempt to fix #2285.

generalize format_file_check_test.sh to test both formatted and
unformatted files, single or multiple files at a time

test that --verify returns correct return code for each case

(currently fails for multiple files)

remove format_file_check_nochange_test.sh because its test case is also
covered
change state was previously overwritten for each file so the return type
only indicated if last file was formatted correctly
@hellux hellux changed the title Fix --verify for multile files formatter: fix --verify for multile files Nov 1, 2024
@hellux hellux changed the title formatter: fix --verify for multile files formatter: fix --verify for multiple files Nov 11, 2024
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.

formatter: --verify flag exit code based only on last file
1 participant