Skip to content

Commit d981242

Browse files
authored
fix typos (#260)
Signed-off-by: Richard Russon <[email protected]>
1 parent c8bc974 commit d981242

File tree

30 files changed

+104
-104
lines changed

30 files changed

+104
-104
lines changed

CONTRIBUTING

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ may also work, but some older versions are known not to.
8282

8383
Please execute
8484
make checkstyle MODE=full UPDATE=true
85-
on your code and verify correctness of the reformating (if any) before
85+
on your code and verify correctness of the reformatting (if any) before
8686
submitting a pull request.
8787

8888
Testing:
@@ -124,7 +124,7 @@ makes you think of a small project that you want to tackle: excellent.)
124124
Pull requests which add tests for existing features or which enhance
125125
existing tests are actively encouraged.
126126
The lcov maintainers are painfully aware that the code coverage of the
127-
lcov test suite on the lcov code base is embarassingly low.
127+
lcov test suite on the lcov code base is embarrassingly low.
128128

129129
Note that existing tests and/or test drivers may themselves need to be
130130
modified in order to work correctly on other platforms and with other
@@ -162,4 +162,4 @@ With your Signed-off-by, you certify the rules stated in section
162162

163163
[1] https://github.com/linux-test-project/lcov
164164
[2] https://gcc.gnu.org
165-
[3] https://metacpan.org/dist/Perl-Tidy/view/bin/perltidy
165+
[3] https://metacpan.org/dist/Perl-Tidy/view/bin/perltidy

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ endif
281281

282282
release:
283283
@if [ "$(origin VERSION)" != "command line" ] ; then echo "Please specify new version number, e.g. VERSION=1.16" >&2 ; exit 1 ; fi
284-
@if [ -n "$$(git status --porcelain 2>&1)" ] ; then echo "The repository contains uncommited changes" >&2 ; exit 1 ; fi
284+
@if [ -n "$$(git status --porcelain 2>&1)" ] ; then echo "The repository contains uncommitted changes" >&2 ; exit 1 ; fi
285285
@if [ -n "$$(git tag -l v$(VERSION))" ] ; then echo "A tag for the specified version already exists (v$(VERSION))" >&2 ; exit 1 ; fi
286286
@echo "Preparing release tag for version $(VERSION)"
287287
git checkout master

README

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ Point the web browser of your choice to the resulting index.html file.
203203
$ lcov --directory path/to/my/testcase --capture --output-file app.info
204204

205205
Note that runtime coverage data exists only after the application has
206-
been started and stopped at least once. Otherwise, no data wil be found
206+
been started and stopped at least once. Otherwise, no data will be found
207207
and lcov will abort with an error mentioning that there are no data/.gcda
208208
files.
209209

@@ -334,7 +334,7 @@ New features and capabilities fall into 7 major categories:
334334

335335
Other options are used to focus on or to exclude certain sections
336336
of code, as well as to do regexp replacement of file names - possibly
337-
using case-insensitve comparison.
337+
using case-insensitive comparison.
338338
(Path munging is useful primarily when the build structure does
339339
not exactly match the layout in your revision control system; this
340340
is common in large projects with reusable components.)
@@ -392,7 +392,7 @@ New features and capabilities fall into 7 major categories:
392392
In general, this provides speedup that is nearly linear in the number
393393
of cores.
394394
There is also an option to throttle parallelism to not exceed peak
395-
memory consumption contraints, as well as options to enable simple
395+
memory consumption constraints, as well as options to enable simple
396396
profile data collection - so you can see where time is going and
397397
thus to hint at potential optimizations. The 'spreadsheet.py'
398398
script can be used to view generated profile data.

bin/genhtml

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -802,7 +802,7 @@ sub findOwnerList
802802
# where lineCovData = [missedCount, totalCount]
803803
# branchCovData = [missed, total] or undef if not enabled
804804
# functionCov = [missed, total] or undef if not enabled
805-
# - sorted in decending order number of missed lines
805+
# - sorted in descending order number of missed lines
806806
my ($self, $all) = @_;
807807

