Skip to content

Updated metadata to 7.5.1 - #12

Merged
aidanbebbington merged 2 commits into
twcclegg:masterfrom
jzelos:master
Aug 6, 2016
Merged

Updated metadata to 7.5.1#12
aidanbebbington merged 2 commits into
twcclegg:masterfrom
jzelos:master

Conversation

@jzelos

@jzelos jzelos commented Aug 3, 2016

Copy link
Copy Markdown

Nunit passed 233 tests and failed 8 both prior and subsequent to updating the metadata files.

I've just updated the XML files and left everything else as is.

@aidanbebbington
aidanbebbington merged commit a0a6522 into twcclegg:master Aug 6, 2016
@aidanbebbington

Copy link
Copy Markdown
Collaborator

Thanks for sorting that out, must do this more regularly, it's up on nuget.com now.

twcclegg added a commit that referenced this pull request Aug 26, 2026
…ineGeocoder

MetadataFilter.cs:
- ComputeComplement's two filter-and-collect loops rewritten with
  .Where() (cs/linq/missed-where, alerts #10/#11).
- ShouldDrop: TryGetValue instead of ContainsKey+indexer, avoiding the
  double dictionary lookup (cs/inefficient-containskey, alert #25).

PhoneNumberOfflineGeocoder.cs: GetCountryNameForNumber's loop wasn't a
pure filter (it early-returns once a *second* valid region turns up),
so a naive .Where().ToList() would lose that short-circuit and
evaluate IsValidNumberForRegion for every remaining region needlessly.
.Where().Take(2) preserves the same lazy stopping point while still
expressing the filter explicitly (cs/linq/missed-where, alert #12).

Left PrefixFileReader.cs's LoadFileNamesFromManifestResources alone
(cs/linq/missed-select, alert #15): it's a multi-step parse with three
early-continue guard clauses and dictionary mutation, not a pure map;
forcing it into .Select() would reduce clarity, not improve it.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants