How to fix Sonarqube "Rename this file" code smell that contained in _app.js in Next.js?

Viewed 469

I created an example Next.js application using npx create-next-app. After sonarqube scan, there is 1 code smell appeared that says "Default export names and file names should match" (related link). But since _app.js file is a special file for the Next.js framework I can't rename it and can't solve that code smell. How can I fix this code smell?

enter image description here

1 Answers

To extend what @JulioMalves said, this is how I set up the ignore rule on SonarQube's admin interface.enter image description here

Related