GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — [core] Fix Checkstyle OperatorWrap in AbstractTokenizer by harsh-kukreja · Pull Request #2423 · pmd/pmd

Conversation

@harsh-kukreja

@harsh-kukreja harsh-kukreja commented Apr 17, 2020

Copy link
Copy Markdown
Contributor

Before submitting a PR, please check that:

  • The PR is submitted against master. The PMD team will merge back to support branches as needed.
  • ./mvnw clean verify passes. This will build and test PMD, execute PMD and checkstyle rules. Check this for more info

PR Description:

As per the discussion in checkstyle/checkstyle#8095 (comment)

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@ghost

ghost commented Apr 17, 2020 •
edited by ghost
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
1 Warning
⚠️ This PR cannot be merged yet.
✅ Good on 'ya.
✅ This changeset introduces 0 new violations, 0 new errors and 0 new configuration errors,
removes 0 violations, 0 errors and 0 configuration errors.
Full report

Generated by 🚫 Danger

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

oowekyala
oowekyala reviewed Apr 17, 2020
View reviewed changes

@oowekyala oowekyala left a comment

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

I had no idea checkstyle was fixing new violations in projects they use for regression tests. This is very welcome.

I just think the fix as presented here is really ugly. It replaces 3 lines with 10 and misplaces the comments. I would expect this to have been formatted so:

        if (!done // ... we didn't find the end of the string
                && loc >= currentLine.length() // ... we have reach the end of
                // the line ( the String is
                // incomplete, for the moment at
                // least)
                && spanMultipleLinesString // ... the language allow multiple
                // line span Strings
                && lineNumber < code.size() - 1 // ... there is still more lines to

I'll fix this when merging

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@oowekyala oowekyala changed the title Java Operator Wrap Checkstyle [core] Fix Checkstyle OperatorWrap in AbstractTokenizer Apr 17, 2020
@harsh-kukreja
Operator Wrap Issue Solved
9c98508
@harsh-kukreja
harsh-kukreja force-pushed the master branch from 2a135cf to 9c98508 Compare April 17, 2020 23:51
@harsh-kukreja

harsh-kukreja commented Apr 17, 2020

Copy link
Copy Markdown
Contributor Author

Done with the changes @oowekyala please review

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

oowekyala added a commit that referenced this pull request Apr 17, 2020
@oowekyala
Update release notes, refs #2423
9caadee
@oowekyala
oowekyala merged commit 9c98508 into pmd:master Apr 17, 2020
@oowekyala

oowekyala commented Apr 17, 2020

Copy link
Copy Markdown
Member

@harsh-kukreja Thanks, this is merged

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@harsh-kukreja

harsh-kukreja commented Apr 17, 2020

Copy link
Copy Markdown
Contributor Author

@oowekyala Welcome

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@harsh-kukreja harsh-kukreja mentioned this pull request Apr 18, 2020
Issue #8018: OperatorWrapCheck no violation if single line comment checkstyle/checkstyle#8095
Closed
@oowekyala

oowekyala commented Apr 18, 2020

Copy link
Copy Markdown
Member

@harsh-kukreja Just a tip: don't force push an open PR unless you know for sure nobody's working on it. I had to start my merge over

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@harsh-kukreja

harsh-kukreja commented Apr 18, 2020

Copy link
Copy Markdown
Contributor Author

Ohh sorry for the trouble @oowekyala i squashed the commit so i had to force push

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@adangel adangel added this to the 6.23.0 milestone Apr 18, 2020
@harsh-kukreja harsh-kukreja mentioned this pull request Apr 27, 2020
[java] Operator Wrap check #2448
Merged
4 tasks done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@oowekyala oowekyala oowekyala left review comments

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

6.23.0

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

3 participants

@harsh-kukreja @oowekyala @adangel
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.