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())
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 theexecute()
callback, there is a parameter of typeSensorContext
which allows access to the file system (ex:sc.baseDir()
)