-
Notifications
You must be signed in to change notification settings - Fork 144
chore: add codespell #2864
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore: add codespell #2864
Conversation
$ pre-commit run codespell --all-files
codespell................................................................Failed
- hook id: codespell
- exit code: 65
c/driver/postgresql/connection.cc:184: constraits ==> constraints
ci/linux-packages/debian/control:171: gir ==> git
ci/linux-packages/debian/control:220: gir ==> git
csharp/src/Drivers/Apache/Hive2/DecimalUtility.cs:172: fron ==> from, front
CHANGELOG.md:350: Inital ==> Initial
CHANGELOG.md:693: consisent ==> consistent
LICENSE.txt:1286: Collet ==> Collect
c/driver/postgresql/copy/postgres_copy_test_common.h:24: genereated ==> generated
csharp/src/Apache.Arrow.Adbc/C/CAdbcConnection.cs:37: unintialized ==> uninitialized
csharp/test/Apache.Arrow.Adbc.Tests/TestBase.cs:62: ouput ==> output
csharp/test/Apache.Arrow.Adbc.Tests/TestBase.cs:124: Ditionary ==> Dictionary
csharp/test/Apache.Arrow.Adbc.Tests/TestBase.cs:198: formated ==> formatted
csharp/test/Apache.Arrow.Adbc.Tests/TestBase.cs:214: formated ==> formatted
csharp/test/Apache.Arrow.Adbc.Tests/TestBase.cs:230: formated ==> formatted
csharp/test/Apache.Arrow.Adbc.Tests/TestBase.cs:307: statment ==> statement
docs/source/python/recipe/flight_sql.rst:22: againt ==> against
rust/core/src/ffi/types.rs:65: unintialized ==> uninitialized
rust/core/src/ffi/types.rs:77: unintialized ==> uninitialized
rust/core/src/ffi/types.rs:89: unintialized ==> uninitialized
rust/core/src/ffi/types.rs:116: unintialized ==> uninitialized
rust/core/src/ffi/types.rs:129: unintialized ==> uninitialized
rust/core/src/ffi/types.rs:133: unintialized ==> uninitialized
rust/core/src/ffi/types.rs:673: transfered ==> transferred
csharp/test/Drivers/Apache/Spark/SparkConnectionTest.cs:48: exeption ==> exception, exemption
csharp/test/Drivers/Apache/Spark/SparkConnectionTest.cs:49: exeption ==> exception, exemption
csharp/test/Drivers/Databricks/DatabricksConnectionTest.cs:55: exeption ==> exception, exemption
csharp/test/Drivers/Databricks/DatabricksConnectionTest.cs:56: exeption ==> exception, exemption
docs/source/driver/snowflake.rst:294: bandwith ==> bandwidth
go/adbc/driver/flightsql/flightsql_statement.go:429: returnes ==> returns
r/adbcsnowflake/README.md:77: ges ==> goes, guess
c/cmake_modules/BuildUtils.cmake:228: thirdparty ==> third party, third-party
c/validation/adbc_validation_util.cc:323: occured ==> occurred
csharp/test/Drivers/Databricks/DateTimeValueTests.cs:42: Timstamp ==> Timestamp
dev/bench/README.md:42: passsword ==> password
rust/driver/snowflake/src/duration.rs:49: eror ==> error
c/driver/postgresql/copy/reader.h:867: chlidren ==> children
csharp/src/Apache.Arrow.Adbc/C/CAdbcDatabase.cs:39: unintialized ==> uninitialized
go/adbc/adbc.go:647: returnes ==> returns
ci/linux-packages/debian/rules:29: gir ==> git
go/adbc/driver/internal/driverbase/connection.go:372: implementor ==> implementer
java/driver/flight-sql/src/test/java/org/apache/arrow/adbc/driver/flightsql/DetailsTest.java:50: AfterAll ==> after all
java/driver/flight-sql/src/test/java/org/apache/arrow/adbc/driver/flightsql/DetailsTest.java:95: AfterAll ==> after all
java/driver/flight-sql/src/test/java/org/apache/arrow/adbc/driver/flightsql/DetailsTest.java:96: afterAll ==> after all
java/driver/flight-sql/src/test/java/org/apache/arrow/adbc/driver/flightsql/GetObjectsTests.java:61: AfterAll ==> after all
java/driver/flight-sql/src/test/java/org/apache/arrow/adbc/driver/flightsql/GetObjectsTests.java:295: AfterAll ==> after all
rust/core/src/lib.rs:56: langages ==> languages
csharp/test/Drivers/Apache/Impala/Resources/impalaconfig.json:8: schem ==> scheme
docs/source/faq.rst:177: tranposing ==> transposing
docs/source/format/specification.rst:248: retrive ==> retrieve
go/adbc/driver/snowflake/driver_test.go:2075: exepected ==> expected
go/adbc/driver/snowflake/driver_test.go:2093: exepected ==> expected
ci/linux-packages/debian/libadbc-glib-dev.install:5: gir ==> git
csharp/src/Apache.Arrow.Adbc/C/CAdbcPartitions.cs:63: unintialized ==> uninitialized
csharp/src/Drivers/Apache/Impala/README.md:68: specifed ==> specified
csharp/src/Drivers/Apache/Impala/README.md:106: standar ==> standard
rust/README.md:51: trough ==> through
.github/workflows/packaging.yml:414: fpr ==> for, far, fps
c/driver/postgresql/copy/writer.h:729: limtiations ==> limitations
ci/linux-packages/debian/libadbc-arrow-glib-dev.install:5: gir ==> git
csharp/src/Drivers/Apache/Hive2/SqlTypeNameParser.cs:35: defintion ==> definition
csharp/src/Drivers/Apache/Hive2/SqlTypeNameParser.cs:140: defintion ==> definition
csharp/src/Drivers/Apache/Hive2/SqlTypeNameParser.cs:153: defintion ==> definition
csharp/src/Drivers/Apache/Hive2/SqlTypeNameParser.cs:490: STUCT ==> STRUCT
csharp/src/Drivers/Apache/Spark/README.md:64: specifed ==> specified
csharp/test/Drivers/Databricks/StatementTests.cs:437: mintues ==> minutes
csharp/test/Drivers/Interop/Snowflake/SnowflakeTestingUtils.cs:169: occured ==> occurred
csharp/test/Drivers/Interop/Snowflake/SnowflakeTestingUtils.cs:169: resouce ==> resource
csharp/src/Apache.Arrow.Adbc/C/CAdbcDriver.cs:40: unintialized ==> uninitialized
csharp/src/Apache.Arrow.Adbc/C/CAdbcDriver.cs:47: unintialized ==> uninitialized
csharp/test/Drivers/Apache/Common/ClientTests.cs:214: timout ==> timeout
csharp/test/Drivers/Apache/Common/DateTimeValueTests.cs:61: Timstamp ==> Timestamp
csharp/test/Drivers/Apache/Common/DateTimeValueTests.cs:83: Timstamp ==> Timestamp
docs/source/driver/postgresql.rst:42: accellerate ==> accelerate
docs/source/driver/postgresql.rst:351: posgresql ==> postgresql
go/adbc/driver/internal/driverbase/rotating_file_writer.go:260: exising ==> existing
go/adbc/driver/internal/driverbase/rotating_file_writer.go:293: lexigraphically ==> lexicographically
go/adbc/driver/snowflake/connection.go:190: hasTables ==> hashtables
go/adbc/driver/snowflake/connection.go:195: hasTables ==> hashtables
go/adbc/driver/snowflake/connection.go:204: hasTables ==> hashtables
.github/workflows/r-extended.yml:92: verions ==> versions
c/cmake_modules/DefineOptions.cmake:90: CHECKIN ==> CHECKING, CHECK IN
c/cmake_modules/DefineOptions.cmake:160: Thirdparty ==> Third party, Third-party
c/driver/postgresql/result_helper.h:113: desctructor ==> destructor
ci/linux-packages/yum/apache-arrow-adbc.spec.in:284: gir ==> git
ci/linux-packages/yum/apache-arrow-adbc.spec.in:333: gir ==> git
csharp/src/Apache.Arrow.Adbc/C/CAdbcStatement.cs:47: unintialized ==> uninitialized
csharp/src/Client/AdbcConnection.cs:45: Intializes ==> Initializes
csharp/src/Client/AdbcConnection.cs:56: Intializes ==> Initializes
docs/source/driver/flight_sql.rst:226: reponse ==> response
go/adbc/driver/snowflake/bulk_ingestion.go:23: flate ==> flat
go/adbc/driver/snowflake/bulk_ingestion.go:65: flate ==> flat
go/adbc/driver/snowflake/bulk_ingestion.go:88: bandwith ==> bandwidth
go/adbc/driver/snowflake/bulk_ingestion.go:285: COPYs ==> copies
go/adbc/driver/snowflake/bulk_ingestion.go:491: propogate ==> propagate
go/adbc/driver/snowflake/bulk_ingestion.go:561: recieved ==> received
go/adbc/driver/snowflake/bulk_ingestion.go:580: COPYs ==> copies
rust/driver/dummy/tests/driver_exporter_dummy.rs:19: trough ==> through
go/adbc/driver/snowflake/statement.go:470: returnes ==> returns
go/adbc/drivermgr/arrow-adbc/adbc.h:305: unintialized ==> uninitialized
go/adbc/drivermgr/arrow-adbc/adbc.h:862: unintialized ==> uninitialized
go/adbc/drivermgr/arrow-adbc/adbc.h:885: unintialized ==> uninitialized
go/adbc/drivermgr/arrow-adbc/adbc.h:923: unintialized ==> uninitialized
go/adbc/drivermgr/arrow-adbc/adbc.h:962: unintialized ==> uninitialized
go/adbc/drivermgr/arrow-adbc/adbc.h:990: unintialized ==> uninitialized
go/adbc/drivermgr/arrow-adbc/adbc.h:994: unintialized ==> uninitialized
go/adbc/ext.go:68: Implementors ==> Implementers
rust/core/src/driver_manager.rs:157: droped ==> dropped
ci/scripts/go_license.sh:19: thirdparty ==> third party, third-party
csharp/src/Apache.Arrow.Adbc/AdbcConnection11.cs:356: statistcs ==> statistics
csharp/src/Drivers/Apache/Hive2/README.md:70: specifed ==> specified
csharp/test/Drivers/Interop/FlightSql/readme.md:36: compatibilty ==> compatibility
csharp/test/Drivers/Interop/FlightSql/readme.md:62: resutls ==> results
go/adbc/driver/bigquery/statement.go:572: Unparseable ==> Unparsable
go/adbc/sqldriver/driver.go:85: re-use ==> reuse
go/adbc/sqldriver/driver.go:117: re-use ==> reuse
python/adbc_driver_bigquery/LICENSE.txt:1286: Collet ==> Collect
c/include/arrow-adbc/adbc.h:305: unintialized ==> uninitialized
c/include/arrow-adbc/adbc.h:862: unintialized ==> uninitialized
c/include/arrow-adbc/adbc.h:885: unintialized ==> uninitialized
c/include/arrow-adbc/adbc.h:923: unintialized ==> uninitialized
c/include/arrow-adbc/adbc.h:962: unintialized ==> uninitialized
c/include/arrow-adbc/adbc.h:990: unintialized ==> uninitialized
c/include/arrow-adbc/adbc.h:994: unintialized ==> uninitialized
csharp/src/Drivers/Apache/Thrift/BitmapUtilities.cs:53: remaing ==> remaining
csharp/test/Drivers/BigQuery/AuthenticationTests.cs:65: behvior ==> behavior
r/adbcdrivermanager/src/options.cc:84: suppported ==> supported
r/adbcdrivermanager/src/options.cc:106: suppported ==> supported
r/adbcdrivermanager/src/options.cc:127: suppported ==> supported
c/cmake_modules/AdbcDefines.cmake:68: CHECKIN ==> CHECKING, CHECK IN
c/driver/postgresql/bind_stream.h:218: Paramter ==> Parameter
go/adbc/driver/internal/driverbase/database.go:61: te ==> the, be, we, to
go/adbc/driver/internal/driverbase/database.go:67: te ==> the, be, we, to
go/adbc/driver/internal/driverbase/database.go:323: te ==> the, be, we, to
go/adbc/driver/internal/driverbase/database.go:324: te ==> the, be, we, to
c/driver/postgresql/postgres_type.h:214: posgresql ==> postgresql
csharp/test/Drivers/Interop/FlightSql/DriverTests.cs:46: caseSenstive ==> case-sensitive
csharp/test/Drivers/Interop/FlightSql/DriverTests.cs:55: caseSenstive ==> case-sensitive
dev/release/verify-release-candidate.sh:950: enviroment ==> environment |
There seems to be a certain effect on typos on the code.
For files under
There are two possible approaches.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It seems that there are useful results in not docs/
directory too. For example:
c/cmake_modules/AdbcDefines.cmake:68: CHECKIN ==> CHECKING, CHECK IN
So I think that maintaining ignore words instead of limiting to docs/
is better.
I will organize this PR in the direction of B. |
Sorry. The example is wrong. It's a false positive result... This is an useful result:
|
70f2bea
to
5d19f78
Compare
Done. I believe the current detections are true positives. Sorted result:
|
6a5de3c
to
9bca6bb
Compare
I noticed these are FPs. I added
|
9bca6bb
to
70c9132
Compare
5cb09b3
to
995b641
Compare
I added
arrow-adbc/csharp/src/Drivers/Databricks/DatabricksStatement.cs Lines 295 to 304 in 4430379
|
be80b20
to
74199a5
Compare
74199a5
to
e064a01
Compare
3642fa3
to
09c1948
Compare
Skipped |
ec7fe48
to
16d2c5e
Compare
I added
Also, I checked the code of codespell. |
16d2c5e
to
cf06a22
Compare
Finally, it's ready! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1
Is this a typo...?
|
I believe this is not a typo. |
It seems that it's appeared as a value of the |
I see... |
Thanks! I will remove
|
cf06a22
to
679ae72
Compare
679ae72
to
94707f3
Compare
Ready! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you!
Welcome! |
Closes #2863