Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-16732

Misc SonarQube findings

    XMLWordPrintableJSON

Details

    • Task
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • main (10.0), 9.3
    • None
    • None

    Description

      I have been running SonarQube against the Solr project and there are some low hanging fruit things that can be addressed

      • String non regex replaceAll with replace
      • indexOf -> contains
      • NBSP in log
      • unindented if statements missing {}
      • Use && instead of & for boolean comparisons
      • Replace "".equals with isEmpty

      Attachments

        Issue Links

          Activity

            People

              krisden Kevin Risden
              krisden Kevin Risden
              Votes:
              0 Vote for this issue
              Watchers:
              3 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 - 40m
                  40m