fix spelling

This commit is contained in:
hathach
2023-03-17 17:27:34 +07:00
parent f14b4ba30a
commit 25d802532c
23 changed files with 33 additions and 29 deletions

View File

@@ -86,7 +86,7 @@ unless (project_found)
end
end
# Genarate gitkeep in test support path
# Generate gitkeep in test support path
FileUtils.touch(File.join(test_support_path, '.gitkeep'))
# If documentation requested, create a place to dump them and do so

View File

@@ -77,7 +77,7 @@ module Ceedling
# * The gem name must be prefixed with 'ceedling-' followed by the plugin
# name (ex. 'ceedling-bullseye')
#
# * The contents of the plugin must be isntalled into a subdirectory of
# * The contents of the plugin must be installed into a subdirectory of
# the gem with the same name as the plugin (ex. 'bullseye/')
#
# === Arguments

View File

@@ -181,7 +181,7 @@ class PreprocessinatorIncludesHandler
end
# If we found a real file, delete it from the array and return it,
# otherwise return nil. Since nil is falsy this has the effect of making
# find_all return only the annotated filess for which a real file was
# find_all return only the annotated files for which a real file was
# found/deleted
idx ? real_files.delete_at(idx) : nil
end.compact

View File

@@ -9,7 +9,7 @@ rule(/#{PROJECT_TEST_PREPROCESS_FILES_PATH}\/.+/ => [
end
]) do |file|
if (not @ceedling[:configurator].project_use_deep_dependencies)
raise 'ERROR: Ceedling preprocessing rule invoked though neccessary auxiliary dependency support not enabled.'
raise 'ERROR: Ceedling preprocessing rule invoked though necessary auxiliary dependency support not enabled.'
end
@ceedling[:generator].generate_preprocessed_file(TEST_SYM, file.source)
end

View File

@@ -7,7 +7,7 @@ end
##
# Class containing system utility funcions.
# Class containing system utility functions.
class SystemUtils
constructor :system_wrapper

View File

@@ -113,7 +113,7 @@ end
# Add any artifact:include or :source folders to our release & test includes paths so linking and mocking work.
@ceedling[DEPENDENCIES_SYM].add_headers_and_sources()
# Add tasks for building or cleaning ALL depencies
# Add tasks for building or cleaning ALL dependencies
namespace DEPENDENCIES_SYM do
desc "Deploy missing dependencies."
task :deploy => DEPENDENCIES_LIBRARIES.map{|deplib| "#{DEPENDENCIES_SYM}:deploy:#{@ceedling[DEPENDENCIES_SYM].get_name(deplib)}"}

View File

@@ -34,7 +34,7 @@ In the `:plugins` configuration, add `fake_function_framework` to the list of en
- module_generator
- fake_function_framework
```
*Note that you could put the plugin source in some other loaction.
*Note that you could put the plugin source in some other location.
In that case you'd need to add a new path the `:load_paths`.*
## How to use it

View File

@@ -33,7 +33,7 @@
# in order to add common defines:
# 1) remove the trailing [] from the :common: section
# 2) add entries to the :common: section (e.g. :test: has TEST defined)
:commmon: &common_defines []
:common: &common_defines []
:test:
- *common_defines
- TEST

View File

@@ -41,7 +41,7 @@ test_whenThePowerReadingIsLessThan5_thenTheStatusLedIsNotTurnedOn(void)
}
/*
Test that a single function was called with the correct arugment.
Test that a single function was called with the correct argument.
*/
void
test_whenTheVolumeKnobIsMaxed_thenVolumeDisplayIsSetTo11(void)

View File

@@ -23,7 +23,7 @@ class FakeFunctionFramework < Plugin
# all mocks linked into the test.
File.open(arg_hash[:runner_file], 'a') do |f|
f.puts
f.puts "//=======Defintions of FFF variables====="
f.puts "//=======Definitions of FFF variables====="
f.puts %{#include "fff.h"}
f.puts "DEFINE_FFF_GLOBALS;"
end

View File

@@ -138,7 +138,7 @@ class ReportGeneratorReportinator
# Removing trailing ';' after the last report type.
args = args.chomp(";")
# Append a space seperator after the report type.
# Append a space separator after the report type.
args += "\" "
end

View File

@@ -82,7 +82,7 @@ by adding to the `:includes` array. For example:
### Boilerplates
You can specify the actual boilerplate used for each of your files. This is the handy place to
put that corporate copyright notice (or maybe a copyleft notice, if that's your perference?)
put that corporate copyright notice (or maybe a copyleft notice, if that's your preference?)
```
:module_generator:

View File

@@ -119,7 +119,7 @@ class CMockHeaderParser
square_bracket_pair_regex_format = /\{[^\{\}]*\}/ # Regex to match one whole block enclosed by two square brackets
# Convert user provided string patterns to regex
# Use word bounderies before and after the user regex to limit matching to actual word iso part of a word
# Use word boundaries before and after the user regex to limit matching to actual word iso part of a word
@inline_function_patterns.each do |user_format_string|
user_regex = Regexp.new(user_format_string)
word_boundary_before_user_regex = /\b/
@@ -258,7 +258,7 @@ class CMockHeaderParser
source.gsub!(/\s*=\s*['"a-zA-Z0-9_\.]+\s*/, '') # remove default value statements from argument lists
source.gsub!(/^(?:[\w\s]*\W)?typedef\W[^;]*/m, '') # remove typedef statements
source.gsub!(/\)(\w)/, ') \1') # add space between parenthese and alphanumeric
source.gsub!(/\)(\w)/, ') \1') # add space between parentheses and alphanumeric
source.gsub!(/(^|\W+)(?:#{@c_strippables.join('|')})(?=$|\W+)/, '\1') unless @c_strippables.empty? # remove known attributes slated to be stripped
# scan standalone function pointers and remove them, because they can just be ignored

View File

@@ -114,7 +114,7 @@ class UnityTestRunnerGenerator
# @ is not a valid C character, so there should be no clashes with files genuinely containing these markers
substring_subs = { '{' => '@co@', '}' => '@cc@', ';' => '@ss@', '/' => '@fs@' }
substring_re = Regexp.union(substring_subs.keys)
substring_unsubs = substring_subs.invert # the inverse map will be used to fix the strings afterwords
substring_unsubs = substring_subs.invert # the inverse map will be used to fix the strings afterwards
substring_unsubs['@quote@'] = '\\"'
substring_unsubs['@apos@'] = '\\\''
substring_unre = Regexp.union(substring_unsubs.keys)

View File

@@ -13,7 +13,7 @@
#define PROGMEM
#endif
/* If omitted from header, declare overrideable prototypes here so they're ready for use */
/* If omitted from header, declare overridable prototypes here so they're ready for use */
#ifdef UNITY_OMIT_OUTPUT_CHAR_HEADER_DECLARATION
void UNITY_OUTPUT_CHAR(int);
#endif