ecoCode-android icon indicating copy to clipboard operation
ecoCode-android copied to clipboard

Solution to deal with the scope File System required by some smells

Open olegoaer opened this issue 1 year ago • 0 comments

File System Scanner

Some smells detection are based on the File System, not on code scanning.

Proposed Solution Create a new sensor dedicated to that concern, FileSystemSensor, registered at the plugin level. To maintain performance, this sensor should only be triggered once. In the execute() callback, there is a parameter of type SensorContext which allows access to the file system (ex: sc.baseDir())

olegoaer avatar Apr 06 '23 12:04 olegoaer