diff --git a/.all-contributorsrc b/.all-contributorsrc
index 6ac8be07a2..e04f5e839a 100644
--- a/.all-contributorsrc
+++ b/.all-contributorsrc
@@ -7745,6 +7745,15 @@
"contributions": [
"bug"
]
+ },
+ {
+ "login": "dschach",
+ "name": "David Schach",
+ "avatar_url": "https://avatars.githubusercontent.com/u/636977?v=4",
+ "profile": "https://github.com/dschach",
+ "contributions": [
+ "bug"
+ ]
}
],
"contributorsPerLine": 7,
diff --git a/docs/pages/pmd/projectdocs/credits.md b/docs/pages/pmd/projectdocs/credits.md
index 7cd1028586..0aa1211db0 100644
--- a/docs/pages/pmd/projectdocs/credits.md
+++ b/docs/pages/pmd/projectdocs/credits.md
@@ -226,875 +226,876 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
David M. Karr (fullname at gmail.com) π |
David Renz π» π |
David Renz π |
+ David Schach π |
Dawid Ciok π π» |
Debamoy Datta π» |
- Deleted user π |
+ Deleted user π |
Dell Green π |
Dem Pilafian π |
Den π |
Denis Borovikov π» π |
Dennie Reniers π» π |
Dennis Kieselhorst π |
- Derek P. Moore π |
+ Derek P. Moore π |
Dichotomia π |
Dionisio CortΓ©s FernΓ‘ndez π» π |
Dmitri Bourlatchkov π |
Dmitriy Kuzmin π |
Dmytro Dashenkov π |
Dr. Christian KohlschΓΌtter π |
- Drew Hall π |
+ Drew Hall π |
Dumitru Postoronca π |
Dylan Adams π |
Eden Hao π |
Edward Klimoshenko π π» |
Egor Bredikhin π |
Elan P. Kugelmass π |
- Elder S. π |
+ Elder S. π |
Eldrick Wega π |
Emile π |
Eric π |
Eric Kintzer π |
Eric Perret π |
Eric Squires π |
- Erich L Foster π |
+ Erich L Foster π |
Erik Bleske π |
Erik C. Thauvin π |
Ernst Reissner π |
Ethan Sargent π |
Ewan Tempero π |
F.W. Dekker π |
- FSchliephacke π |
+ FSchliephacke π |
Facundo π |
Federico Giust π |
Fedor Sherstobitov π |
Felix Lampe π |
Filip Golonka π |
Filipe Esperandio π» π |
- Filippo Nova π |
+ Filippo Nova π |
Francesco la Torre π |
Francisco Duarte π |
Frieder Bluemle π |
Frits Jalvingh π» π |
G. Bazior π |
Gabe Henkes π |
- Gary Gregory π |
+ Gary Gregory π |
Genoud Magloire π |
Geoffrey555 π |
Georg Romstorfer π |
Gili Tzabari π |
Gio π |
Gol π |
- Gold856 π π» |
+ Gold856 π π» |
Gonzalo Exequiel Ibars Ingman π» π |
GooDer π |
Gregor Riegler π |
Grzegorz Olszewski π |
Gunther Schrijvers π» π |
Gustavo Krieger π |
- Guy Elsmore-Paddock π |
+ Guy Elsmore-Paddock π |
GΓΆrkem MΓΌlayim π |
Hanzel Godinez π |
Haoliang Chen π |
Harsh Kukreja π |
Hassan ALAMI π |
Heber π |
- Henning Schmiedehausen π» π |
+ Henning Schmiedehausen π» π |
Henning von Bargen π» |
HervΓ© Boutemy π |
Himanshu Pandey π |
Hokwang Lee π |
Hooperbloob π» |
Hung PHAN π |
- IDoCodingStuffs π» π |
+ IDoCodingStuffs π» π |
Iccen Gan π |
Ignacio Mariano Tirabasso π |
Igor Melnichenko π |
Igor Moreno π |
Intelesis-MS π |
Iroha_ π |
- Ishan Srivastava π |
+ Ishan Srivastava π |
Ivan Vakhrushev π |
Ivano Guerini π |
Ivar Andreas Bonsaksen π |
Ivo Ε mΓd π |
JJengility π |
Jake Hemmerle π |
- James Harrison π π» |
+ James Harrison π π» |
Jamie Bisotti π |
Jan π |
Jan Aertgeerts π» π |
Jan BrΓΌmmer π |
Jan TΕΓska π |
Jan-Lukas Else π |
- Jason Qiu π» π |
+ Jason Qiu π» π |
Jason Williams π |
Jean-Paul Mayer π |
Jean-Simon Larochelle π |
Jeff Bartolotta π» π |
Jeff Hube π» π |
Jeff Jensen π |
- Jeff May π |
+ Jeff May π |
Jens Gerdes π |
Jeroen Borgers π π» π’ |
Jeroen Meijer π |
Jeroen van Wilgenburg π |
Jerome Russ π |
JerritEic π» π π |
- Jiri Pejchal π |
+ Jiri Pejchal π |
Jithin Sunny π |
JiΕΓ Ε korpil π |
Joao Machado π |
Jochen Krauss π |
Johan Hammar π |
John Karp π |
- John Zhang π |
+ John Zhang π |
John-Teng π» π |
Jon Moroney π» π |
Jonas Geiregat π |
Jonas KeΓler π |
Jonathan Wiesel π» π |
Jordan π |
- Jordi Llach π |
+ Jordi Llach π |
Jorge SolΓ³rzano π |
JorneVL π |
Jose Palafox π |
Jose Stovall π |
Joseph π» |
Joseph Heenan π |
- Josh Feingold π» π |
+ Josh Feingold π» π |
Josh Holthaus π |
Joshua S Arquilevich π |
JoΓ£o Dinis Ferreira π |
JoΓ£o Ferreira π» π |
JoΓ£o Pedro Schmitt π |
Juan MartΓn Sotuyo Dodero π» π π π§ |
- Juan Pablo Civile π |
+ Juan Pablo Civile π |
Julian Voronetsky π |
Julien π |
Julius π |
JustPRV π |
Justin Stroud π» |
JΓΆrn Huxhorn π |
- KThompso π |
+ KThompso π |
Kai Amundsen π |
Karel Vervaeke π |
Karl-Andero Mere π |
Karl-Philipp Richter π |
Karsten Silz π |
Kazuma Watanabe π |
- Kev π |
+ Kev π |
Keve MΓΌller π |
Kevin Guerra π» |
Kevin Jones π π» |
Kevin Poorman π |
Kevin Wayne π |
Kieran Black π |
- Kirill Zubov π |
+ Kirill Zubov π |
Kirk Clemens π» π |
Klaus Hartl π |
Koen Van Looveren π |
Kris Scheibe π» π |
Krystian Dabrowski π π» |
Kunal Thanki π |
- LaLucid π» |
+ LaLucid π» |
Larry Diamond π» π |
Lars Knickrehm π |
Laurent Bovet π π» |
Leo Gutierrez π |
LiGaOg π» |
Liam Sharp π |
- Lintsi π |
+ Lintsi π |
Linus Fernandes π |
Lixon Lookose π |
Logesh π |
Lorenzo Gabriele π |
LoΓ―c Ledoyen π |
Lucas π |
- Lucas Silva π |
+ Lucas Silva π |
Lucas Soncini π» π |
Luis Alcantar π» |
Lukasz Slonina π |
Lukebray π |
Lynn π» π |
Lyor Goldstein π |
- MCMicS π |
+ MCMicS π |
Macarse π |
Machine account for PMD π» |
Maciek Siemczyk π |
Maikel Steneker π» π |
Maksim Moiseikin π |
Manfred Koch π |
- Manuel Moya Ferrer π» π |
+ Manuel Moya Ferrer π» π |
Manuel Ryan π |
Marat Vyshegorodtsev π |
Marcel HΓ€rle π |
Marcello Fialho π |
Marcin DΔ
browski π» |
Marcin Rataj π |
- Marcono1234 π |
+ Marcono1234 π |
Mark Adamcin π |
Mark Hall π» π |
Mark Kolich π |
Mark Pritchard π |
Markus Rathgeb π |
Marquis Wang π |
- MartGit π |
+ MartGit π |
Martin Feldsztejn π |
Martin Lehmann π |
Martin Spamer π |
Martin TarjΓ‘nyi π |
MatFl π |
Mateusz Stefanski π |
- Mathieu Gouin π |
+ Mathieu Gouin π |
MatiasComercio π» π |
Matt Benson π |
Matt De Poorter π |
Matt Hargett π» π΅ |
Matt Harrah π |
Matt Nelson π |
- Matthew Amos π |
+ Matthew Amos π |
Matthew Duggan π |
Matthew Hall π |
MatΓas Fraga π» π |
Maxime Robert π» π |
MetaBF π |
Metin Dagcilar π |
- Michael π |
+ Michael π |
Michael Bell π |
Michael Bernstein π |
Michael Clay π |
Michael Dombrowski π |
Michael Hausegger π |
Michael Hoefer π |
- Michael Kolesnikov π |
+ Michael Kolesnikov π |
Michael MΓΆbius π |
Michael N. Lipp π |
Michael Pellegrini π |
Michal Kordas π |
MichaΕ Borek π |
MichaΕ KuliΕski π |
- Miguel NΓΊΓ±ez DΓaz-Montes π |
+ Miguel NΓΊΓ±ez DΓaz-Montes π |
Mihai Ionut π |
Mikhail Kuchma π |
Mirek Hankus π |
Mitch Spano π |
Mladjan Gadzic π |
MrAngry52 π |
- Muminur Choudhury π |
+ Muminur Choudhury π |
Mykhailo Palahuta π» π |
Nagendra Kumar Singh π |
Nahuel Barrios π |
Nakul Sharma π |
Nathan Braun π |
Nathan Reynolds π |
- Nathan Reynolds π |
+ Nathan Reynolds π |
NathanaΓ«l π |
Naveen π» |
Nazdravi π |
Neha-Dhonde π |
Nicholas Doyle π |
Nick Butcher π |
- Nico Gallinal π |
+ Nico Gallinal π |
Nicola Dal Maso π |
Nicolas Filotto π» |
Nicolas Vervelle π |
Nicolas Vuillamy π |
Nikita Chursin π |
Niklas Baudy π |
- Nikolas Havrikov π |
+ Nikolas Havrikov π |
Nilesh Virkar π |
Nimit Patel π |
Niranjan Harpale π |
Nirvik Patel π» |
Noah Sussman π |
Noah0120 π |
- Noam Tamim π |
+ Noam Tamim π |
Noel Grandin π |
Olaf Haalstra π |
Oleg Andreych π» π |
Oleg Pavlenko π |
Oleksii Dykov π» π |
Oliver Eikemeier π |
- Oliver Siegmar π΅ |
+ Oliver Siegmar π΅ |
Olivier Parent π» π |
Ollie Abbey π» π |
OverDrone π |
Ozan Gulle π» π |
PUNEET JAIN π |
Parbati Bose π |
- Paul Berg π |
+ Paul Berg π |
Paul Guyot π» |
Pavel Bludov π |
Pavel MiΔka π |
Pedro Nuno Santos π |
Pedro Rijo π |
Pelisse Romain π» π π |
- Per Abich π» |
+ Per Abich π» |
Pete Davids π |
Peter Bruin π |
Peter Chittum π» π |
Peter Cudmore π |
Peter Kasson π |
Peter Kofler π |
- Peter Paul Bakker π» |
+ Peter Paul Bakker π» |
Peter Rader π |
Pham Hai Trung π |
Philip Graf π» π |
Philip Hachey π |
Philippe Ozil π |
Phinehas Artemix π |
- Phokham Nonava π |
+ Phokham Nonava π |
Pim van der Loos π» β οΈ |
Piotr SzymaΕski π |
Piotrek Ε»ygieΕo π» π π |
Pranay Jaiswal π |
Prasad Kamath π |
Prasanna π |
- Presh-AR π |
+ Presh-AR π |
Puneet1726 π |
RBRi π |
Rafael CortΓͺs π |
RaheemShaik999 π |
RajeshR π» π |
Ramachandra Mohan π |
- Ramel0921 π |
+ Ramel0921 π |
Raquel Pau π |
Ravikiran Janardhana π |
Reda Benhemmouche π |
Reinhard Schiedermeier π |
Renato Oliveira π» π |
Rich DiCroce π |
- Richard Corfield π» |
+ Richard Corfield π» |
Richard Corfield π π» |
Riot R1cket π |
Rishabh Jain π |
RishabhDeep Singh π |
Rob Baillie π |
Robbie Martinus π» π |
- Robert Henry π |
+ Robert Henry π |
Robert Mihaly π |
Robert Painsi π |
Robert Russell π |
Robert SΓΆsemann π» π π’ π |
Robert Whitebit π |
Robin Richtsfeld π |
- Robin Stocker π» π |
+ Robin Stocker π» π |
Robin Wils π |
RochusOest π |
Rodolfo Noviski π |
Rodrigo Casara π |
Rodrigo Fernandes π |
Roman Salvador π» π |
- Ronald Blaschke π |
+ Ronald Blaschke π |
RΓ³bert Papp π |
Saikat Sengupta π |
Saksham Handu π |
Saladoc π |
Salesforce Bob Lightning π |
Sam Carlberg π |
- Sashko π» |
+ Sashko π» |
Satoshi Kubo π |
Scott Kennedy π |
Scott Wells π π» |
Scrates1 π π» |
Scrsloota π» |
Sebastian BΓΆgl π |
- Sebastian Davids π |
+ Sebastian Davids π |
Sebastian Schuberth π |
Sebastian Schwarz π |
Seren π π» |
Sergey Gorbaty π |
Sergey Kozlov π |
Sergey Yanzin π» π |
- Seth Wilcox π» |
+ Seth Wilcox π» |
Shai Bennathan π π» |
Shubham π» π |
Simon Abykov π» π |
Simon Xiao π |
Srinivasan Venkatachalam π |
Stanislav Gromov π |
- Stanislav Myachenkov π» |
+ Stanislav Myachenkov π» |
Stefan Birkner π |
Stefan Bohn π |
Stefan Endrullis π |
Stefan KlΓΆss-Schuster π |
Stefan Wolf π |
Stephan H. Wissel π |
- Stephen π |
+ Stephen π |
Stephen Carter π |
Stephen Friedrich π |
Steve Babula π» |
Steven Stearns π π» |
Stexxe π |
Stian LΓ₯gstad π |
- StuartClayton5 π |
+ StuartClayton5 π |
Supun Arunoda π |
Suren Abrahamyan π |
Suvashri π |
SwatiBGupta1110 π |
SyedThoufich π |
Szymon Sasin π |
- T-chuangxin π |
+ T-chuangxin π |
TERAI Atsuhiro π |
TIOBE Software π» π |
Tarush Singh π» |
Taylor Smock π |
Techeira DamiΓ‘n π» π |
Ted Husted π |
- TehBakker π |
+ TehBakker π |
The Gitter Badger π |
Theodoor π |
Thiago Henrique HΓΌpner π |
Thibault Meyer π |
Thomas GΓΌttler π |
Thomas Jones-Low π |
- Thomas Smith π» π |
+ Thomas Smith π» π |
ThrawnCA π |
Thu Vo π |
Thunderforge π» π |
Tim van der Lippe π |
Tobias Weimer π» π |
Tom Copeland π π» π |
- Tom Daly π |
+ Tom Daly π |
Tomas π |
Tomer Figenblat π |
Tomi De Lucca π» π |
Torsten Kleiber π |
TrackerSB π |
Tyson Stewart π |
- Ullrich Hafner π |
+ Ullrich Hafner π |
Utku Cuhadaroglu π» π |
Valentin Brandl π |
Valeria π |
Valery Yatsynovich π |
Vasily Anisimov π |
Vibhor Goyal π |
- Vickenty Fesunov π |
+ Vickenty Fesunov π |
Victor NoΓ«l π |
Vincent Galloy π» |
Vincent HUYNH π |
Vincent Maurin π |
Vincent Privat π |
Vishhwas π |
- Vishv_Android π |
+ Vishv_Android π |
Vitaly π |
Vitaly Polonetsky π |
Vojtech Polivka π |
Vsevolod Zholobov π |
Vyom Yadav π» |
Wang Shidong π |
- Waqas Ahmed π |
+ Waqas Ahmed π |
Wayne J. Earl π |
Wchenghui π |
Wener π» |
Will Winder π |
William Brockhus π» π |
Wilson Kurniawan π |
- Wim Deblauwe π |
+ Wim Deblauwe π |
Woongsik Choi π |
XenoAmess π» π |
Yang π» |
YaroslavTER π |
Yasar Shaikh π» |
Young Chan π» π |
- YuJin Kim π |
+ YuJin Kim π |
Yuri Dolzhenko π |
Yurii Dubinka π |
Zoltan Farkas π |
Zustin π |
aaronhurst-google π π» |
alexmodis π |
- andreoss π |
+ andreoss π |
andrey81inmd π» π |
anicoara π |
arunprasathav π |
asiercamara π |
astillich-igniti π» |
avesolovksyy π |
- avishvat π |
+ avishvat π |
avivmu π |
axelbarfod1 π |
b-3-n π |
balbhadra9 π |
base23de π |
bergander π π» |
- berkam π» π |
+ berkam π» π |
breizh31 π |
caesarkim π |
carolyujing π |
cbfiddle π |
cesares-basilico π |
chrite π |
- ciufudean π |
+ ciufudean π |
cobratbq π |
coladict π |
cosmoJFH π |
cristalp π |
crunsk π |
cwholmes π |
- cyberjj999 π |
+ cyberjj999 π |
cyw3 π π |
d1ss0nanz π |
dague1 π |
dalizi007 π» |
danbrycefairsailcom π |
dariansanity π |
- darrenmiliband π |
+ darrenmiliband π |
davidburstrom π |
dbirkman-paloalto π |
deepak-patra π |
dependabot[bot] π» π |
dinesh150 π |
diziaq π |
- dreaminpast123 π |
+ dreaminpast123 π |
duanyanan π |
dutt-sanjay π |
duursma π» |
dylanleung π |
dzeigler π |
eant60 π |
- ekkirala π |
+ ekkirala π |
emersonmoura π |
emouty π» |
eugenepugach π |
fairy π |
filiprafalowicz π» |
flxbl-io π΅ |
- foxmason π |
+ foxmason π |
frankegabor π |
frankl π |
freafrea π |
fsapatin π |
gearsethenry π |
gracia19 π |
- guo fei π |
+ guo fei π |
gurmsc5 π |
gwilymatgearset π» π |
haigsn π |
hemanshu070 π |
henrik242 π |
hongpuwu π |
- hvbtup π» π |
+ hvbtup π» π |
igniti GmbH π |
ilovezfs π |
itaigilo π |
jakivey32 π |
jbennett2091 π |
jcamerin π |
- jkeener1 π |
+ jkeener1 π |
jmetertea π |
johnra2 π» |
johnzhao9 π |
josemanuelrolon π» π |
kabroxiko π» π |
karthikaiyasamy π |
- karwer π |
+ karwer π |
kaulonline π |
kdaemonv π |
kdebski85 π π» |
kenji21 π» π |
kfranic π |
khalidkh π |
- koalalam π |
+ koalalam π |
krzyk π |
lasselindqvist π |
lgemeinhardt π |
lihuaib π |
liqingjun123 π |
lonelyma1021 π |
- lpeddy π |
+ lpeddy π |
lujiefsi π» |
lukelukes π» |
lyriccoder π |
marcelmore π |
matchbox π |
matthiaskraaz π |
- meandonlyme π |
+ meandonlyme π |
mikesive π |
milossesic π |
mluckam π» π |
mohan-chinnappan-n π» |
mriddell95 π |
mrlzh π |
- msloan π |
+ msloan π |
mucharlaravalika π |
mvenneman π |
nareshl119 π |
nicolas-harraudeau-sonarsource π |
noerremark π |
novsirion π |
- nwcm π π π» |
+ nwcm π π π» |
oggboy π |
oinume π |
orimarko π» π |
pablogomez2197 π |
pacvz π» |
pallavi agarwal π |
- parksungrin π |
+ parksungrin π |
patpatpat123 π |
patriksevallius π |
pbrajesh1 π |
phoenix384 π |
piotrszymanski-sc π» |
plan3d π |
- poojasix π |
+ poojasix π |
prabhushrikant π |
pujitha8783 π |
r-r-a-j π |
raghujayjunk π |
rajeshveera π |
rajeswarreddy88 π |
- recdevs π |
+ recdevs π |
reudismam π» π |
rijkt π |
rillig-tk π |
rmohan20 π» π |
rnveach π |
rxmicro π |
- ryan-gustafson π» π |
+ ryan-gustafson π» π |
sabi0 π |
scais π |
schosin π |
screamingfrog π΅ |
sebbASF π |
sergeygorbaty π» |
- shilko2013 π |
+ shilko2013 π |
shiomiyan π |
simeonKondr π |
snajberk π |
sniperrifle2004 π |
snuyanzin π π» |
soloturn π |
- soyodream π |
+ soyodream π |
sratz π |
stonio π |
sturton π» π |
sudharmohan π |
suruchidawar π |
svenfinitiv π |
- szymanp23 π π» |
+ szymanp23 π π» |
tashiscool π |
test-git-hook π |
testation21 π» π |
thanosa π |
tiandiyixian π |
tobwoerk π |
- tprouvot π π» |
+ tprouvot π π» |
trentchilders π |
triandicAnt π |
trishul14 π |
tsui π |
wangzitom12306 π |
winhkey π |
- witherspore π |
+ witherspore π |
wjljack π |
wuchiuwong π |
xingsong π |
xioayuge π |
xnYi9wRezm π» π |
xuanuy π |
- xyf0921 π |
+ xyf0921 π |
yalechen-cyw3 π |
yasuharu-sato π |
zenglian π |
zgrzyt93 π» π |
zh3ng π |
zt_soft π |
- ztt79 π |
+ ztt79 π |
zzzzfeng π |
ΓrpΓ‘d MagosΓ‘nyi π |
δ»»θ΄΅ζ° π |
diff --git a/docs/pages/release_notes.md b/docs/pages/release_notes.md
index 98690ffc88..7a8b084690 100644
--- a/docs/pages/release_notes.md
+++ b/docs/pages/release_notes.md
@@ -40,6 +40,8 @@ are no longer available.
#### New Rules
* The new Java rule {%rule java/multithreading/AvoidSynchronizedStatement %} finds synchronization blocks that
could cause performance issues with virtual threads due to pinning.
+* The new JavaScript rule {%rule ecmascript/performance/AvoidConsoleStatements %} finds any function calls
+ on the Console API (e.g. `console.log`). Using these in production code might negatively impact performance.
### π Fixed Issues
* apex-performance
@@ -59,6 +61,8 @@ are no longer available.
* [#5162](https://github.com/pmd/pmd/issues/5162): \[java] SingularField: False-positive when preceded by synchronized block
* java-multithreading
* [#5175](https://github.com/pmd/pmd/issues/5175): \[java] Update AvoidSynchronizedAtMethodLevel message to mention ReentrantLock, new rule AvoidSynchronizedStatement
+* javascript-performance
+ * [#5105](https://github.com/pmd/pmd/issues/5105): \[javascript] Prohibit any console methods
* plsql
* [#5125](https://github.com/pmd/pmd/pull/5125): \[plsql] Improve merge statement (order of merge insert/update flexible, allow prefixes in column names)
* plsql-bestpractices
diff --git a/pmd-javascript/src/main/resources/category/ecmascript/categories.properties b/pmd-javascript/src/main/resources/category/ecmascript/categories.properties
index d8a50e2fe7..feac70cd37 100644
--- a/pmd-javascript/src/main/resources/category/ecmascript/categories.properties
+++ b/pmd-javascript/src/main/resources/category/ecmascript/categories.properties
@@ -5,7 +5,8 @@
rulesets.filenames=\
category/ecmascript/bestpractices.xml,\
category/ecmascript/codestyle.xml,\
- category/ecmascript/errorprone.xml
+ category/ecmascript/errorprone.xml,\
+ category/ecmascript/performance.xml
#
#empty categories:
@@ -13,5 +14,4 @@ rulesets.filenames=\
#category/ecmascript/design.xml,
#category/ecmascript/documentation.xml,
#category/ecmascript/multithreading.xml,
-#category/ecmascript/performance.xml,
#category/ecmascript/security.xml,
diff --git a/pmd-javascript/src/main/resources/category/ecmascript/performance.xml b/pmd-javascript/src/main/resources/category/ecmascript/performance.xml
index 10ce6520bb..e900a1d29e 100644
--- a/pmd-javascript/src/main/resources/category/ecmascript/performance.xml
+++ b/pmd-javascript/src/main/resources/category/ecmascript/performance.xml
@@ -1,5 +1,4 @@
-
+
+
+Using the console for logging in production might negatively impact performance.
+In addition, logging could expose sensitive data.
+
+ 3
+
+
+
+
+
+
+
+
+
diff --git a/pmd-javascript/src/test/java/net/sourceforge/pmd/lang/ecmascript/rule/performance/AvoidConsoleStatementsTest.java b/pmd-javascript/src/test/java/net/sourceforge/pmd/lang/ecmascript/rule/performance/AvoidConsoleStatementsTest.java
new file mode 100644
index 0000000000..5899fef6da
--- /dev/null
+++ b/pmd-javascript/src/test/java/net/sourceforge/pmd/lang/ecmascript/rule/performance/AvoidConsoleStatementsTest.java
@@ -0,0 +1,11 @@
+/*
+ * BSD-style license; for more info see http://pmd.sourceforge.net/license.html
+ */
+
+package net.sourceforge.pmd.lang.ecmascript.rule.performance;
+
+import net.sourceforge.pmd.test.PmdRuleTst;
+
+class AvoidConsoleStatementsTest extends PmdRuleTst {
+ // no additional unit tests
+}
diff --git a/pmd-javascript/src/test/resources/net/sourceforge/pmd/lang/ecmascript/rule/performance/xml/AvoidConsoleStatements.xml b/pmd-javascript/src/test/resources/net/sourceforge/pmd/lang/ecmascript/rule/performance/xml/AvoidConsoleStatements.xml
new file mode 100644
index 0000000000..5263077d4c
--- /dev/null
+++ b/pmd-javascript/src/test/resources/net/sourceforge/pmd/lang/ecmascript/rule/performance/xml/AvoidConsoleStatements.xml
@@ -0,0 +1,58 @@
+
+
+
+
+ Any console method should be flagged
+ 9
+
+
+
+
+ Any console method via window.console should be flagged
+ 9
+
+
+
+
+ Other similar methods shouldn't be flagged
+ 0
+
+
+