I have a hard time understanding how code smell analysis works?
Currently seen on a React app in Azure DevOps pipelines.
When having a Pull request going to the Master branch I see code smells reported about files that should be renamed to match the “export default something” statement in the file itself. This code smell is of course easy fixable, but I would like that code smell to be reported already when making a Pull request to our Develop branch.
To test this, I created a new branch, and added new files, and intentionally added the above mentioned code smell. I also added other code smells like imports not being used etc.
My problem is, why does the code smell about renaming the file to the same name as being default exported in the file, not being shown as a code smell on my Pull request to Develop? The other code smells I did intentionally was flagged (as expected) as code smells on my Pull request to Develop.
So in short, I get different code smells on pull requests to develop, than I get when doing a pull request to master. Can that be fixed to be the same? I would really like to fix the code smells as early as possible.