Skip to content

Commit 4d53bf0

Browse files
committed
Fix CSpell in PR
1 parent 4fc242f commit 4d53bf0

File tree

13 files changed

+46
-40
lines changed

13 files changed

+46
-40
lines changed

cspell.json .cspell.json

+7-2
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,20 @@
99
"retryable", "payloadless", "Subclassing", "BASECLASS", "Millis", "hashcode", "LOGSTREAM", "timepoint",
1010
"Bytebuf", "backbuf", "bitslen", "CLSCTX", "openrequest", "logtag", "stdext", "CPPRTTI", "backbuffer",
1111
"Bodyless", "HTTPGET", "ratelimiter", "Ratelimiter", "STDMETHODCALLTYPE", "CANTSAVE", "OLECHAR", "DISPID",
12-
"UNKNOWNNAME", "DISPPARAMS", "XMLHTTP", "comptr", "Metadataservice",
12+
"UNKNOWNNAME", "DISPPARAMS", "XMLHTTP", "comptr", "Metadataservice", "Streamfn", "HWAVEOUT", "matdesc",
13+
"Presigner", "xindex", "errortype", "waveout", "WAVEOUTCAPSA", "ALLOWSYNC", "WAVEHDR", "MMSYSERR",
14+
"WAVEFORMATEX", "Unprepare",
1315
// AWS general
1416
"Arns", "AMZN", "amzn", "Paulo", "Ningxia", "ISOB", "isob", "AWSXML",
1517
// AWS Signature
1618
"SIGV", "AUTHV",
1719
// CMake
1820
"cmake", "DCMAKE", "AUTORUN", "DEPS", "STREQUAL", "RPATH", "STREQUAL", "DTARGET", "TOOLCHAIN", "DANDROID",
1921
"DBUILD", "DDEBUG","DGIT", "DLEGACY","SYSROOT", "DSTATIC", "BINDIR", "LIBDIR", "INCLUDEDIR", "DHAS",
20-
"PythonInterp",
22+
"PythonInterp", "DWAVE", "Winmm", "DPULSE", "pulseaudio", "MSVC", "NOTFOUND", "libpulse", "COREAUDIO",
23+
"devel", "AUDIOTOOLBOX", "DCORE", "CONCAT", "DNON", "FULLPATCH", "setopt", "CURLOPT", "SSLCERT",
24+
"CROSSCOMPILING", "nullptr", "DWORD", "lpsz", "commoncrypto", "COMMONCRYPTO", "endforeach", "pkgconfig",
25+
"MGMT",
2126
// Compiler and linker
2227
"Wpedantic", "Wextra", "Werror", "xldscope", "Wtype", "Wunused", "RTTI", "ffunction", "fdata", "fsanitize",
2328
"pathconf", "unistd", "umask", "GNUCXX", "libasan", "SUNPRO", "gnustl", "libgnustl", "Wmissing",

.github/workflows/cspell.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,5 @@ jobs:
1717
- name: cspell
1818
run: |
1919
cd aws-sdk-cpp
20-
export CSPELL_OUTPUT=$(sudo cspell --no-summary "**.txt" "src/aws-cpp-sdk-core/**/*.h" "src/aws-cpp-sdk-core/**/*.cpp")
21-
if [ -n "$CSPELL_OUTPUT" ]; then echo "$CSPELL_OUTPUT" && exit 1; fi;
20+
sudo cspell --silent --fail-fast "src/**/*.txt" "*.txt" "src/aws-cpp-sdk-core/**/*.h" "src/aws-cpp-sdk-core/**/*.cpp"
21+
if [ $? -ne 0 ]; then sudo cspell "src/**/*.txt" "*.txt" "src/aws-cpp-sdk-core/**/*.h" "src/aws-cpp-sdk-core/**/*.cpp"; exit 1; fi;