808808
my @owners;
@@ -1448,7 +1448,7 @@ sub findOwnerList
14481448
# return [ [owner, lineCovData, branchCovData]] for each owner
14491449
# where lineCovData = [missedCount, totalCount, callback]
14501450
# branchCovData = [missed, total, callback] or undef if not enabled
1451-
# - sorted in decending order number of missed lines
1451+
# - sorted in descending order number of missed lines
14521452
return $self->summary()->findOwnerList($all);
14531453
}
14541454

@@ -1552,7 +1552,7 @@ sub findFileList
15521552
# where lineCovData = [missedCount, totalCount, OwnerDetailCallback]
15531553
# branchCovData = [missed, total, dateDetailCallback]
15541554
# or undef if not enabled
1555-
# - sorted in decending order number of missed lines
1555+
# - sorted in descending order number of missed lines
15561556
my $dirSummary = $self->[1];
15571557
my $owner = $self->[0];
15581558
my @files;
@@ -1677,7 +1677,7 @@ sub findFileList
16771677
# where lineCovData = [missedCount, totalCount, OwnerDetailCallback]
16781678
# branchCovData = [missed, total, dateDetailCallback]
16791679
# or undef if not enabled
1680-
# - sorted in decending order number of missed lines
1680+
# - sorted in descending order number of missed lines
16811681
my $dirSummary = $self->[2];
16821682
my $ageval = $self->[1];
16831683
my @files;
@@ -2075,7 +2075,7 @@ sub new
20752075
# $type in ('insert', 'equal', 'delete')
20762076
my $self = [$type, undef, undef,
20772077
['UNK', undef, undef], # line coverage data
2078-
[], # branch coverge data
2078+
[], # branch coverage data
20792079
[]
20802080
]; # function coverage
20812081
bless $self, $class;
@@ -2200,7 +2200,7 @@ sub _mergeBranchData
22002200

