|
1 | | -# Configure 'typos' to reduce false positives. |
2 | | -# For more information, see <https://github.com/crate-ci/typos>. |
| 1 | +# *************************************************************** |
| 2 | +# |
| 3 | +# Copyright (C) 2026, Pelican Project, Morgridge Institute for Research |
| 4 | +# |
| 5 | +# Licensed under the Apache License, Version 2.0 (the "License"); you |
| 6 | +# may not use this file except in compliance with the License. You may |
| 7 | +# obtain a copy of the License at |
| 8 | +# |
| 9 | +# http://www.apache.org/licenses/LICENSE-2.0 |
| 10 | +# |
| 11 | +# Unless required by applicable law or agreed to in writing, software |
| 12 | +# distributed under the License is distributed on an "AS IS" BASIS, |
| 13 | +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 14 | +# See the License for the specific language governing permissions and |
| 15 | +# limitations under the License. |
| 16 | +# |
| 17 | +# *************************************************************** |
3 | 18 |
|
| 19 | +# See https://github.com/crate-ci/typos for more information |
4 | 20 | [default] |
5 | | -extend-ignore-identifiers-re = [ |
6 | | - ## Ignore TLAs. Two and three letter acronyms are not worth fixing. |
7 | | - "^[A-Za-z]{2,3}$", |
8 | | - ## Ignore lotman's use of 'ded' for 'dedicated'. |
9 | | - "^ded[A-Z]", |
10 | | - "^[a-z]+Ded", |
11 | | - ## Ignore server_utils's use of 'dne' for 'does not exist'. |
12 | | - "_dne$", |
| 21 | +extend-ignore-words-re = [ |
| 22 | + # Two- and three-letter "words" are common in code |
| 23 | + "^[[:alpha:]]{2,3}$", |
13 | 24 | ] |
14 | 25 |
|
15 | 26 | [default.extend-identifiers] |
16 | | -## The 'cipher' library uses "Encrypter"; 'typos' prefers "Encryptor". |
17 | | -NewCFBEncrypter = "NewCFBEncrypter" |
18 | | -## HTCondor's daemon names follow the usual "{word} + 'd'" convention. |
19 | | -StartdAttrs = "StartdAttrs" |
| 27 | +# HTCondor's daemon names follow the usual "{word} + 'd'" convention |
20 | 28 | condor_startd = "condor_startd" |
21 | | -STARTD = "STARTD" |
22 | 29 | Startd = "Startd" |
| 30 | +STARTD = "STARTD" |
| 31 | +StartdAttrs = "StartdAttrs" |
23 | 32 |
|
24 | | -[files] |
25 | | -extend-exclude = [ |
26 | | - ## Ignore configuration files and the like. |
27 | | - "go.mod", |
28 | | - "xrootd/resources/osdf-authfile", |
29 | | - ## Ignore this script because of its inline certificates. |
30 | | - "github_scripts/osx_install.sh", |
| 33 | +[type.xrootd-metrics] |
| 34 | +extend-glob = ["xrootd_metrics.go"] |
| 35 | +extend-ignore-words-re = [ |
| 36 | + # xrootd_metrics.go uses 'toal' as part of XRootD metric field names |
| 37 | + "toal", |
31 | 38 | ] |
0 commit comments