public boolean shouldExecute ( DefaultSensorDescriptor descriptor ) { if ( ! fsCondition ( descriptor ) ) { LOG . debug ( "'{}' skipped because there is no related file in current project" , descriptor . name ( ) ) ; return false ; } if ( ! activeRulesCondition ( descriptor ) ) { LOG . debug ( "'{}' skipped because there is no related rule activated in the quality profile" , descriptor . name ( ) ) ; return false ; } if ( ! settingsCondition ( descriptor ) ) { LOG . debug ( "'{}' skipped because one of the required properties is missing" , descriptor . name ( ) ) ; return false ; } return true ; }
Decide if the given Sensor should be executed .