Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F6050188
nodenamecheck.sh
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
694 B
Referenced Files
None
Subscribers
None
nodenamecheck.sh
View Options
#!/bin/bash
# Ensure that no more uses of $node -> nodeName creep into our repository...
# we should be using DOMCompat::nodeName( $node )
# See I7579cbd07df7650f4c7105cc9dbdc87ea294bded
BIN
=
$(
dirname
$0
)
# put this string together in a somewhat awkward way so that it doesn't
# trigger a match itself.
grepPhrase
=
"nodeName"
grepPhrase
=
">
$grepPhrase
"
badWords
=
'$node-'
"
$grepPhrase
"
# If any of these commands fail, something is wrong!
set
-ev
# Ensure lint output (exactly 1 line) is present!
x
=
`
git
grep
"
$grepPhrase
"
$BIN
/..
|
wc
-l
`
if
[
!
$x
-eq
1
]
then
echo
"Uses of
$badWords
found! :("
git
grep
"
$grepPhrase
"
$BIN
/..
exit
-1
fi
echo
"No new uses of
$badWords
found! :)"
File Metadata
Details
Attached
Mime Type
text/x-shellscript
Expires
Oct 4 2026, 22:59 (5 w, 6 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
7f/67/824ef21e658fcc49e5b4f1af44e2
Default Alt Text
nodenamecheck.sh (694 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment