Changeset 30093
- Timestamp:
- 07/01/10 16:04:28 (3 years ago)
- Files:
-
- plugins/sfProjectAnalyserPlugin/README (modified) (1 diff)
- plugins/sfProjectAnalyserPlugin/config/plugin_sfpa.yml (modified) (2 diffs)
- plugins/sfProjectAnalyserPlugin/lib/objects/paSfComponent.class.php (modified) (1 diff)
- plugins/sfProjectAnalyserPlugin/lib/objects/paSfModule.class.php (modified) (2 diffs)
- plugins/sfProjectAnalyserPlugin/lib/objects/paSfPartial.class.php (modified) (1 diff)
- plugins/sfProjectAnalyserPlugin/lib/objects/paSfTemplate.class.php (modified) (1 diff)
- plugins/sfProjectAnalyserPlugin/lib/task/sfProjectAnalyseTask.class.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
plugins/sfProjectAnalyserPlugin/README
r30092 r30093 103 103 1.0.0: 104 104 105 * Allow to switch code length check to off, si parameter is set to false instead of a threshold 105 106 * Analyse the layout and partials of an application - LV 106 107 * Allow to parse custom actions files - LV plugins/sfProjectAnalyserPlugin/config/plugin_sfpa.yml
r30084 r30093 1 ################ 2 # HELP 3 # 4 # 1 - Set "max_code_length" to false if you don't want the code length check to be done 5 # max_code_length: false 6 # 7 ################ 8 1 9 # This is the default configuation on the plugin 2 10 default: … … 15 23 # Module level settings 16 24 module: 25 # Set to false, if you don't want to do this check 17 26 max_actions_count: 20 # Raise an alert if number of actions of a module is beyond this threshold 18 27 plugins/sfProjectAnalyserPlugin/lib/objects/paSfComponent.class.php
r30074 r30093 150 150 protected function processAlert4001($global_config, $config) 151 151 { 152 if ($ this->code_length > $config['max_code_length'])152 if ($config['max_code_length'] && ($this->code_length > $config['max_code_length'])) 153 153 { 154 154 $alert = new paAlert( plugins/sfProjectAnalyserPlugin/lib/objects/paSfModule.class.php
r30092 r30093 171 171 { 172 172 $partial->process(); 173 } 173 } 174 175 $this->processAlerts(); 174 176 } 175 177 … … 367 369 { 368 370 // Modules alerts 369 if ( count($this->actions) > $config['max_actions_count'])371 if ($config['max_actions_count'] && (count($this->actions) > $config['max_actions_count'])) 370 372 { 371 373 $alert = new paAlert( plugins/sfProjectAnalyserPlugin/lib/objects/paSfPartial.class.php
r30084 r30093 113 113 protected function processAlert6001($config) 114 114 { 115 if ($ this->code_length > $config['max_code_length'])115 if ($config['max_code_length'] && ($this->code_length > $config['max_code_length'])) 116 116 { 117 117 $alert = new paAlert( plugins/sfProjectAnalyserPlugin/lib/objects/paSfTemplate.class.php
r30084 r30093 66 66 protected function processAlert7001($config) 67 67 { 68 if ($ this->code_length > $config['max_code_length'])68 if ($config['max_code_length'] && ($this->code_length > $config['max_code_length'])) 69 69 { 70 70 $alert = new paAlert( plugins/sfProjectAnalyserPlugin/lib/task/sfProjectAnalyseTask.class.php
r30091 r30093 413 413 { 414 414 $html = ''; 415 $html .= ' » Plugin sponsored by <a href="http://www.sqltechnologies.com">SQL-Technologies</a><br />';415 //$html .= ' » Plugin sponsored by <a href="http://www.sqltechnologies.com">SQL-Technologies</a><br />'; 416 416 $html .= ' » Generated the '. date('Y-m-d H:m:s'). ' in '. $this->getElapsedTime($this->started_at, $this->ended_at). ' second(s)'; 417 417 $html .= '</body></html>';