Uploaded image for project: 'Lucene - Core'
  1. Lucene - Core
  2. LUCENE-9564 Format code automatically and enforce it
  3. LUCENE-9570

Review code diffs after automatic formatting and correct problems before it is applied

Details

    • Sub-task
    • Status: Reopened
    • Blocker
    • Resolution: Fixed
    • None
    • 9.0
    • None
    • None
    • New

    Description

      Review and correct all the javadocs before they're messed up by automatic formatting. Apply project-by-project, review diff, correct. Lots of diffs but it should be relatively quick.

      Reviewing diffs manually

      • switch to branch jira/LUCENE-9570 which the PR is based on:
        git remote add dweiss git@github.com:dweiss/lucene-solr.git
        git fetch dweiss
        git checkout jira/LUCENE-9570
        
      • Open gradle/validation/spotless.gradle and locate the project/ package you wish to review. Enable it in spotless.gradle by creating a corresponding switch case block (refer to existing examples), for example:
                  case ":lucene:highlighter":
                    target "src/**"
                    targetExclude "**/resources/**", "**/overview.html"
                    break
        
      • Reformat the code:
        gradlew tidy && git diff -w > /tmp/diff.patch && git status
        
      • Look at what has changed (git status) and review the differences manually (/tmp/diff.patch). If everything looks ok, commit it directly to jira/LUCENE-9570 or make a PR against that branch.
        git commit -am ":lucene:core - src/**/org/apache/lucene/document/**"
        

      Attachments

        Issue Links

          Activity

            People

              dweiss Dawid Weiss
              dweiss Dawid Weiss
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 0.5h
                  0.5h