lucenenet icon indicating copy to clipboard operation
lucenenet copied to clipboard

The parameter name 'xxx' is not declared in the argument list.

Open nikcio opened this issue 3 years ago • 0 comments

Mentioned in #648

Issues found: https://sonarcloud.io/project/issues?resolved=false&rules=csharpsquid%3AS3928&id=apache_lucenenet

This is a bug - we need to use the correct parameter name.

For the analysis factories, using the name of a local variable with the same name as the passed in dictionary key is really the best we can do.

NOTE: These factories were meant to be used with Java's Service Provider Interface, which is a service locator that is built-into Java. So, that basically makes them a poor fit for DI methods in .NET. We are considering options for how to deal with these using proper constructor parameters rather than passing in dictionaries and doing a bunch of casting.

nikcio avatar Oct 15 '22 19:10 nikcio