src/aws-cpp-sdk-identity-management/source/auth/CognitoCachingCredentialsProvider.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,9 @@ AWSCredentials CognitoCachingCredentialsProvider::GetAWSCredentials()
3434
{
3535
if (IsTimeExpired(m_expiry.load()))
3636
{
37-
AWS_LOGSTREAM_TRACE(LOG_TAG, "Expiry expired, attempting to aquire lock and refresh credentials.");
37+
AWS_LOGSTREAM_TRACE(LOG_TAG, "Expiry expired, attempting to acquire lock and refresh credentials.");
3838
std::lock_guard<std::mutex> locker(m_credsMutex);
39-
AWS_LOGSTREAM_TRACE(LOG_TAG, "Lock aquired, checking if the expiry is still expired.");
39+
AWS_LOGSTREAM_TRACE(LOG_TAG, "Lock acquired, checking if the expiry is still expired.");
4040
if (IsTimeExpired(m_expiry.load()))
4141
{
4242
AWS_LOGSTREAM_INFO(LOG_TAG, "Expiry expired on cognito credentials attempting to pull new credentials.");

src/aws-cpp-sdk-queues/source/sqs/SQSQueue.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ void SQSQueue::OnGetQueueAttributesOutcomeReceived(const SQSClient*, const GetQu
257257
}
258258
else
259259
{
260-
AWS_LOGSTREAM_TRACE(CLASS_TAG, "GetQueueAttribute successfull.");
260+
AWS_LOGSTREAM_TRACE(CLASS_TAG, "GetQueueAttribute successful.");
261261
auto& queueAttributeSuccessHandler = GetQueueAttributeSuccessEventHandler();
262262

263263
if (queueAttributeSuccessHandler)

src/aws-cpp-sdk-s3-encryption/include/aws/s3-encryption/handlers/DataHandler.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ namespace Aws
4848
virtual Aws::Utils::Crypto::ContentCryptoMaterial ReadContentCryptoMaterial(Aws::S3::Model::GetObjectResult& result) = 0;
4949

5050
/*
51-
Function to json serialize a map contianing pairs of strings.
51+
Function to json serialize a map containing pairs of strings.
5252
*/
5353
const Aws::String SerializeMap(const Aws::Map<Aws::String, Aws::String>& currentMap);
5454

src/aws-cpp-sdk-s3-encryption/include/aws/s3-encryption/modules/CryptoModule.h

+6-5
Original file line numberDiff line numberDiff line change
@@ -98,12 +98,13 @@ namespace Aws
9898
virtual Aws::Utils::CryptoBuffer GetTag(const Aws::S3::Model::GetObjectRequest& request, const std::function < Aws::S3::Model::GetObjectOutcome(const Aws::S3::Model::GetObjectRequest&) >& getObjectFunction) = 0;
9999

100100
/*
101-
* This function checks for any prohibitted actions within each module.
101+
* This function checks for any prohibited actions within each module.
102102
*/
103103
virtual bool DecryptionConditionCheck(const Aws::String& requestRange) = 0;
104104

105105
/*
106-
* This function adjusts the get object request range to specifically get only the body of the content and not any addition content. It also adjusts the range if the a range-get request was specified according to the range for the cipher block.
106+
* This function adjusts the get object request range to specifically get only the body of the content and not any addition content.
107+
* It also adjusts the range if a range-get request was specified according to the range for the cipher block.
107108
*/
108109
virtual std::pair<int64_t, int64_t> AdjustRange(Aws::S3::Model::GetObjectRequest& getObjectRequest, const Aws::S3::Model::HeadObjectResult& headObjectResult) = 0;
109110

@@ -148,7 +149,7 @@ namespace Aws
148149
Aws::Utils::CryptoBuffer GetTag(const Aws::S3::Model::GetObjectRequest& request, const std::function < Aws::S3::Model::GetObjectOutcome(const Aws::S3::Model::GetObjectRequest&) >& getObjectFunction) override;
149150

150151
/*
151-
* Function to check for any prohibitted actions specific to each module for decryption.
152+
* Function to check for any prohibited actions specific to each module for decryption.
152153
*/
153154
virtual bool DecryptionConditionCheck(const Aws::String& requestRange) override;
154155

@@ -192,7 +193,7 @@ namespace Aws
192193
Aws::Utils::CryptoBuffer GetTag(const Aws::S3::Model::GetObjectRequest& request, const std::function < Aws::S3::Model::GetObjectOutcome(const Aws::S3::Model::GetObjectRequest&) >& getObjectFunction) override;
193194

194195
/*
195-
* Function to check for any prohibitted actions specific to each module for decryption.
196+
* Function to check for any prohibited actions specific to each module for decryption.
196197
*/
197198
virtual bool DecryptionConditionCheck(const Aws::String& requestRange) override;
198199

@@ -236,7 +237,7 @@ namespace Aws
236237
Aws::Utils::CryptoBuffer GetTag(const Aws::S3::Model::GetObjectRequest& request, const std::function < Aws::S3::Model::GetObjectOutcome(const Aws::S3::Model::GetObjectRequest&) >& getObjectFunction) override;
237238

238239
/*
239-
* Function to check for any prohibitted actions specific to each module for decryption.
240+
* Function to check for any prohibited actions specific to each module for decryption.
240241
*/
241242
virtual bool DecryptionConditionCheck(const Aws::String& requestRange) override;
242243

src/aws-cpp-sdk-s3-encryption/source/s3-encryption/handlers/MetadataHandler.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,4 +54,4 @@ namespace Aws
5454

5555
}//namespace Handlers
5656
}//namespace S3Encryption
57-
}//nameespace Aws
57+
}//namespace Aws

