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

Cleanup white noise in Markdown files #2447

Merged

Conversation

pracucci
Copy link
Contributor

@pracucci pracucci commented Apr 10, 2020

What this PR does:
Sometimes we do receive PRs from people which (correctly) configure automatic trailing whitespaces removal in the IDE/text editor (ie. CHANGELOG edits in #2440).

I would suggest to solve this problem once and for all, forcing any PR to have no trailing whitespaces in markdown. In this PR I've added a linter check and a quick way to fix it (make clean-white-noise). I inherited the script from our Thanos friends ❤️ .

/cc @cyriltovena

Which issue(s) this PR fixes:
N/A

Checklist

  • Tests updated
  • Documentation added
  • CHANGELOG.md updated - the order of entries should be [CHANGE], [FEATURE], [ENHANCEMENT], [BUGFIX]

Copy link
Contributor

@pstibrany pstibrany left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good idea!

Copy link
Contributor

@cyriltovena cyriltovena left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good idea !

Copy link
Contributor

@jtlisi jtlisi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Signed-off-by: Marco Pracucci <marco@pracucci.com>
Signed-off-by: Marco Pracucci <marco@pracucci.com>
@pracucci pracucci force-pushed the lint-trailing-whitespaces-in-markdwon branch from c4de6cd to b7a1af4 Compare April 14, 2020 07:29
@pracucci pracucci merged commit ba32254 into cortexproject:master Apr 14, 2020
@pracucci pracucci deleted the lint-trailing-whitespaces-in-markdwon branch April 14, 2020 07:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants