[英]How to fix Sonarqube "Rename this file" code smell that contained in _app.js in Next.js?
I created an example Next.js application using npx create-next-app
.我使用 npx
npx create-next-app
创建了一个示例 Next.js 应用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) . sonarqube 扫描后,出现 1 个代码异味,提示“默认导出名称和文件名应匹配” (相关链接) 。 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.
但由于_app.js文件是 Next.js 框架的特殊文件,我无法重命名它,也无法解决代码异味。 How can I fix this code smell?
如何修复此代码异味?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.