5a5ccf0a03
1) Allow the PMD context menu on any File type, not just *.java. 2) Modify some places which check for a .java extension to _not_ do so. 3) Modify some places to check with the PMDEngine whether a File "applies" (e.g. is it for a Language which is understood by PMD and are there any Rules in the RuleSet for that Language). Expand the Rule table to have a Language column in the 1st column. The table setup in this plugin/SWT still *sucks* as bad I remember it being the last time I added columns. With these changes I can get both JS and XML Rules to work. Violations show up, and for JS, I can be brought to the proper line number in the code! Also fixed and issue with this plugin looking for a "maxViolations" property on the Rules, which given PMD 5.0 changes to require a propery to exist to ask for a value... needed some tweaking to first check for the value on the Rule. More verbose, but a safer API than the Wild West style of pre-5.0. The Rule Editor needs some work to account for the new structure of Rules in PMD 5.0. Currently any Rule it creates causes things to blow up due to missing Language. Easy enough to fix, but it's just the 1st of several things needing to be corrected. git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@6742 51baf565-9d33-0410-a72c-fc3788e3496d
253 lines
13 KiB
Properties
253 lines
13 KiB
Properties
# PMD Eclipse Plugin message tables
|
|
|
|
# Property page
|
|
property.button.enable = Enable PMD
|
|
property.label.select_rule = Select rules for this project :
|
|
property.button.select_workingset = Select a working set...
|
|
property.button.deselect_workingset = Deselect working set
|
|
property.label.no_workingset = No working set is selected.
|
|
property.label.selected_workingset = Selected working set :
|
|
property.button.store_ruleset_project = Use the ruleset configured in a project file
|
|
property.button.ruleset_browse = Browse...
|
|
property.button.include_derived_files = Include derived files
|
|
|
|
# General preferences page
|
|
preference.pmd.header = PMD-Plugin options
|
|
preference.pmd.title = PMD General Preferences
|
|
preference.pmd.label.addcomment = Additional text to be appended to review comment :
|
|
preference.pmd.label.sample = Sample :
|
|
preference.pmd.tooltip.addcomment = Use MessageFormat substitution rules. {0} is the user name, {1} is the current date.
|
|
preference.pmd.message.incorrect_format = Incorrect message format
|
|
preference.pmd.group.review = Violations review parameters
|
|
preference.pmd.group.general = General options
|
|
preference.pmd.label.perspective_on_check = Show PMD perspective when checking code
|
|
preference.pmd.label.use_dfa = Enable dataflow anomaly analysis (experimental)
|
|
preference.pmd.label.use_project_build_path = Enable using Java Project Build Path. Disable if your Eclipse JVM version is incompatible with .class file versions.
|
|
preference.pmd.label.max_violations_pfpr = Maximum reported violations per file per rule
|
|
preference.pmd.tooltip.max_violations_pfpr = This helps limit report sizes and improves overall performance
|
|
preference.pmd.message.invalid_numeric_value = Incorrect numeric value entered
|
|
preference.pmd.label.review_pmd_style = Use PMD style (// NOPMD comment)
|
|
preference.pmd.group.logging = Logging options
|
|
preference.pmd.label.log_file_name = Log file name:
|
|
preference.pmd.tooltip.log_file_name = Relative paths are from Eclipse execution directory
|
|
preference.pmd.button.browse = Browse...
|
|
preference.pmd.dialog.browse = Select log file
|
|
preference.pmd.label.log_level = Log level:
|
|
|
|
# PMD Rule set preference page
|
|
preference.ruleset.title = PMD RuleSet Configuration Options
|
|
preference.ruleset.list = Active Rule Sets
|
|
preference.ruleset.add = Add Rule Set to List
|
|
preference.ruleset.remove = Remove Rule Set from List
|
|
|
|
preference.ruleset.label.ruletable = Rules
|
|
preference.ruleset.label.rulepropstable = Rule properties
|
|
preference.ruleset.label.exclude_patterns_table = Exclude patterns
|
|
preference.ruleset.label.include_patterns_table = Include patterns
|
|
preference.ruleset.column.language = Language
|
|
preference.ruleset.column.ruleset_name = Rule set name
|
|
preference.ruleset.column.rule_name = Rule name
|
|
preference.ruleset.column.since = Since
|
|
preference.ruleset.column.priority = Priority
|
|
preference.ruleset.column.description = Description
|
|
preference.ruleset.column.property = Property
|
|
preference.ruleset.column.value = Value
|
|
preference.ruleset.column.exclude_pattern = Exclude Pattern
|
|
preference.ruleset.column.include_pattern = Include Pattern
|
|
preference.ruleset.button.addrule = Add rule...
|
|
preference.ruleset.button.removerule = Remove rule
|
|
preference.ruleset.button.editrule = Edit rule...
|
|
preference.ruleset.button.importruleset = Import rule set...
|
|
preference.ruleset.button.exportruleset = Export rule set...
|
|
preference.ruleset.button.clearall = Clear all
|
|
preference.ruleset.button.ruledesigner = Rule Designer
|
|
preference.ruleset.button.addproperty = Add property...
|
|
preference.ruleset.button.add_exclude_pattern = Add Exclude Pattern
|
|
preference.ruleset.button.add_include_pattern = Add Include Pattern
|
|
preference.ruleset.dialog.title = PMD Plugin
|
|
preference.ruleset.dialog.ruleset_description = Enter a description for this rule set
|
|
preference.ruleset.dialog.property_name = Enter a name for the new property (properties cannot be deleted !)
|
|
|
|
preference.rulesetselection.label.enter_ruleset = Enter a rule set or select a default one :
|
|
preference.rulesetselection.tooltip.ruleset = The specified rule set must a valid file or a resource in the plugin classpath
|
|
preference.rulesetselection.button.browse = Browse...
|
|
preference.rulesetselection.button.reference = Import by Reference
|
|
preference.rulesetselection.button.copy = Import by Copy
|
|
|
|
preference.ruleedit.label.ruleset_name = RuleSet name :
|
|
preference.ruleedit.label.since = Since :
|
|
preference.ruleedit.label.name = Rule name :
|
|
preference.ruleedit.label.implementation_class = Rule implementation class :
|
|
preference.ruleedit.label.message = Message :
|
|
preference.ruleedit.label.priority = Priority :
|
|
preference.ruleedit.label.description = Description :
|
|
preference.ruleedit.label.external_info_url = External Info URL :
|
|
preference.ruleedit.label.examples = Examples :
|
|
preference.ruleedit.label.xpath = XPath :
|
|
preference.ruleedit.button.rule_reference = Rule Reference
|
|
preference.ruleedit.button.xpath_rule = XPath rule
|
|
preference.ruleedit.button.uses_type_resolution = Uses Type Resolution
|
|
preference.ruleedit.button.uses_dfa = Uses DFA
|
|
preference.ruleedit.button.open_external_info_url = Open in Browser
|
|
|
|
# CPD preference page
|
|
preference.cpd.group.general = General Options
|
|
preference.cpd.title = CPD Configuration Options
|
|
preference.cpd.tilesize = Minimum Tile Size
|
|
|
|
# View labels
|
|
view.outline.default_text = A violation outline is not available
|
|
view.outline.column_message = Error Message
|
|
view.outline.column_line = Line
|
|
view.overview.column_element = Element
|
|
view.overview.column_vio_total = # Violations
|
|
view.overview.column_vio_loc = # Violations/LOC
|
|
view.overview.column_vio_method = # Violations/Method
|
|
view.overview.column_project = Project
|
|
view.dataflow.default_text = A dataflow graph is not available
|
|
view.dataflow.choose_method = Choose a method:
|
|
view.dataflow.graph.column_line = Line
|
|
view.dataflow.graph.column_graph = Graph
|
|
view.dataflow.graph.column_nextnodes = Next nodes
|
|
view.dataflow.graph.column_values = Dataflow types
|
|
view.dataflow.graph.column_code = Codeline
|
|
view.dataflow.switchbutton.show = Show anomaly list <
|
|
view.dataflow.switchbutton.hide = Hide anomaly list >
|
|
view.dataflow.refreshbutton = Refresh
|
|
view.dataflow.table.column_type = Type
|
|
view.dataflow.table.column_type.tooltip = Specifies the type of the anomaly, that can be UR, DD and DU
|
|
view.dataflow.table.column_line = Line(s)
|
|
view.dataflow.table.column_variable = Variable
|
|
view.dataflow.table.column_method = Method
|
|
view.column.message = Message
|
|
view.column.rule = Rule
|
|
view.column.class = Class
|
|
view.column.package = Package
|
|
view.column.project = Project
|
|
view.column.location = Line
|
|
|
|
view.filter.priority.1 = Show priority 1 violations
|
|
view.filter.priority.2 = Show priority 2 violations
|
|
view.filter.priority.3 = Show priority 3 violations
|
|
view.filter.priority.4 = Show priority 4 violations
|
|
view.filter.priority.5 = Show priority 5 violations
|
|
view.filter.project_prefix = Show Project
|
|
|
|
view.action.show_rule = Show Details ...
|
|
view.action.review = Mark as reviewed
|
|
view.action.remove_violation = Remove violation(s)
|
|
view.action.quickfix = Quick fix...
|
|
view.action.current_project = Show Selected Project Only
|
|
view.action.project = Selected project
|
|
view.action.file = Selected file
|
|
view.action.errorhigh = Error high priority
|
|
view.action.error = Error priority
|
|
view.action.warninghigh = Warning high priority
|
|
view.action.warning = Warning priority
|
|
view.action.information = Information priority
|
|
|
|
view.tooltip.show_rule = Show rule data from the selected violation
|
|
view.tooltip.review = Insert a comment where the violation occurs to mark it as reviewed.
|
|
view.tooltip.remove_violation = Remove the selected violation
|
|
view.tooltip.quickfix = Try to resolve this violation
|
|
view.tooltip.filter.priority.1 = Show priority 1 violations (error high)
|
|
view.tooltip.filter.priority.2 = Show priority 2 violations (error)
|
|
view.tooltip.filter.priority.3 = Show priority 3 violations (warning high)
|
|
view.tooltip.filter.priority.4 = Show priority 4 violations (warning)
|
|
view.tooltip.filter.priority.5 = Show priority 5 violations (information)
|
|
view.tooltip.packages_files = Show files & packages or files only
|
|
view.tooltip.collapse_all = Collapse all
|
|
view.tooltip.project = View current selected project violations only
|
|
view.tooltip.file = View current selected file violations only
|
|
view.tooltip.errorhigh_filter = View priority level 1 violations (error high)
|
|
view.tooltip.error_filter = View priority level 2 violations (error)
|
|
view.tooltip.warninghigh_filter = View priority level 3 violations (warning high)
|
|
view.tooltip.warning_filter = View priority level 4 violations (warning)
|
|
view.tooltip.information_filter = View priority level 5 violations (information)
|
|
view.tooltip.refresh_resource = Review code of the active resource
|
|
view.tooltip.calc_stats = Calculate statistics
|
|
view.menu.resource_filter = Filter resources
|
|
view.menu.priority_filter = Filter priorities
|
|
view.default_package = (default package)
|
|
view.menu.show_file_markers = Show violations to files
|
|
view.menu.show_marker_files = Show violations to packages
|
|
view.menu.show_pack_files = Show packages with files
|
|
view.menu.show_type = Presentation type
|
|
|
|
# Dialog labels
|
|
dialog.cpd.title = Find Suspect Cut & Paste
|
|
dialog.cpd.min_tilesize.label = Minimum Tile-size:
|
|
dialog.cpd.create_report = Create report file (saved to project report folder)
|
|
dialog.cpd.report = Report
|
|
dialog.cpd.language.label = Language:
|
|
dialog.cpd.format.label = Output format:
|
|
dialog.tooltip.cpd.format = Specify the report output format
|
|
dialog.tooltip.cpd.tilesize = Specify the minimum tile-size that corresponds to the size of duplicate matches
|
|
dialog.tooltip.cpd.language = Specify the language based on the detection
|
|
dialog.cpd.help.label = Choose a language for the Copy/Paste detection. You can \nset the size of duplicated code by setting the minimum tile-size.
|
|
|
|
dialog.cpd.no_results.header = Copy/Paste detection results
|
|
dialog.cpd.no_results.body = CPD has now finished with no results.
|
|
|
|
# Monitor messages
|
|
monitor.job_title = Checking Code with PMD
|
|
monitor.begintask = PMD Processing...
|
|
monitor.checking_file = PMD : Checking file
|
|
monitor.updating_projects = PMD : Updating project
|
|
monitor.review = PMD : Review in progress...
|
|
monitor.remove_reviews = PMD : Removing violations reviews...
|
|
monitor.calc_stats = Calculating statistics ...
|
|
monitor.calc_stats.package = Calculating package
|
|
|
|
# Error messages
|
|
message.error.title = PMD Error
|
|
message.error.core_exception = Core Exception :
|
|
message.error.pmd_exception = PMD Exception :
|
|
message.error.io_exception = IO Exception :
|
|
message.error.javamodel_exception = Java Model Exception :
|
|
message.error.runtime_exception = Runtime Exception :
|
|
message.error.invocationtarget_exception = Invocation Target Exception :
|
|
message.error.interrupted_exception = Interrupted Exception :
|
|
message.error.ruleset_not_found = Rule set not found !
|
|
message.error.importing_ruleset = Error when importing the rule set.
|
|
message.error.exporting_ruleset = IO Error when exporting the rule set.
|
|
message.error.reading_preference = Error reading rule set preferences
|
|
message.error.writing_preference = Error storing rule set preferences
|
|
message.error.storing_property = Error when writing project properties
|
|
message.error.find_marker = Error when searching for PMD markers
|
|
message.error.loading_ruleset = The ruleset cannot be loaded from project. Use the plugin configured ruleset instead.
|
|
message.error.view_exception = Exception during initialization of a view or viewpart :
|
|
message.error.file_not_found = File not found :
|
|
message.error.creating_report = Report cannot be created since no CPD was performed
|
|
|
|
# Question messages
|
|
message.question.title = PMD Question
|
|
message.question.rules_changed = Rules settings have changed. Do you want to do a full rebuild ?
|
|
message.question.rebuild_project = The project PMD configuration has changed, do you want to rebuild the project now? If you select No, rule violations will not update until the next time you save a file.
|
|
message.question.create_ruleset_file = The project doesn't contain a ruleset file. Do you want to create a ruleset from the configured properties ?
|
|
|
|
# Confirmation message
|
|
message.confirm.title = PMD Confirmation
|
|
message.confirm.ruleset_exists = File already exists. Overwrite ?
|
|
message.confirm.clear_ruleset = All rules are to be deleted. Are you sure ?
|
|
message.confirm.review_multiple_markers = Only one violation at a time can be reviewed. Confirm review for the first selected violation ?
|
|
|
|
# Information message
|
|
message.information.title = PMD Information
|
|
message.information.ruleset_exported = Rule set successfully exported
|
|
|
|
# Warning message
|
|
message.warning.title = PMD Warning
|
|
message.warning.name_mandatory = A rule must have a name
|
|
message.warning.priority_mandatory = Priority is mandatory
|
|
message.warning.message_mandatory = Violation message is mandatory
|
|
message.warning.xpath_mandatory = XPath is mandatory
|
|
message.warning.class_invalid = Invalid implementation class. The class must be in the plugin classpath and implement the Rule interface. See the related "how to use custom ruleset" in the online documentation.
|
|
|
|
# Priority labels
|
|
priority.error_high = Error high
|
|
priority.error = Error
|
|
priority.warning_high = Warning high
|
|
priority.warning = Warning
|
|
priority.information = Information
|