'navigator/filters/date-filter-view',
'coding-rules/views/filters/quality-profile-filter-view',
'coding-rules/views/filters/inheritance-filter-view',
+ 'coding-rules/views/filters/characteristic-filter-view',
'coding-rules/mockjax',
'common/handlebars-extensions'
DateFilterView,
QualityProfileFilterView,
InheritanceFilterView
+ CharacteristicFilterView
) ->
# Create a generic error handler for ajax requests
type: ChoiceFilters.ChoiceFilterView
choices: @tags
+ @filters.add new BaseFilters.Filter
+ name: t 'coding_rules.filters.characteristic'
+ property: 'characteristic'
+ type: CharacteristicFilterView
+ choices: @characteristics
+ multiple: false
+
@activeInFilter = new BaseFilters.Filter
name: t 'coding_rules.filters.in_quality_profile'
property: 'in_quality_profile'
multiple: false
@filters.add @activeInFilter
-
@filters.add new BaseFilters.Filter
name: t 'coding_rules.filters.key'
property: 'key'
App.repositories = r.repositories
App.statuses = r.statuses
App.tags = r.tags
+ App.characteristics = r.characteristics
window.messages = r.messages
# Remove the initial spinner
'size': 'size'
'unused': 'unused'
'unused-code': 'unused-code'
+ characteristics:
+ '1469': 'Changeability'
+ '1441': 'Changeability: Architecture related changeability'
+ '1470': 'Changeability: Data related changeability'
+ '1475': 'Changeability: Logic related changeability'
+ '1392': 'Efficiency'
+ '1377': 'Efficiency: Memory use'
+ '2965': 'Efficiency: Network use'
+ '1393': 'Efficiency: Processor use'
+ '1154': 'Maintainability'
+ '1022': 'Maintainability: Readability'
+ '1155': 'Maintainability: Understandability'
+ '988': 'Portability'
+ '977': 'Portability: Compiler related portability'
+ '989': 'Portability: Hardware related portability'
+ '994': 'Portability: Language related portability'
+ '1000': 'Portability: OS related portability'
+ '1006': 'Portability: Software related portability'
+ '1021': 'Portability: Time zone related portability'
+ '1551': 'Reliability'
+ '1496': 'Reliability: Architecture related reliability'
+ '1552': 'Reliability: Data related reliability'
+ '1596': 'Reliability: Exception handling'
+ '1622': 'Reliability: Fault tolerance'
+ '1629': 'Reliability: Instruction related reliability'
+ '1759': 'Reliability: Logic related reliability'
+ '2948': 'Reliability: Resource'
+ '1874': 'Reliability: Synchronization related reliability'
+ '1925': 'Reliability: Unit tests'
+ '975': 'Reusability'
+ '974': 'Reusability: Modularity'
+ '976': 'Reusability: Transportability'
+ '1345': 'Security'
+ '1335': 'Security: API abuse'
+ '1346': 'Security: Errors'
+ '1349': 'Security: Input validation and representation'
+ '1364': 'Security: Security features'
+ '1933': 'Testability'
+ '1932': 'Testability: Integration level testability'
+ '1934': 'Testability: Unit level testability'
messages:
'all': 'All'
'any': 'Any'
'coding_rules.select_tag': 'Select Tag'
'coding_rules.filters.availableSince': 'Available Since'
+ 'coding_rules.filters.characteristic': 'Characteristic'
'coding_rules.filters.description': 'Description'
'coding_rules.filters.in_quality_profile': 'In Quality Profile'
'coding_rules.filters.inheritance': 'Inheritance'