Skip to content

Commit 23c7c2e

Browse files
committed
Fix typos, add CI job to help catch them (#1194)
1 parent a5f51f7 commit 23c7c2e

File tree

22 files changed

+46
-22
lines changed

22 files changed

+46
-22
lines changed

.codespellrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[codespell]
2+
skip = ./tools/astyle,./src/deps,./web/themes,./util/geosop/cxxopts.hpp
3+
ignore-words = ./tools/codespell.ignore

.github/workflows/ci.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -528,13 +528,17 @@ jobs:
528528
set -e
529529
sudo -E apt-get update
530530
sudo -E apt-get -yq --no-install-suggests --no-install-recommends install cppcheck
531+
python3 -m pip install --disable-pip-version-check --user codespell
531532
532533
- name: 'Check Out'
533534
uses: actions/checkout@v4
534535

535536
- name: 'cppcheck'
536537
run: ./tools/cppcheck.sh
537538

539+
- name: codespell
540+
run: codespell
541+
# false-positives can be added to tools/codespell.ignore
538542

539543
cmake-subproject:
540544
name: 'CMake Subproject'

NEWS.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929

3030
- Breaking Changes
3131
- Zero-length linestrings (eg LINESTRING(1 1, 1 1)) are now treated as equivalent to points (POINT(1 1)) in boolean predicates
32-
- CMake 3.15 or later is requried (GH-1143, Mike Taves)
32+
- CMake 3.15 or later is required (GH-1143, Mike Taves)
3333

3434
- Fixes/Improvements:
3535
- WKTReader: Points with all-NaN coordinates are not considered empty anymore (GH-927, Casper van der Wel)
@@ -933,7 +933,7 @@ See 3.7.0 notes
933933
- Added Polygonizer and LineMerger classes.
934934
- python wrapper examples
935935
- General cleanup / warnings removal
936-
- cleaner win32 / older copilers builds
936+
- cleaner win32 / older compilers builds
937937
- Reduced heap allocations
938938
- debian package builder scripts
939939
- reduction of standard C lib headers dependency

include/geos/geom/Geometry.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -720,7 +720,7 @@ class GEOS_DLL Geometry {
720720
* and dissolving the linework.
721721
* - Unioning a set of [Polygons](@ref Polygon) will always
722722
* return a polygonal geometry (unlike Geometry::Union(const Geometry* other) const),
723-
* which may return geometrys of lower dimension if a topology collapse
723+
* which may return geometries of lower dimension if a topology collapse
724724
* occurred.
725725
*
726726
* @return the union geometry

include/geos/geom/Surface.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ class GEOS_DLL Surface : public Geometry {
100100
int
101101
compareToSameClass(const Geometry* g) const override;
102102

103-
// Helper method allowing PolygonImpl to use GeometryFactory without cirular imports
103+
// Helper method allowing PolygonImpl to use GeometryFactory without circular imports
104104
static std::unique_ptr<Geometry> createEmptyRing(const GeometryFactory&);
105105

106106
virtual Curve* getExteriorRing() = 0;

include/geos/io/WKTWriter.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ class GEOS_DLL WKTWriter {
107107
/**
108108
* Generates the WKT for a N-point <code>LineString</code>.
109109
*
110-
* @param seq the sequence to outpout
110+
* @param seq the sequence to output
111111
*
112112
* @return the WKT
113113
*/

include/geos/noding/IteratedNoder.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ class GEOS_DLL IteratedNoder : public Noder { // implements Noder
104104

105105

106106
/** \brief
107-
* Fully nodes a list of {@link SegmentString}s, i.e. peforms noding iteratively
107+
* Fully nodes a list of {@link SegmentString}s, i.e. performs noding iteratively
108108
* until no intersections are found between segments.
109109
*
110110
* Maintains labelling of edges correctly through the noding.

include/geos/operation/overlayng/OverlayUtil.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ class GEOS_DLL OverlayUtil {
6969
* are:
7070
*
7171
* - INTERSECTION: result envelope is the intersection of the input envelopes
72-
* - DIFERENCE: result envelope is the envelope of the A input geometry
72+
* - DIFFERENCE: result envelope is the envelope of the A input geometry
7373
*
7474
* Otherwise, <code>null</code> is returned to indicate full extent.
7575
*/

include/geos/planargraph/DirectedEdge.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ class GEOS_DLL DirectedEdge: public GraphComponent {
8484
* to the given parentEdges vector.
8585
*
8686
* @note Parents are pushed to the parentEdges vector, make sure
87-
* it is empty if index-based corrispondence is important.
87+
* it is empty if index-based correspondence is important.
8888
*/
8989
static void toEdges(std::vector<DirectedEdge*>& dirEdges,
9090
std::vector<Edge*>& parentEdges);

include/geos/vend/json.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5091,7 +5091,7 @@ struct wide_string_input_helper<BaseInputAdapter, 2>
50915091
}
50925092
};
50935093

5094-
// Wraps another input apdater to convert wide character types into individual bytes.
5094+
// Wraps another input adapter to convert wide character types into individual bytes.
50955095
template<typename BaseInputAdapter, typename WideCharType>
50965096
class wide_string_input_adapter
50975097
{

0 commit comments

Comments
 (0)