X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;ds=sidebyside;f=find_bad_words.sh;h=03976401775631b63e79a50ce191ce4dee4a910d;hb=31b3bfc6888a4c82b10a69b18ac3454f69b7a923;hp=265e1b37fd39dd11d712933e4e4da9fb436ee464;hpb=aec7d04b5b5219c83fa0518d4e73e9683eb6479a;p=docs.git diff --git a/find_bad_words.sh b/find_bad_words.sh index 265e1b37f..039764017 100755 --- a/find_bad_words.sh +++ b/find_bad_words.sh @@ -1,3 +1,23 @@ -egrep --color -nir --include=*.{adoc,rst} beryllium\|lithium . -egrep --color -nir --include=*.{adoc,rst} open\ ?flow . | grep -v OpenFlow | grep -v openflow: | grep -v \-openflow\- | grep -v openflowplugin | grep -v openflowjava | grep -v Openflow13 | grep -v \_OPENFLOW | grep -v OpenflowNode | grep --color -i OpenFlow -egrep --color -nir --include=*.{adoc,rst} open\ ?daylight . | grep -v OpenDaylight | grep -v \.opendaylight\. | grep -v \/opendaylight | grep -v \=opendaylight | grep --color -i OpenDaylight +#Search for older releases +egrep --color -nir --include=*.rst beryllium\|lithium docs + +#Search for misspellings and miss-capitalizations of OpenFlow +egrep --color -nir --include=*.rst open\ ?flow docs | grep -v OpenFlow | grep -v openflow: | grep -v \-openflow\- | grep -v openflowplugin | grep -v openflowjava | grep -v Openflow13 | grep -v \_OPENFLOW | grep -v OpenflowNode | grep --color -i OpenFlow + +#Search for misspellings and miss-capitalizations of OpenDaylight +egrep --color -nir --include=*.rst open\ ?daylight docs | grep -v OpenDaylight | grep -v \.opendaylight\. | grep -v \/opendaylight | grep -v \=opendaylight | grep --color -i OpenDaylight + +#Search for misspellings and miss-capitalizations of ACL +egrep --color -nir --include=*.rst [^-]acl[^-_\":] docs | grep -v ACL | grep -vi maclearn | grep -vi oracle | grep --color -i acl + +#the ovs[db] search seemed to produce only false positives +#egrep --color -nir --include=*.rst [^-/_\"\']ovs[^-:k_] docs | grep -v OVS | egrep -v ovsdb[:-] | grep --color -i ovs + +#Search for git.opendaylight.org links to the next release as opposed the current release +# Note that past releases are caught above +egrep --color -nir --include=*.rst hb=HEAD docs +egrep --color -nir --include=*.rst hb=master docs + +#Search for links to jenkins.opendaylight.org and logs.opendaylight.org, which are temporary +egrep --color -nir --include=*.rst jenkins\.opendaylight\.org docs +egrep --color -nir --include=*.rst logs\.opendaylight\.org docs