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

Implement --check option #179

Merged
merged 1 commit into from
May 6, 2021

Conversation

carlsmedstad
Copy link
Contributor

@carlsmedstad carlsmedstad commented May 3, 2021

Hey 👋

The functionality is more or less exactly the same as described in the issue. I also included some minor refactoring commits and added a basic .editorconfig. Happy to receive feedback on these changes if they are out of place or considered non-improvements.

Resolves #142.

@carlsmedstad carlsmedstad force-pushed the implement-check-option branch from 426cc6c to 16144a3 Compare May 3, 2021 19:18
@carlsmedstad carlsmedstad changed the title Implement check option Implement --check option May 3, 2021
@Koihik
Copy link
Owner

Koihik commented May 5, 2021

You should rebase all commits into one.

Chose to return 2 when formatting is needed to make this distinct from
actual errors which return 1.

Additional changes:

* Add basic .editorconfig

* Add long-form arg --in-place

* Implement function file_is_usable

  Separates and encapsulates this logic to make the main function a bit
  more terse and readable.

* Replace istream_iterator with istreambuf_iterator

  Tested with both and it seems like the resulting string is the same
  using this. Same case for the removal of the std::noskipws.
@carlsmedstad carlsmedstad force-pushed the implement-check-option branch from 16144a3 to 1c75c92 Compare May 5, 2021 12:44
@carlsmedstad
Copy link
Contributor Author

Sure thing, done :)

@Koihik Koihik merged commit eb05737 into Koihik:master May 6, 2021
@carlsmedstad carlsmedstad deleted the implement-check-option branch May 6, 2021 18:20
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.

Request: --check argument for CI/linting
2 participants