-
Notifications
You must be signed in to change notification settings - Fork 768
SOLR-14920: Spotless formatting for core - test only #711
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
Conversation
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.
First 100 findings :D reviewed about ~25% of the files but less than 25% of the lines changed (I skipped files with >1000 lines changed to start).
solr/core/src/test/org/apache/solr/TestHighlightDedupGrouping.java
Outdated
Show resolved
Hide resolved
solr/core/src/test/org/apache/solr/TestHighlightDedupGrouping.java
Outdated
Show resolved
Hide resolved
solr/core/src/test/org/apache/solr/core/SolrCoreCheckLockOnStartupTest.java
Outdated
Show resolved
Hide resolved
solr/core/src/test/org/apache/solr/handler/AnalysisRequestHandlerTestBase.java
Outdated
Show resolved
Hide resolved
solr/core/src/test/org/apache/solr/handler/TestRestoreCore.java
Outdated
Show resolved
Hide resolved
solr/core/src/test/org/apache/solr/handler/TestSystemCollAutoCreate.java
Outdated
Show resolved
Hide resolved
solr/core/src/test/org/apache/solr/handler/admin/ShowFileRequestHandlerTest.java
Outdated
Show resolved
Hide resolved
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.
Almost halfway through
solr/core/src/test/org/apache/solr/TestDistributedGrouping.java
Outdated
Show resolved
Hide resolved
solr/core/src/test/org/apache/solr/TestDistributedGrouping.java
Outdated
Show resolved
Hide resolved
solr/core/src/test/org/apache/solr/rest/schema/TestSchemaResource.java
Outdated
Show resolved
Hide resolved
solr/core/src/test/org/apache/solr/rest/schema/TestSchemaResource.java
Outdated
Show resolved
Hide resolved
solr/core/src/test/org/apache/solr/rest/schema/analysis/TestManagedStopFilterFactory.java
Outdated
Show resolved
Hide resolved
solr/core/src/test/org/apache/solr/schema/BooleanFieldTest.java
Outdated
Show resolved
Hide resolved
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.
Almost 100 more comments :) getting there
solr/core/src/test/org/apache/solr/schema/PreAnalyzedFieldTest.java
Outdated
Show resolved
Hide resolved
solr/core/src/test/org/apache/solr/schema/SchemaApiFailureTest.java
Outdated
Show resolved
Hide resolved
solr/core/src/test/org/apache/solr/schema/SpatialRPTFieldTypeTest.java
Outdated
Show resolved
Hide resolved
solr/core/src/test/org/apache/solr/schema/SpatialRPTFieldTypeTest.java
Outdated
Show resolved
Hide resolved
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.
Another chunk of files reviewed
solr/core/src/test/org/apache/solr/handler/component/QueryElevationComponentTest.java
Outdated
Show resolved
Hide resolved
solr/core/src/test/org/apache/solr/handler/export/TestExportWriter.java
Outdated
Show resolved
Hide resolved
solr/core/src/test/org/apache/solr/request/SimpleFacetsTest.java
Outdated
Show resolved
Hide resolved
solr/core/src/test/org/apache/solr/search/facet/TestJsonFacets.java
Outdated
Show resolved
Hide resolved
solr/core/src/test/org/apache/solr/search/facet/TestJsonFacets.java
Outdated
Show resolved
Hide resolved
solr/core/src/test/org/apache/solr/search/facet/TestJsonFacets.java
Outdated
Show resolved
Hide resolved
solr/core/src/test/org/apache/solr/search/facet/TestJsonFacets.java
Outdated
Show resolved
Hide resolved
solr/core/src/test/org/apache/solr/search/facet/TestJsonFacets.java
Outdated
Show resolved
Hide resolved
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.
Final part of first pass review
solr/core/src/test/org/apache/solr/search/join/CrossCollectionJoinQueryTest.java
Outdated
Show resolved
Hide resolved
solr/core/src/test/org/apache/solr/search/mlt/CloudMLTQParserTest.java
Outdated
Show resolved
Hide resolved
solr/core/src/test/org/apache/solr/search/stats/TestDistribIDF.java
Outdated
Show resolved
Hide resolved
solr/core/src/test/org/apache/solr/search/stats/TestDistribIDF.java
Outdated
Show resolved
Hide resolved
solr/core/src/test/org/apache/solr/search/stats/TestDistribIDF.java
Outdated
Show resolved
Hide resolved
solr/core/src/test/org/apache/solr/update/processor/TimeRoutedAliasUpdateProcessorTest.java
Outdated
Show resolved
Hide resolved
solr/core/src/test/org/apache/solr/update/processor/TimeRoutedAliasUpdateProcessorTest.java
Outdated
Show resolved
Hide resolved
solr/core/src/test/org/apache/solr/update/processor/TimeRoutedAliasUpdateProcessorTest.java
Outdated
Show resolved
Hide resolved
solr/core/src/test/org/apache/solr/update/processor/TimeRoutedAliasUpdateProcessorTest.java
Outdated
Show resolved
Hide resolved
solr/core/src/test/org/apache/solr/update/processor/TimeRoutedAliasUpdateProcessorTest.java
Outdated
Show resolved
Hide resolved
a4351d9
to
89b7f83
Compare
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.
+1 thanks Kevin
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.
As before, nothing I found is functionally significant.
I was moving right along doing all the files starting with a particular letter, knocking of 6 or 8 at a time... until I hit the "T"s ;)
There are a number of places where a string with a comment-to-EOL and the
comma for an additional parameter on the next line broke weirdly, e.g.
, "//result/doc[2][str[@name='id'][.='p3s2']]" // 100 (boosted so treated as own group)
, <more code>
becomes
"//result/doc[2][str[@name='id'][.='p3s2']]" // 100 (boosted so treated as own
// group)
,
<more code>
I suspect that changing the original to:
"//result/doc[2][str[@name='id'][.='p3s2']]", // 100 (boosted so treated as own group)
would fix it.
Searching these files: for a space-comma-EOL will show them: " ,$" if you think it's worth it. Actually, searching in IntelliJ will bring them up more easily...
Here's the command I used to find the files below:
find . -name "*.java" | xargs grep " ,$"
Didn't find any in the solrj code using the above. Nit-picky FWIW.
./src/test/org/apache/solr/handler/component/FacetPivotSmallTest.java:
./src/test/org/apache/solr/handler/component/StatsComponentTest.java:
./src/test/org/apache/solr/handler/component/QueryElevationComponentTest.java:
./src/test/org/apache/solr/handler/component/PhrasesIdentificationComponentTest.java:
./src/test/org/apache/solr/response/transform/TestSubQueryTransformer.java:
./src/test/org/apache/solr/update/TestInPlaceUpdatesStandalone.java:
./src/test/org/apache/solr/update/processor/AtomicUpdatesTest.java:
./src/test/org/apache/solr/search/TestExtendedDismaxParser.java:
./src/test/org/apache/solr/search/TestSearchPerf.java:
./src/test/org/apache/solr/search/TestSolrQueryParser.java:
./src/test/org/apache/solr/search/function/SortByFunctionTest.java:
./src/test/org/apache/solr/search/function/TestMinMaxOnMultiValuedField.java:
./src/test/org/apache/solr/search/TestQueryTypes.java:
./src/test/org/apache/solr/search/json/TestJsonRequest.java:
./src/test/org/apache/solr/search/TestCollapseQParserPlugin.java:
./src/test/org/apache/solr/search/TestBlockCollapse.java:
./src/test/org/apache/solr/search/TestPseudoReturnFields.java:
./src/test/org/apache/solr/search/TestTrieFacet.java:
./src/test/org/apache/solr/search/TestMissingGroups.java:
./src/test/org/apache/solr/search/TestSolr4Spatial.java:
./src/test/org/apache/solr/search/TestCustomSort.java:
./src/test/org/apache/solr/search/facet/TestJsonFacets.java:
./src/test/org/apache/solr/schema/TestSortableTextField.java:
./src/test/org/apache/solr/cloud/TestTolerantUpdateProcessorCloud.java:
./src/test/org/apache/solr/CursorPagingTest.java:
./src/test/org/apache/solr/request/SimpleFacetsTest.java:
./src/test/org/apache/solr/request/TestFaceting.java:
./src/test/org/apache/solr/TestGroupingSearch.java:
solr/core/src/test/org/apache/solr/handler/component/DistributedFacetPivotLargeTest.java
Show resolved
Hide resolved
solr/core/src/test/org/apache/solr/handler/component/DistributedFacetPivotSmallTest.java
Show resolved
Hide resolved
solr/core/src/test/org/apache/solr/handler/component/FacetPivotSmallTest.java
Show resolved
Hide resolved
solr/core/src/test/org/apache/solr/search/facet/TestJsonRangeFacets.java
Show resolved
Hide resolved
Thanks @ErickErickson! I am working through your comment fixes here: #720 |
https://issues.apache.org/jira/browse/SOLR-14920
This is for solr core test files only. See PR #705 for non-test files.