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

Ignore case in checkstyle TODO rule #1456

Merged
merged 2 commits into from
Jul 24, 2020
Merged

Ignore case in checkstyle TODO rule #1456

merged 2 commits into from
Jul 24, 2020

Conversation

jackwickham
Copy link
Contributor

@jackwickham jackwickham commented Jul 21, 2020

Before this PR

TODO comments of the form // TODO: something are disallowed, but the rule is case sensitive so // todo: something doesn't get caught.

After this PR

==COMMIT_MSG==
Make TODO checkstyle rule case insensitive
==COMMIT_MSG==

I found 19 results in our product repos that would be blocked by this change based on a simple (incomplete) regex.

An alternative approach would be to leave it case sensitive and add a separate rule that disallows lower-case TODO rules, but that would affect more repos.

==MERGE_WHEN_READY==

@changelog-app
Copy link

changelog-app bot commented Jul 21, 2020

Generate changelog in changelog/@unreleased

Type

  • Feature
  • Improvement
  • Fix
  • Break
  • Deprecation
  • Manual task
  • Migration

Description

Make TODO checkstyle rule case insensitive

Check the box to generate changelog(s)

  • Generate changelog entry

@policy-bot policy-bot bot requested a review from dansanduleac July 21, 2020 13:09
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.

2 participants