Skip to content

Commit 24e293e

Browse files
authored
chore: update typos to 1.24.1 (googleapis#14671)
1 parent e1055a0 commit 24e293e

File tree

8 files changed

+19
-15
lines changed

8 files changed

+19
-15
lines changed

.typos.toml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ extend-exclude = [
1111
"protos/google/cloud/bigquery/*/*/*.proto",
1212
"google/cloud/compute/*/*/*.h",
1313
# Truncates strings, which might not form valid words.
14+
"google/cloud/bigquery/v2/minimal/internal/job_request_test.cc",
1415
"google/cloud/internal/debug_string_protobuf_test.cc",
1516
# Testing input file
1617
"google/cloud/testing_util/rest_testing_large_json.json",
@@ -26,6 +27,7 @@ extend-exclude = [
2627
"google/cloud/cloudbuild/v2/repository_manager_client.h",
2728
"google/cloud/managedidentities/v1/managed_identities_client.h",
2829
"google/cloud/monitoring/v3/uptime_check_client.h",
30+
"google/cloud/networkconnectivity/v1/policy_based_routing_client.h",
2931
"google/cloud/rapidmigrationassessment/v1/rapid_migration_assessment_client.h",
3032
"google/cloud/resourcemanager/v3/projects_client.h",
3133
# The tool complains about `FIELDs` :shrug:
@@ -34,10 +36,11 @@ extend-exclude = [
3436
# keyfiles (or private keys) and contain character sequences that almost
3537
# look like words.
3638
"ci/etc/invalidated-keyfile.json",
37-
"google/cloud/internal/rest_client_integration_test.cc",
39+
"google/cloud/internal/curl_rest_client_integration_test.cc",
3840
"google/cloud/internal/grpc_service_account_authentication_test.cc",
3941
"google/cloud/internal/oauth2_google_credentials_test.cc",
4042
"google/cloud/internal/oauth2_service_account_credentials_test.cc",
43+
"google/cloud/internal/rest_client_integration_test.cc",
4144
"google/cloud/testing_util/credentials_constants.h",
4245
"google/cloud/storage/client_options_test.cc",
4346
"google/cloud/storage/client_sign_policy_document_test.cc",
@@ -47,6 +50,7 @@ extend-exclude = [
4750
"google/cloud/storage/testing/constants.h",
4851
"google/cloud/storage/tests/unified_credentials_integration_test.cc",
4952
"google/cloud/storage/tools/make_jwt_assertion_for_test_data.py",
53+
"google/cloud/universe_domain_test.cc",
5054
# Input data for DocFX tests. It contains many long hex strings that confuse
5155
# the spell checker.
5256
"docfx/testing/inputs.cc",

ci/cloudbuild/dockerfiles/checkers.Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ RUN dnf makecache && \
3535
python-pip \
3636
ShellCheck
3737

38-
RUN cargo install typos-cli --version 1.16.1 --root /usr/local
38+
RUN cargo install typos-cli --version 1.24.1 --root /usr/local
3939

4040
RUN curl -L -o /usr/bin/buildifier https://github.com/bazelbuild/buildtools/releases/download/v6.4.0/buildifier-linux-amd64 && \
4141
chmod 755 /usr/bin/buildifier

google/cloud/bigtable/examples/data_filter_snippets.cc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -129,8 +129,8 @@ void FilterLimitCellsPerRow(google::cloud::bigtable::Table table,
129129
(std::move(table));
130130
}
131131

132-
void FilterLimitCellsPerRowOfset(google::cloud::bigtable::Table table,
133-
std::vector<std::string> const&) {
132+
void FilterLimitCellsPerRowOffset(google::cloud::bigtable::Table table,
133+
std::vector<std::string> const&) {
134134
//! [START bigtable_filters_limit_cells_per_row_offset]
135135
namespace cbt = ::google::cloud::bigtable;
136136
using ::google::cloud::StatusOr;
@@ -594,7 +594,7 @@ void RunAll(std::vector<std::string> const& argv) {
594594
FilterLimitCellsPerRow(table, {});
595595
std::cout << "Running FilterLimitCellsPerRowOffset() example [5]"
596596
<< std::endl;
597-
FilterLimitCellsPerRowOfset(table, {});
597+
FilterLimitCellsPerRowOffset(table, {});
598598
std::cout << "Running FilterLimitColFamilyRegex() example [6]" << std::endl;
599599
FilterLimitColFamilyRegex(table, {});
600600
std::cout << "Running FilterLimitColQualifierRegex() example [7]"
@@ -638,7 +638,7 @@ int main(int argc, char* argv[]) try {
638638
MakeCommandEntry("filter-limit-cells-per-row", {},
639639
FilterLimitCellsPerRow),
640640
MakeCommandEntry("filter-limit-cells-per-row-offset", {},
641-
FilterLimitCellsPerRowOfset),
641+
FilterLimitCellsPerRowOffset),
642642
MakeCommandEntry("filters-limit-col-family-regex", {},
643643
FilterLimitColFamilyRegex),
644644
MakeCommandEntry("filters-limit-col-qualifier-regex", {},

google/cloud/bigtable/testing/random_names.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ char const kRandomTableIdRE[] = R"re(^tbl-\d{4}-\d{2}-\d{2}-.*$)re";
2727
// Per google/bigtable/admin/v2/bigtable_table_admin.proto, backup names must
2828
// be between 1 and 50 characters such, [_a-zA-Z0-9][-_.a-zA-Z0-9]*.
2929
auto constexpr kMaxBackupIdLength = 50;
30-
char const kRandomBackupIdRE[] = R"re(^bck-\d{4}-\d{2}-\d{2}-.*$)re";
30+
char const kRandomBackupIdRE[] = R"re(^back-\d{4}-\d{2}-\d{2}-.*$)re";
3131

3232
auto constexpr kMaxClusterIdLength = 30;
3333
char const kRandomClusterIdRE[] = R"re(^cl-\d{4}-\d{2}-\d{2}-.*$)re";
@@ -64,7 +64,7 @@ std::string RandomBackupId(google::cloud::internal::DefaultPRNG& generator,
6464

6565
std::string RandomBackupId(std::chrono::system_clock::time_point tp) {
6666
std::string date = google::cloud::internal::FormatUtcDate(tp);
67-
return "bck-" + date + "-";
67+
return "back-" + date + "-";
6868
}
6969

7070
std::string RandomBackupIdRegex() { return kRandomBackupIdRE; }

google/cloud/internal/invocation_id_generator_test.cc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,10 +59,10 @@ TEST(InvocationIdGenerator, Unique) {
5959
TEST(InvocationIdGenerator, TwoGenerators) {
6060
InvocationIdGenerator a;
6161
InvocationIdGenerator b;
62-
auto aout = GenerateTestIds(a);
63-
auto bout = GenerateTestIds(b);
64-
auto actual = aout;
65-
actual.insert(actual.end(), bout.begin(), bout.end());
62+
auto a_out = GenerateTestIds(a);
63+
auto b_out = GenerateTestIds(b);
64+
auto actual = a_out;
65+
actual.insert(actual.end(), b_out.begin(), b_out.end());
6666
std::sort(actual.begin(), actual.end());
6767
auto f = std::adjacent_find(actual.begin(), actual.end());
6868
EXPECT_TRUE(f == actual.end()) << "Duplicate=" << *f;

google/cloud/internal/rest_request.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_BEGIN
2929
class RestClient;
3030

3131
// This class is a regular type that contains the path, headers, and query
32-
// parameters for use in sending a request to a REST-ful service. It is intended
32+
// parameters for use in sending a request to a RESTful service. It is intended
3333
// to be passed to the appropriate HTTP method on RestClient, along with a
3434
// payload if required.
3535
class RestRequest {

google/cloud/pubsublite/internal/publisher_connection_impl_test.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ class PublisherConnectionImplTest : public ::testing::Test {
5555
}
5656
~PublisherConnectionImplTest() override {
5757
// We must set a final value, or the program aborts when exceptions are
58-
// disabled. Without a final value the promise is "abadoned", that sets
58+
// disabled. Without a final value the promise is "abandoned", that sets
5959
// the future to throw an exception, and with exceptions disabled that is
6060
// a complicated way to call `std::abort()`. In non-test programs, the
6161
// completion queue does this automatically as part of its shutdown.

google/cloud/storage/bucket_metadata_test.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1313,7 +1313,7 @@ TEST(BucketMetadataPatchBuilder, ResetHierarchicalNamespace) {
13131313
auto actual = builder.BuildPatch();
13141314
auto json = nlohmann::json::parse(actual);
13151315
ASSERT_EQ(1U, json.count("hierarchicalNamespace")) << json;
1316-
ASSERT_TRUE(json["hierarhicalNamespace"].is_null()) << json;
1316+
ASSERT_TRUE(json["hierarchicalNamespace"].is_null()) << json;
13171317
}
13181318

13191319
TEST(BucketMetadataPatchBuilder, SetEncryption) {

0 commit comments

Comments
 (0)