src/aws-cpp-sdk-text-to-speech/CMakeLists.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ if (PLATFORM_LINUX)
3030
else()
3131
message(WARNING "We've detected that you are building on linux, but the header files for pulseaudio are not available.\
3232
If you are providing your own audio implementation or you will not be using the text-to-speech library, this is fine.\
33-
However, if you are not providing your own implemenation and you want to use text-to-speech, you need to install the dev files for pulseAudio.\
33+
However, if you are not providing your own implementation and you want to use text-to-speech, you need to install the dev files for pulseAudio.\
3434
e.g. apt-get install libpulse-dev or yum install pulseaudio-libs-devel. Currently, no audio implementation will be built into this library.")
3535
endif()
3636
endif()
@@ -47,7 +47,7 @@ if(PLATFORM_APPLE)
4747
else()
4848
message(FATAL "We've detected that you are building on macos, but there is no coreAudio library and pulseAudio library available.\
4949
If you are providing your own audio implementation or you will not be using the text-to-speech library, this is fine.\
50-
However, if you are not providing your own implemenation and you want to use text-to-speech, you need to install the dev files for coreAudio or pulseAudio.\
50+
However, if you are not providing your own implementation and you want to use text-to-speech, you need to install the dev files for coreAudio or pulseAudio.\
5151
e.g. apt-get install libpulse-dev or yum install pulseaudio-libs-devel. Currently, no audio implementation will be built into this library.")
5252
endif()
5353
else()

src/aws-cpp-sdk-text-to-speech/include/aws/text-to-speech/TextToSpeechManager.h

+4-4
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ namespace Aws
7373
OutputDeviceList EnumerateDevices() const;
7474

7575
/**
76-
* Sets the active driver (if there are multiple possbilities), the device to use for that driver, and the
76+
* Sets the active driver (if there are multiple possibilities), the device to use for that driver, and the
7777
* audio format to configure the device for. This format will also be used for calls to the Polly service.
7878
*/
7979
void SetActiveDevice(const std::shared_ptr<PCMOutputDriver>&, const DeviceInfo&, const CapabilityInfo&);
@@ -93,9 +93,9 @@ namespace Aws
9393
TextToSpeechManager(const std::shared_ptr<Polly::PollyClient>& pollyClient,
9494
const std::shared_ptr<PCMOutputDriverFactory>& driverFactory);
9595

96-
void OnPollySynthSpeechOutcomeRecieved(const Polly::PollyClient*, const Polly::Model::SynthesizeSpeechRequest&,
97-
const Polly::Model::SynthesizeSpeechOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) const;
98-
96+
void OnPollySynthSpeechOutcomeReceived(const Polly::PollyClient*, const Polly::Model::SynthesizeSpeechRequest&,
97+
const Polly::Model::SynthesizeSpeechOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) const;
98+
9999
Polly::PollyClient* m_pollyClient;
100100
std::shared_ptr<PCMOutputDriver> m_activeDriver;
101101
Aws::Vector<std::shared_ptr<PCMOutputDriver>> m_drivers;

src/aws-cpp-sdk-text-to-speech/source/text-to-speech/TextToSpeechManager.cpp

+6-6
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ namespace Aws
7878
const Polly::Model::SynthesizeSpeechOutcome& speechOutcome,
7979
const std::shared_ptr<const Aws::Client::AsyncCallerContext>& lambdaContext)
8080
{
81-
self->OnPollySynthSpeechOutcomeRecieved(client, request, speechOutcome, lambdaContext);
81+
self->OnPollySynthSpeechOutcomeReceived(client, request, speechOutcome, lambdaContext);
8282
},
8383
context);
8484
}
@@ -140,17 +140,17 @@ namespace Aws
140140
m_activeVoice = VoiceIdMapper::GetVoiceIdForName(voice);
141141
}
142142

