# See https://github.com/check-spelling/check-spelling/wiki/Configuration-Examples:-patterns # Automatically suggested patterns # hit-count: 5753 file-count: 170 # hex runs \b[0-9a-fA-F]{16,}\b # hit-count: 5370 file-count: 70 # sha-... -- uses a fancy capture (['"]|")[0-9a-f]{40,}\g{-1} # hit-count: 2011 file-count: 538 # https/http/file urls (?:\b(?:https?|ftp|file)://)[-A-Za-z0-9+&@#/%?=~_|!:,.;]+[-A-Za-z0-9+&@#/%=~_|] # hit-count: 936 file-count: 350 # GitHub SHAs (markdown) (?:\[`?[0-9a-f]+`?\]\(https:/|)/(?:www\.|)github\.com(?:/[^/\s"]+){2,}(?:/[^/\s")]+)(?:[0-9a-f]+(?:[-0-9a-zA-Z/#.]*|)\b|) # hit-count: 302 file-count: 82 # version suffix v# (?:(?<=[A-Z]{2})V|(?<=[a-z]{2}|[A-Z]{2})v)\d+(?:\b|(?=[a-zA-Z_])) # hit-count: 176 file-count: 21 # hex digits including css/html color classes: (?:\\[xX])[0-9a-fA-F]{2}\b (?:0[xX])[0-9_a-fA-FgGrR]*?[a-fA-FgGrR]{2,}[0-9_a-fA-FgGrR]*(?:[uUlL]{0,3}|u\d+)\b (?:\\u|[uU]\+|#x?|\%23)[0-9_a-fA-FgGrR]*?[a-fA-FgGrR]{2,}[0-9_a-fA-FgGrR]*(?:[uUlL]{0,3}|u\d+)\b # hit-count: 152 file-count: 2 # ANSI color codes (?:\\(?:u00|x)1[Bb]|\x1b|\\u\{1[Bb]\})\[\d+(?:;\d+|)m # hit-count: 141 file-count: 23 # Non-English [a-zA-Z]*[ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖØÙÚÛÜÝßàáâãäåæçèéêëìíîïðñòóôõöøùúûüýÿĀāŁłŃńŅņŒœŚśŠšŜŝŸŽžź][a-zA-Z]{3}[a-zA-ZÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖØÙÚÛÜÝßàáâãäåæçèéêëìíîïðñòóôõöøùúûüýÿĀāŁłŃńŅņŒœŚśŠšŜŝŸŽžź]*|[a-zA-Z]{3,}[ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖØÙÚÛÜÝßàáâãäåæçèéêëìíîïðñòóôõöøùúûüýÿĀāŁłŃńŅņŒœŚśŠšŜŝŸŽžź]|[ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖØÙÚÛÜÝßàáâãäåæçèéêëìíîïðñòóôõöøùúûüýÿĀāŁłŃńŅņŒœŚśŠšŜŝŸŽžź][a-zA-Z]{3,} # hit-count: 115 file-count: 53 # IPv6 \b(?:[0-9a-fA-F]{0,4}:){3,7}[0-9a-fA-F]{0,4}\b # hit-count: 78 file-count: 23 # URL escaped characters \%[0-9A-F][A-F] \%2b(?=[a-z]{2,}) # hit-count: 66 file-count: 12 # IServiceProvider \bI(?=(?:[A-Z][a-z]{2,})+\b) # hit-count: 64 file-count: 24 # uuid: \b[0-9a-fA-F]{8}-(?:[0-9a-fA-F]{4}-){3}[0-9a-fA-F]{12}\b # hit-count: 36 file-count: 36 # set arguments \bset(?:\s+-[abefimouxE]{1,2})*\s+-[abefimouxE]{3,}(?:\s+-[abefimouxE]+)* # hit-count: 27 file-count: 14 # tar arguments \b(?:\\n|)g?tar(?:\.exe|)(?:(?:\s+--[-a-zA-Z]+|\s+-[a-zA-Z]+|\s[ABGJMOPRSUWZacdfh-pr-xz]+\b)(?:=[^ ]*|))+ # hit-count: 16 file-count: 5 # curl arguments \b(?:\\n|)curl(?:\s+-[a-zA-Z]{1,2}\b)*(?:\s+-[a-zA-Z]{3,})(?:\s+-[a-zA-Z]+)* # hit-count: 15 file-count: 6 # Compiler flags (?:^|[\t,>"'`=(])-[D](?=[A-Z]{2,}|[A-Z][a-z]|[a-z]{2,}) (?:^|[\t ,>"'`=(])-[XL](?=[A-Z]{2,}|[A-Z][a-z]|[a-z]{2,}) [^-\\|a-zA-Z0-9]-C(?!lass)(?=[a-z]{3,}) # hit-count: 15 file-count: 2 # AWS VPC vpc-\w+ # hit-count: 10 file-count: 6 # Python stringprefix / binaryprefix # Note that there's a high false positive rate, remove the `?=` and search for the regex to see if the matches seem like reasonable strings (?]*>|[^<]*)\s*$ # Autogenerated revert commit message ^This reverts commit [0-9a-f]{40}\.$ # ignore long runs of a single character: \b([A-Za-z])\g{-1}{3,}\b # ignore comment in package-msi.sh [#].*custom\.a28ecdc.* # ignore specific user:password string containing special chars for unit testing user:P@ssw0rd # Ignore base64 encoded values in Prometheus Pushgateway URL paths /.+@base64/.+ # Ignore base64 encoded values in VRL examples (requires padding to avoid false positives) "[A-Za-z0-9+\/]*==" # ignore uuid_from_friendly_id argument uuid_from_friendly_id!\(".*"\) # Ignore punycode \bxn--[-0-9a-z]+ # GitHub username regex derived from https://github.com/shinnn/github-username-regex # [a-z\d](?:[a-z\d]|-(?=[a-z\d])){0,38} # authors array in .md files (?i)^authors: \["[a-z\d](?:[a-z\d]|-(?=[a-z\d])){0,38}"(?:, "[a-z\d](?:[a-z\d]|-(?=[a-z\d])){0,38}")*\]$ # changelog.d fragment authors line (?i)^authors:(?: [a-z\d](?:[a-z\d]|-(?=[a-z\d])){0,38})+$ # VRL release authors (embedded in releases/*.cue files) (?i)^\s*authors:(?: [a-z\d](?:[a-z\d]|-(?=[a-z\d])){0,38})+ \(https://github\.com/vectordotdev/vrl/pull/\d+\)$ # Release authors (embedded in releases/*.cue files) # Allow "contributors:" lines with one or more GitHub usernames in a JSON-style array (?i)^\s*contributors: \["[a-z\d](?:[a-z\d]|-(?=[a-z\d])){0,38}"(?:, "[a-z\d](?:[a-z\d]|-(?=[a-z\d])){0,38}")*\]$