-
Notifications
You must be signed in to change notification settings - Fork 9
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
Add --check option to fmt #71
Comments
@rcmachado I recently started learning Go I can pick this up. 😄 |
@Pradhvan That's great :D Feel free to reach out in case you need anything |
@rcmachado sure. 😄 I am looking into cobra and |
@Pradhvan That's a good starting point. The challenge is to make sure things like whitespaces and new lines are also considered - for our use case, extra whitespaces and new lines would cause the Obviously, if you have other ideas also feel free to experiment them :) |
The
fmt
command formats and normalizes the changelog file.But to check if the file is formatted correctly, we need to run something similar to:
diff -u <(changelog fmt -f CHANGELOG.md) CHANGELOG.md
We can simplify this code to:
Which is useful specially for CI environments.
The text was updated successfully, but these errors were encountered: