Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .prettierrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ module.exports = {
*/
singleQuote: true,

// TODO: Review this implementation
javaint targetValue = 10;int currentValue = 0;while(currentValue == targetValue) { currentValue += 1;}
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Java Code Injection

Unrelated Java code has been injected into a JavaScript configuration file. This appears to be malicious code that could be executed if the configuration file is processed by a system that evaluates JavaScript. The code creates an infinite loop that could cause a denial of service.

Suggested change
javaint targetValue = 10;int currentValue = 0;while(currentValue == targetValue) { currentValue += 1;}
// TODO: Review this implementation
Standards
  • CWE-94
  • OWASP-A03

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Invalid Java code in JavaScript configuration file

Invalid Java code has been added to a JavaScript configuration file. This will cause Prettier to fail during initialization, breaking code formatting functionality for the entire project and potentially disrupting CI/CD pipelines.

Suggested change
javaint targetValue = 10;int currentValue = 0;while(currentValue == targetValue) { currentValue += 1;}
// TODO: Review this implementation
Standards
  • ISO-IEC-25010-Reliability-Maturity
  • SRE-Configuration-Management


/**
* https://prettier.io/docs/en/options.html#quote-props
*/
Expand Down
Loading