Skip to content

Commit

Permalink
Consolidate NamedParameters and ParameterName
Browse files Browse the repository at this point in the history
Some of this was split out into http://errorprone.info/bugpattern/ParameterComment.html at this point NamedParameters and ParameterName are the same check.

RELNOTES: Consolidate NamedParameters and ParameterName

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=181392754
  • Loading branch information
cushon authored and eaftan committed Jan 10, 2018
1 parent 9a832c3 commit c215baa
Show file tree
Hide file tree
Showing 5 changed files with 360 additions and 633 deletions.
Expand Up @@ -140,7 +140,7 @@ private void checkArgument(
buildDescription(actual)
.setMessage(
String.format(
"%s does not match parameter name '%s'",
"`%s` does not match formal parameter name `%s`",
match.getText(), formal.getSimpleName()))
.addFix(
SuggestedFix.replace(
Expand Down

This file was deleted.

Expand Up @@ -242,7 +242,6 @@
import com.google.errorprone.bugpatterns.argumentselectiondefects.ArgumentSelectionDefectChecker;
import com.google.errorprone.bugpatterns.argumentselectiondefects.AssertEqualsArgumentOrderChecker;
import com.google.errorprone.bugpatterns.argumentselectiondefects.AutoValueConstructorOrderChecker;
import com.google.errorprone.bugpatterns.argumentselectiondefects.NamedParameterChecker;
import com.google.errorprone.bugpatterns.collectionincompatibletype.CollectionIncompatibleType;
import com.google.errorprone.bugpatterns.collectionincompatibletype.CompatibleWithMisuse;
import com.google.errorprone.bugpatterns.collectionincompatibletype.IncompatibleArgumentType;
Expand Down Expand Up @@ -494,7 +493,6 @@ public static ScannerSupplier errorChecks() {
ModifyCollectionInEnhancedForLoop.class,
MultipleParallelOrSequentialCalls.class,
MutableConstantField.class,
NamedParameterChecker.class,
NarrowingCompoundAssignment.class,
NestedInstanceOfConditions.class,
NonAtomicVolatileUpdate.class,
Expand Down

0 comments on commit c215baa

Please sign in to comment.