Skip to content

Commit

Permalink
Improvements after doc team brefing
Browse files Browse the repository at this point in the history
  • Loading branch information
Lucie Dubrunfaut authored and Lucie Dubrunfaut committed Jan 16, 2024
1 parent ad558d8 commit 4eab96e
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 15 deletions.
17 changes: 5 additions & 12 deletions .github/scripts/pod_spell_check.t
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,10 @@ use warnings;
use Test::More;

use Test::Spelling;
use Pod::Wordlist;

add_stopwords(<DATA>);
set_spell_cmd('hunspell -L'); # current preferred
# set_spell_cmd('aspell list');
# set_spell_cmd('spell');
# set_spell_cmd('ispell -l');
my $cmd = has_working_spellchecker;
printf($cmd."\n");
all_pod_files_spelling_ok( $ARGV[0]);
open(FILE, "<", "stopwords.t");
add_stopwords(<FILE>);

Check failure on line 8 in .github/scripts/pod_spell_check.t

View workflow job for this annotation

GitHub Actions / pod-spell-check

readline() on closed filehandle FILE
close(FILE);

__DATA__
SNMP
SSH
set_spell_cmd('hunspell -l');
all_pod_files_spelling_ok( $ARGV[0]);
4 changes: 4 additions & 0 deletions .github/scripts/stopwords.t
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
--force-counters32
OID
SNMP
SSH
4 changes: 2 additions & 2 deletions .github/workflows/spellchecker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,13 @@ jobs:
with:
perl-version: '5.34'
install-modules-with: cpm
install-modules: Test::More Test::Spelling Pod::Wordlist
install-modules: Test::More Test::Spelling

- name: Install librairies
continue-on-error: true
run: |
sudo apt-get update
sudo apt-get install -y hunspell aspell spell ispell
sudo apt-get install -y hunspell
shell: bash

- name: Run spell check
Expand Down
5 changes: 4 additions & 1 deletion src/network/oneaccess/snmp/mode/cpu.pm
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ __END__
=head1 MODE
Check cpu usage (oneaccess-sys-mib).
Check CPU usage (oneaccess-sys-mib).
=over 8
Expand All @@ -98,6 +98,9 @@ Warning threshold in percent.
Critical threshold in percent.
sys cpu
=back
=cut

0 comments on commit 4eab96e

Please sign in to comment.