Changeset 18918 in josm for trunk/tools/pmd


Ignore:
Timestamp:
2023-12-19T17:09:19+01:00 (12 months ago)
Author:
taylor.smock
Message:

Fix #23290: Validate the regions a tag is expected to be in (patch by Sarabjeet108, modified)

Modifications are as follows:

  • Allow the use of the new region attributes for keys inside a preset
  • Basic tests

regions comes from Vespucci's extensions: https://vespucci.io/tutorials/presets/#extensions

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/pmd/josm-ruleset.xml

    r18629 r18918  
    9393  <rule ref="category/java/codestyle.xml/MethodNamingConventions">
    9494    <properties>
    95         <property name="violationSuppressXPath" value="//MethodDeclaration/../../..[@SimpleName='Functions' or @SimpleName='PseudoClasses' or @SimpleName='Role' or @SimpleName='TaggingPreset']"/>
     95        <property name="violationSuppressXPath" value="//MethodDeclaration/../../..[@SimpleName='Functions' or @SimpleName='PseudoClasses' or @SimpleName='Role' or @SimpleName='TaggingPreset' or @SimpleName='RegionSpecific']"/>
    9696    </properties>
    9797  </rule>
Note: See TracChangeset for help on using the changeset viewer.