Changes between Version 11 and Version 12 of SemanticQuery
- Timestamp:
- Feb 22, 2012, 1:51:48 PM (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
SemanticQuery
v11 v12 292 292 === Checking coding convensions === 293 293 294 In !RefactorErl, [ wiki:MetricQuerymetrics] can be applied to modules or to functions. Modules are equivalent to {{{file}}} entities in the semantic query language, and functions are equivalent to {{{function}}} entities. We can say that a metric is a kind of property belongs to a {{{file}}} or {{{function}}} entity, so we can simply add the proper metrics to the properties of entities.294 In !RefactorErl, [MetricQuery#Definedmetrics metrics] can be applied to modules or to functions. Modules are equivalent to {{{file}}} entities in the semantic query language, and functions are equivalent to {{{function}}} entities. We can say that a metric is a kind of property belongs to a {{{file}}} or {{{function}}} entity, so we can simply add the proper metrics to the properties of entities. 295 295 296 296 Usually we have some coding conventions applied to our modules or functions. With our extended semantic query language we can check these conventions, and filter improper modules or functions. Hereinafter we present some design rules and some metrics to check these rules.