Opened 8 years ago

Closed 8 years ago

Last modified 8 years ago

#6324 closed defect (fixed)

Patch to fix 'occured' & 'occurance' typos

Reported by: Bas Couwenberg Owned by: warmerdam
Priority: normal Milestone: 2.1.0
Component: default Version: 1.11.3
Severity: normal Keywords:
Cc: Kurt Schwehr

Description

The lintian QA tool reported these spelling errors for GDAL 1.11.4 RC1:

  • occured -> occurred
  • occurance -> occurrence

The attached patch fixes the issues, but I've refrained from fixing the typo in variable and method names to not break the ABI.

Attachments (3)

occurred-typo.patch (34.4 KB ) - added by Bas Couwenberg 8 years ago.
occurred-occurrence-trunk.patch (4.9 KB ) - added by Bas Couwenberg 8 years ago.
occurred-typo.patch updated for trunk
occurred-methods-variables-trunk.patch (17.8 KB ) - added by Bas Couwenberg 8 years ago.
Fix occurred typo in methods & variables

Download all attachments as: .zip

Change History (8)

by Bas Couwenberg, 8 years ago

Attachment: occurred-typo.patch added

comment:1 by Even Rouault, 8 years ago

Cc: Kurt Schwehr added

Maybe Kurt wants to check if this is well taken into account into trunk after his many similar fixes. But I don't think we'll patch older branches for just typos.

comment:2 by Bas Couwenberg, 8 years ago

I can check trunk too, because I have similar patches for 2.0.2 RC1.

These should at least be fixed in trunk, were the methods and variables can be changed too.

by Bas Couwenberg, 8 years ago

occurred-typo.patch updated for trunk

by Bas Couwenberg, 8 years ago

Fix occurred typo in methods & variables

comment:3 by Even Rouault, 8 years ago

Milestone: 1.11.42.1.0
Resolution: fixed
Status: newclosed

trunk r33102 "Fix typos for 'occurred'/'ocurrence' (patch by sebastic, #6324)"

Long term, it would be ideal to have those checks added in one of our continuous integration target rather than discovering the issues late in the process. I looked quickly at the lintian doc and it seems to operate only on a package. No way to make it work rather with a source tree for typo checks ?

comment:4 by Bas Couwenberg, 8 years ago

lintian is mostly useful in the context of a Debian package build, although its data files can be used as a basis for other whitelists. QGIS took a similar approach with its chkspelling.sh and spelling.dat.

In general I recommend the codespell utility for use in upstream regression tests and such.

comment:5 by Even Rouault, 8 years ago

Thanks for the suggestion. I've fixed typos using this new script leveraging on codespell

trunk r33131 "Add scripts/fix_typos.sh to identify and fix typos (#6324)"

Not yet integrated in C.I

Note: See TracTickets for help on using tickets.