ecoCode-android
ecoCode-android copied to clipboard
Solution to deal with the scope File System required by some smells
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()
)