22012201
my $c = $current->getBlock($branchId);
22022202
my $d = $branchData->getBlock($branchId);
2203-
# handle case of inconsisent branch data
2203+
# handle case of inconsistent branch data
22042204
my $nc = scalar(@$c);
22052205
my $nd = scalar(@$d);
22062206
if ($nc != $nd) {
@@ -2487,7 +2487,7 @@ sub _findLineData
24872487
}
24882488
$linedata->lineNo('base', $base_lineNo);
24892489
} else {
2490-
# nothing walks the keylist so a prefix is sufficient to distiguish
2490+
# nothing walks the keylist so a prefix is sufficient to distinguish
24912491
# records that should be summarized but not displayed
24922492
my $dline = "<<<" . $base_lineNo;
24932493
if (!exists($lineDataMap->{$dline})) {
@@ -3355,7 +3355,7 @@ sub _read_udiff
33553355
$key = lc($key) if $lcovutil::case_insensitive;
33563356
if (exists($self->[UNCHANGED]->{$key})) {
33573357
# unchanged entry flag value should be 1
3358-
die("$diff_file:$.: %key already in linemap - marked unchangd"
3358+
die("$diff_file:$.: %key already in linemap - marked unchanged"
33593359
. ($file eq $key ? '' : " (substituted '$file')"))
33603360
unless $self->[UNCHANGED]->{$key};
33613361
lcovutil::ignorable_error($lcovutil::ERROR_FORMAT,
@@ -5408,7 +5408,7 @@ our $current_date = get_date_string(undef);
54085408

54095409
our @info_filenames; # List of .info files to use as data source
54105410
our $header_title; # Title at top of HTML report page (above table)
5411-
our $footer; # String at bootom of HTML report page
5411+
our $footer; # String at bottom of HTML report page
54125412
our $test_title; # Title for output as written to each page header
54135413
our $output_directory; # Name of directory in which to store output
54145414
our @base_filenames; # Optional: names of files containing baseline data
@@ -5423,7 +5423,7 @@ our $show_details; # If set, generate detailed directory view
54235423
our $no_prefix; # If set, do not remove filename prefix
54245424
our $show_tla; # categorize coverage data (or not)
54255425
our $show_functionProportions = 0
5426-
; # show proportion of lines/branches containted in the function whihc are hit
5426+
; # show proportion of lines/branches contained in the function which are hit
54275427
our $show_hitTotalCol; # include the 'hit' or 'missed' total count in tables
54285428
# - this is part of the 'legacy' view
54295429
# - also enabled when full differential categories are used
@@ -5569,7 +5569,7 @@ my %genhtml_options = (
55695569
'synthesize-missing' => \$synthesizeMissingFile,
55705570
# if 'show-owners' is set: generate the owner table
55715571
# if it is passed a value: show all the owners,
5572-
# regardless of whether thay have uncovered code or not
5572+
# regardless of whether they have uncovered code or not
55735573
'show-owners:s' => \$show_ownerBins,
55745574
'show-noncode' => \$show_nonCodeOwners,
55755575
'show-zero-columns' => \$show_zeroTlaColumns,
@@ -5662,7 +5662,7 @@ if ($show_tla &&
56625662
!defined($diff_filename))
56635663
) {
56645664
# no baseline - so not a differential report.
5665-
# modify some settings to gnerate corresponding RTL code.
5665+
# modify some settings to generate corresponding RTL code.
56665666
$use_legacyLabels = 1;
56675667
SummaryInfo::noBaseline();
56685668
} else {
@@ -5907,7 +5907,7 @@ if (0 == $exit_status) {
59075907
if (0 == $exit_status && @SummaryInfo::coverageCriteriaScript) {
59085908
# print the criteria summary to stdout:
59095909
# all criteria fails + any non-empty messages
5910-
# In addtion: print fails to stderr
5910+
# In addition: print fails to stderr
59115911
# This way: Jenkins script can log failure if stderr is not empty
59125912
my $leader = '';
59135913
if ($SummaryInfo::coverageCriteriaStatus != 0) {
@@ -6126,7 +6126,7 @@ sub print_overall_rate($$$$$)
61266126
# Generate a set of HTML pages from contents of .info file INFO_FILENAME.
61276127
# Files will be written to the current directory. If provided, test case
61286128
# descriptions will be read from .tests file TEST_FILENAME and included
6129-
# in ouput.
6129+
# in output.
61306130
#
61316131
# Die on error.
61326132
#
@@ -7181,7 +7181,7 @@ sub write_css_file()
71817181
my $ownerCovHi = "#COLOR_18"; # light green
71827182
my $ownerCovMed = "#COLOR_19"; # light yellow
71837183
my $ownerCovLo = "#COLOR_20"; # lighter red
7184-
# use same background color as file entry unless in hiearchical report
7184+
# use same background color as file entry unless in hierarchical report
71857185
my $directoryBackground = $main::hierarchical ? '#COLOR_18' : '#COLOR_06';
71867186
my $css_data = ($_ = <<"END_OF_CSS")
71877187
/* All views: initial background and text color */
@@ -7857,7 +7857,7 @@ END_OF_CSS
78577857
my $align = $elem eq 'td' ? "right" : "left";
78587858
$css_data .= ($_ = <<"END_OF_SPAN")
78597859
7860-
/* Source code view/table entry backround: format for lines classified as "$title" */
7860+
/* Source code view/table entry background: format for lines classified as "$title" */
78617861
$elem.tla$tla
78627862
{
78637863
text-align: $align;
@@ -7916,7 +7916,7 @@ END_OF_DATE_SPAN
79167916

79177917
print(CSS_HANDLE $css_data);
79187918

7919-
close(CSS_HANDLE) or die("unable to close CSS handel: $!\n");
7919+
close(CSS_HANDLE) or die("unable to close CSS handle: $!\n");
79207920
}
79217921

79227922
#
@@ -8165,7 +8165,7 @@ END_OF_HTML
81658165
END_OF_HTML
81668166
} else {
81678167
my $t = ucfirst($primary_key);
8168-
# a bit of a hack...just subtitute the primary key and related
8168+
# a bit of a hack...just substitute the primary key and related
81698169
# strings into the 'file heading' link - so we display the
81708170
# 'sort' widget
81718171
if ($primary_key eq 'owner' &&

bin/geninfo

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ our %COMPAT_NAME_TO_VALUE = ("off" => $COMPAT_VALUE_OFF,
123123
"on" => $COMPAT_VALUE_ON,
124124
"auto" => $COMPAT_VALUE_AUTO,);
125125

126-
# Compatiblity modes
126+
# Compatibility modes
127127
our $COMPAT_MODE_LIBTOOL = 1 << 0;
128128
our $COMPAT_MODE_HAMMER = 1 << 1;
129129
our $COMPAT_MODE_SPLIT_CRC = 1 << 2;
@@ -719,7 +719,7 @@ OPTIONS
719719
--erase-functions REGEXP Exclude data for functions matching REGEXP
720720
--omit-lines REGEXP Ignore data in lines matching REGEXP
721721
--forget-test-names Merge data for all tests names
722-
--version-script SCRIPTNAME Call script to find revison control version
722+
--version-script SCRIPTNAME Call script to find revision control version
723723
ID of source file
724724
--resolve-script SCRIPTNAME Call script to find source file frpm path
725725
-j, --parallel [N] Use parallel processing with at most N jobs
@@ -1140,7 +1140,7 @@ sub gen_info(@)
11401140
}
11411141
}
11421142
# Need to balance time in child vs. time to merge child data -
1143-
# - if we hav too many children, then they finish and wait in the
1143+
# - if we have too many children, then they finish and wait in the
11441144
# queue to be merged.
11451145
# - if we have too few, then the merge time in child gets long
11461146
# build up in set to 80% of
@@ -2728,7 +2728,7 @@ sub process_intermediate($$$$)
27282728
}
27292729
} else {
27302730
# if .gcda and .gcno files are in the same directory, then simply
2731-
# processs in place - otherwise, link the .gcda and .gcno files
2731+
# process in place - otherwise, link the .gcda and .gcno files
27322732
# into tempdir and run from here
27332733
if (dirname($filename) eq dirname($gcno_file)) {
27342734
# Process data file in place

bin/genpng

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ sub gen_png($$$$$@)
265265
# Define colors
266266
# overview->colorAllocate(red, green, blue)
267267
if ($dark_mode) {
268-
# just reverse foregrond and background
268+
# just reverse foreground and background
269269
# there is probably a better color scheme than this.
270270
$col_plain_text =
271271
$overview->colorAllocate(0xaa, 0xaa, 0xaa); # light grey

bin/lcov

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -501,7 +501,7 @@ OPERATION
501501
data (requires --add-tracefile)
502502
--map-functions List tracefiles with non-zero coverage for
503503
each function (requires --add-tracefile)
504-
--intersect PATTERN Set interection with tracefiles matching
504+
--intersect PATTERN Set intersection with tracefiles matching
505505
glob PATTERN
506506
--subtract PATTERN Set difference with tracefiles matching
507507
glob PATTERN
@@ -542,7 +542,7 @@ OPTIONS
542542
--forget-test-names Merge data for all tests names
543543
--fail-under-lines MIN Exit with a status of 1 if the total line
544544
coverage is less than MIN (summary option)
545-
--version-script SCRIPTNAME Call script to find revison control version
545+
--version-script SCRIPTNAME Call script to find revision control version
546546
ID of source file
547547
--resolve-script SCRIPTNAME Call script to find source file frpm path
548548
-j, --parallel [NUM] Use parallel processing with at most NUM jobs

bin/perl2lcov

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ foreach my $db (@ARGV) {
241241
# However, this doesn't quite work because the truth
242242
# table computed by Devel::Cover is sometimes ordered
243243
# with the dependent clause after the independent
244-
# one - and soemtimes the opposite.
244+
# one - and sometimes the opposite.
245245
# For the moment: punt when we don't grok
246246
foreach my $block (@br) {
247247
my $counts = $block->[0];

example/README

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ and point a web browser into the resulting reports:
33

44
Default view:
55

6-
- Point your brower to
6+
- Point your browser to
77
output/index.html
88

99
Hierarchical view:

example/example_mod.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* example_mod.c
33
*
44
* Identical behaviour to 'example.c' - but with some trivial code changes
5-
* (including this change to commment section) - to create a few differences,
5+
* (including this change to comment section) - to create a few differences,
66
* for differential coverage report example.
77
*
88
*/

lcovrc

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ genhtml_med_limit = 75
5050

5151
# Ignore some errors during geninfo/lcov/genhtml processing - comma-separated
5252
# string. Same as using "--ignore-errors a,b,c" command line option.
53-
# See man pages for list of ignorable messsages
53+
# See man pages for list of ignorable messages
5454
#ignore_errors = empty,mismatch
5555

5656
# Stop emitting message after this number have been printed
@@ -76,7 +76,7 @@ max_message_count = 100
7676
# (comma-separated list)
7777
#c_file_extensions = h,c,i,C,H,I,cpp,hpp,icc,cc,hh,cxx,hxx
7878

79-
# maxmimum number of lines to look at, when filtering bogus branch expressions
79+
# maximum number of lines to look at, when filtering bogus branch expressions
8080
#filter_lookahead = 5
8181

8282
# if nonzero, bitwise operators '|', '&', '~' indicate conditional expressions
@@ -88,10 +88,10 @@ genhtml_line_field_width = 12
8888
# Width of branch coverage field in source code view
8989
genhtml_branch_field_width = 16
9090

91-
# width of 'owner' field in source code veiw - default is 20
91+
# width of 'owner' field in source code view - default is 20
9292
#genhtml_owner_field_width = 20
9393

94-
# width of 'age' field in source code veiw - default is 5
94+
# width of 'age' field in source code view - default is 5
9595
#genhtml_age_field_width = 5
9696

9797
# Width of overview image (used by --frames option of genhtml)
@@ -233,7 +233,7 @@ genhtml_desc_html=0
233233
# and have attribute '"unexecuted_blocks": true'
234234
#geninfo_unexecuted_blocks = 0
235235

236-
# Specify compatiblity modes (same as --compat option of geninfo).
236+
# Specify compatibility modes (same as --compat option of geninfo).
237237
#geninfo_compat = libtool=on, hammer=auto, split_crc=auto
238238

239239
# Adjust path to source files by removing or changing path components that
@@ -292,7 +292,7 @@ branch_coverage = 0
292292
#genhtml_annotate_script = path_to_my_executable
293293

294294
# specify the annotation popup that will appear if user hovers over source code
295-
# set to empy to elide tooltip
295+
# set to empty to elide tooltip
296296
# Substitutions:
297297
# %d: line number
298298
# %C: commit ID (from annotate callback - see --anotate-script entry in
@@ -309,7 +309,7 @@ branch_coverage = 0
309309
#genhtml_criteria_script = path_to_my_executable
310310

311311
# specify whether you want date and/or owner information passed to your criteria
312-
# callback - in addition to summary information, which is always retuned
312+
# callback - in addition to summary information, which is always returned
313313
#criteria_callback_data = date,owner
314314

315315
# specify when the criteria callback will be executed
@@ -395,7 +395,7 @@ lcov_json_module = auto
395395
# override line default line exclusion regexp
396396
#lcov_excl_line = LCOV_EXCL_LINE
397397

398-
# overide branch exclusion regexp
398+
# override branch exclusion regexp
399399
#lcov_excl_br_line = LCOV_EXCL_BR_LINE
400400

401401
# override exception branch exclusion regexp

0 commit comments

Comments
 (0)