Uploaded image for project: 'WiredTiger'
  1. WiredTiger
  2. WT-8735

Improve the check for paired typo

    • Type: Icon: Improvement Improvement
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Labels:

      Summary
      It would be great to improve how we find paired typos in s_style. The current command is:

      egrep -w 'a a|an an|and and|are are|be be|by by|for for|from from|if if|in in[^-]|is is|it it|of of|the the|this this|to to|was was|were were|when when|with with|a an|an a|a the|the a' $f > $t 

      Motivation

      • Does this affect any team outside of WT?
        No
      • Is this issue urgent?
        No

      Acceptance Criteria (Definition of Done)
      A better/cleaner way to find paired typos is implemented.

      Suggested Solution
      Using Regex or anything else that is suitable for this exercise, we could check for two consecutive words that are the same but separated by a space, a dash, etc.

            Assignee:
            backlog-server-storage-engines [DO NOT USE] Backlog - Storage Engines Team
            Reporter:
            etienne.petrel@mongodb.com Etienne Petrel
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: