code-complexity icon indicating copy to clipboard operation
code-complexity copied to clipboard

depreciation of fs.rmdir info on running tests

Open medic-code opened this issue 2 years ago • 1 comments

I noticed when running the CLI --> When format is json test, that a dep warning in future versions of Node fs.rmdir will be removed and recommended using fs.rm instead.

I see in the fixtures file we use rmdirSync method, its quite a small thing really, but to remove the dep info using the rmSync method instead might be worth considering.

medic-code avatar May 08 '23 16:05 medic-code

Hi there,

Sorry for the delay, I released a fix in an alpha version for the incoming v5. You can try it out here like this: npx code-complexity@alpha . --filter "**/*.ts" --sort=score -cs halstead

simonrenoult avatar Aug 21 '25 22:08 simonrenoult