143-
void TextToSpeechManager::OnPollySynthSpeechOutcomeRecieved(const Polly::PollyClient*, const Polly::Model::SynthesizeSpeechRequest& request,
144-
const Polly::Model::SynthesizeSpeechOutcome& outcome, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
143+
void TextToSpeechManager::OnPollySynthSpeechOutcomeReceived(const Polly::PollyClient*, const Polly::Model::SynthesizeSpeechRequest& request,
144+
const Polly::Model::SynthesizeSpeechOutcome& outcome, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
145145
{
146146
bool played(false);
147147

148148
if(outcome.IsSuccess())
149149
{
150150
auto result = const_cast<Polly::Model::SynthesizeSpeechOutcome&>(outcome).GetResultWithOwnership();
151151
auto& stream = result.GetAudioStream();
152-
AWS_LOGSTREAM_TRACE(CLASS_TAG, "Audio retrieved from Polly. " << result.GetContentType() << " with "
153-
<< result.GetRequestCharacters() << " characters syntesized");
152+
AWS_LOGSTREAM_TRACE(CLASS_TAG, "Audio retrieved from Polly. " << result.GetContentType() << " with "
153+
<< result.GetRequestCharacters() << " characters synthesized");
154154

155155
unsigned char buffer[BUFF_SIZE];
156156

@@ -172,7 +172,7 @@ namespace Aws
172172
else
173173
{
174174
AWS_LOGSTREAM_ERROR(CLASS_TAG, "Error while fetching audio from polly. " << outcome.GetError().GetExceptionName() << " "
175-
<< outcome.GetError().GetMessage());
175+
<< outcome.GetError().GetMessage());
176176
}
177177

178178
auto callback = ((const std::shared_ptr<SendTextCompletionHandlerCallbackContext>&)context)->callback;

src/aws-cpp-sdk-transfer/include/aws/transfer/TransferHandle.h

+7-7
Original file line numberDiff line numberDiff line change
@@ -105,11 +105,11 @@ namespace Aws
105105
IN_PROGRESS,
106106
//Operation was canceled. A Canceled operation can still be retried
107107
CANCELED,
108-
//Operation failed, A failed operaton can still be retried.
108+
//Operation failed, A failed operation can still be retried.
109109
FAILED,
110110
//Operation was successful
111111
COMPLETED,
112-
//Operation either failed or was canceled and a user deleted the multi-part upload from S3.
112+
//Operation either failed or was canceled and a user deleted the multipart upload from S3.
113113
ABORTED
114114
};
115115

@@ -215,7 +215,7 @@ namespace Aws
215215
*/
216216
void ChangePartToFailed(const PartPointer& partState);
217217
/**
218-
* Get the parts transactionally, mostly for internal purposes.
218+
* Get all parts using transactions, mostly for internal purposes.
219219
*/
220220
void GetAllPartsTransactional(PartStateMap& queuedParts, PartStateMap& pendingParts,
221221
PartStateMap& failedParts, PartStateMap& completedParts);
@@ -234,7 +234,7 @@ namespace Aws
234234
void Cancel();
235235

236236
/**
237-
* Reset the cancellation status for a retry. This will be done automatically by Transfermanager.
237+
* Reset the cancellation status for a retry. This will be done automatically by Transfer Manager.
238238
*/
239239
void Restart();
240240
/**
@@ -266,8 +266,8 @@ namespace Aws
266266
inline void SetBytesTotalSize(uint64_t value) { m_bytesTotalSize.store(value); }
267267

268268
/**
269-
* Gets the total size of contigious bytes from the file begining that is already transferred, and available to users.
270-
* For multiple-part downloads, it's guaranteed that these bytes are commited to the underlying stream already.
269+
* Gets the total bytes that is already transferred and available to users starting from the beginning of the file.
270+
* For multiple-part downloads, it's guaranteed that these bytes are committed to the underlying stream already.
271271
* For single-part downloads, it's also true since we write() directly to the underlying stream.
272272
* A potential use case is to poll and stream bytes to users as we are still doing multi-part downloading.
273273
*/
@@ -404,7 +404,7 @@ namespace Aws
404404

405405
CreateDownloadStreamCallback m_createDownloadStreamFn;
406406
Aws::IOStream* m_downloadStream;
407-
/* in case cutomer stream is not based off 0 */
407+
/* in case customer stream is not based off 0 */
408408
uint64_t m_downloadStreamBaseOffset;
409409

410410
mutable std::mutex m_downloadStreamLock;

src/aws-cpp-sdk-transfer/include/aws/transfer/TransferManager.h

+3-3
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ namespace Aws
128128
{
129129
public:
130130
/**
131-
* Create a new TransferManager instance intialized with config.
131+
* Create a new TransferManager instance initialized with config.
132132
*/
133133
static std::shared_ptr<TransferManager> Create(const TransferManagerConfiguration& config);
134134

@@ -265,7 +265,7 @@ namespace Aws
265265
const Aws::String& fileName = "");
266266

267267
/**
268-
* Submits the actual task to task schecduler
268+
* Submits the actual task to task scheduler
269269
*/
270270
std::shared_ptr<TransferHandle> SubmitUpload(const std::shared_ptr<TransferHandle>& handle, const std::shared_ptr<Aws::IOStream>& fileStream = nullptr);
271271

@@ -283,7 +283,7 @@ namespace Aws
283283
/**
284284
* Uploads the contents of file, to bucketName/keyName in S3. contentType and metadata will be added to the object. If the object is larger than the configured bufferSize,
285285
* then a multi-part upload will be performed.
286-
* Keeps file to be unopenned until doing actual upload, this is useful for uplodaing directories with many small files (avoid having too many open files, which may exceed system limit)
286+
* Keeps file to be unopened until doing actual upload, this is useful for uploading directories with many small files (avoid having too many open files, which may exceed system limit)
287287
*/
288288
std::shared_ptr<TransferHandle> DoUploadFile(const Aws::String& fileName,
289289
const Aws::String& bucketName,

src/aws-cpp-sdk-transfer/source/transfer/TransferManager.cpp

+4-4
Original file line numberDiff line numberDiff line change
@@ -852,7 +852,7 @@ namespace Aws
852852
handle->SetBytesTotalSize(downloadSize);
853853
handle->SetContentType(headObjectOutcome.GetResult().GetContentType());
854854
handle->SetMetadata(headObjectOutcome.GetResult().GetMetadata());
855-
/* When bucket versioning is susppended, head object will return "null" for unversioned object.
855+
/* When bucket versioning is suspended, head object will return "null" for unversioned object.
856856
* Send following GetObject with "null" as versionId will result in 403 access denied error if your IAM role or policy
857857
* doesn't have GetObjectVersion permission.
858858
*/
@@ -1163,10 +1163,10 @@ namespace Aws
11631163
<< downloadContext->prefix <<" that goes outside local target directory: " << directory);
11641164
continue;
11651165
}
1166-
auto lastDelimter = fileName.find_last_of(Aws::FileSystem::PATH_DELIM);
1167-
if (lastDelimter != std::string::npos)
1166+
auto lastDelimiter = fileName.find_last_of(Aws::FileSystem::PATH_DELIM);
1167+
if (lastDelimiter != std::string::npos)
11681168
{
1169-
Aws::FileSystem::CreateDirectoryIfNotExists(fileName.substr(0, lastDelimter).c_str(), true/*create parent dirs*/);
1169+
Aws::FileSystem::CreateDirectoryIfNotExists(fileName.substr(0, lastDelimiter).c_str(), true/*create parent dirs*/);
11701170
}
11711171
AWS_LOGSTREAM_INFO(CLASS_TAG, "Initiating download of key: [" << content.GetKey() <<
11721172
"] in bucket: [" << directory << "] to destination file: [" << fileName << "]");

0 commit comments

Comments
 (0)