{"id":198,"date":"2009-12-01T12:37:38","date_gmt":"2009-12-01T10:37:38","guid":{"rendered":"http:\/\/blog.ansuz.nl\/?p=198"},"modified":"2009-12-01T12:37:38","modified_gmt":"2009-12-01T10:37:38","slug":"exclude-files-from-flex-pmd","status":"publish","type":"post","link":"http:\/\/blog.ansuz.nl\/index.php\/2009\/12\/01\/exclude-files-from-flex-pmd\/","title":{"rendered":"Exclude files from Flex PMD"},"content":{"rendered":"<p>You can exclude files and\/or packages from Flex PMD by creating your own rule set, use the &#8220;exclude-pattern&#8221; tag to exclude files.<\/p>\n<div id=\"ig-sh-1\" class=\"syntax_hilite\">\n\n\t\t<div class=\"toolbar\">\n\n\t\t<div class=\"view-different-container\">\n\t\t\t\t\t\t<a href=\"#\" class=\"view-different\">&lt; View <span>plain text<\/span> &gt;<\/a>\n\t\t\t\t\t<\/div>\n\n\t\t<div class=\"language-name\">xml<\/div>\n\n\t\t\n\t\t<br clear=\"both\">\n\n\t<\/div>\n\t\n\t<div class=\"code\">\n\t\t<ol class=\"xml\" style=\"font-family:monospace\"><li style=\"font-weight: normal;vertical-align:top\"><div style=\"font: normal normal 1em\/1.2em monospace;margin:0;padding:0;background:none;vertical-align:top\"><span style=\"color: #ddbb00\">&amp;lt;<\/span>ruleset name=&quot;myruleset&quot;<\/div><\/li>\n<li style=\"font-weight: normal;vertical-align:top\"><div style=\"font: normal normal 1em\/1.2em monospace;margin:0;padding:0;background:none;vertical-align:top\">xmlns=...<span style=\"color: #ddbb00\">&amp;gt;<\/span><\/div><\/li>\n<li style=\"font-weight: normal;vertical-align:top\"><div style=\"font: normal normal 1em\/1.2em monospace;margin:0;padding:0;background:none;vertical-align:top\"><span style=\"color: #ddbb00\">&amp;lt;<\/span>description<span style=\"color: #ddbb00\">&amp;gt;<\/span>My ruleset<span style=\"color: #ddbb00\">&amp;lt;<\/span>\/description<span style=\"color: #ddbb00\">&amp;gt;<\/span><\/div><\/li>\n<li style=\"font-weight: normal;vertical-align:top\"><div style=\"font: normal normal 1em\/1.2em monospace;margin:0;padding:0;background:none;vertical-align:top\"><span style=\"color: #ddbb00\">&amp;lt;<\/span>exclude-pattern<span style=\"color: #ddbb00\">&amp;gt;<\/span>.*\/some\/package\/.*<span style=\"color: #ddbb00\">&amp;lt;<\/span>\/exclude-pattern<span style=\"color: #ddbb00\">&amp;gt;<\/span><\/div><\/li>\n<li style=\"font-weight: normal;vertical-align:top\"><div style=\"font: normal normal 1em\/1.2em monospace;margin:0;padding:0;background:none;vertical-align:top\"><span style=\"color: #ddbb00\">&amp;lt;<\/span>exclude-pattern<span style=\"color: #ddbb00\">&amp;gt;<\/span>.*\/some\/other\/package\/FunkyClassNamePrefix.*<span style=\"color: #ddbb00\">&amp;lt;<\/span>\/exclude-pattern<span style=\"color: #ddbb00\">&amp;gt;<\/span><\/div><\/li>\n<li style=\"font-weight: normal;vertical-align:top\"><div style=\"font: normal normal 1em\/1.2em monospace;margin:0;padding:0;background:none;vertical-align:top\"><span style=\"color: #ddbb00\">&amp;lt;<\/span>include-pattern<span style=\"color: #ddbb00\">&amp;gt;<\/span>.*\/some\/package\/ButNotThisClass.*<span style=\"color: #ddbb00\">&amp;lt;<\/span>\/include-pattern<span style=\"color: #ddbb00\">&amp;gt;<\/span><\/div><\/li>\n<li style=\"font-weight: normal;vertical-align:top\"><div style=\"font: normal normal 1em\/1.2em monospace;margin:0;padding:0;background:none;vertical-align:top\"><span style=\"color: #ddbb00\">&amp;lt;<\/span>rule<span style=\"color: #ddbb00\">&amp;gt;<\/span>...<\/div><\/li>\n<li style=\"font-weight: normal;vertical-align:top\"><div style=\"font: normal normal 1em\/1.2em monospace;margin:0;padding:0;background:none;vertical-align:top\"><span style=\"color: #ddbb00\">&amp;lt;<\/span>\/ruleset<span style=\"color: #ddbb00\">&amp;gt;<\/span><\/div><\/li>\n<\/ol>\t<\/div>\n\n<\/div>\n\n<p>Link: <a href=\"http:\/\/pmd.sourceforge.net\/howtomakearuleset.html\" target=\"_blank\">http:\/\/pmd.sourceforge.net\/howtomakearuleset.html<\/a><\/p>\n<!-- AddThis Advanced Settings generic via filter on the_content --><!-- AddThis Share Buttons generic via filter on the_content -->","protected":false},"excerpt":{"rendered":"<p>You can exclude files and\/or packages from Flex PMD by creating your own rule set, use the &#8220;exclude-pattern&#8221; tag to exclude files. &lt; View plain text &gt; xml &amp;lt;ruleset name=&quot;myruleset&quot; xmlns=&#8230;&amp;gt; &amp;lt;description&amp;gt;My ruleset&amp;lt;\/description&amp;gt; &amp;lt;exclude-pattern&amp;gt;.*\/some\/package\/.*&amp;lt;\/exclude-pattern&amp;gt; &amp;lt;exclude-pattern&amp;gt;.*\/some\/other\/package\/FunkyClassNamePrefix.*&amp;lt;\/exclude-pattern&amp;gt; &amp;lt;include-pattern&amp;gt;.*\/some\/package\/ButNotThisClass.*&amp;lt;\/include-pattern&amp;gt; &amp;lt;rule&amp;gt;&#8230; &amp;lt;\/ruleset&amp;gt; Link: http:\/\/pmd.sourceforge.net\/howtomakearuleset.html<!-- AddThis Advanced Settings generic via filter on get_the_excerpt --><!-- AddThis Share Buttons generic via filter on get_the_excerpt --><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[],"class_list":["post-198","post","type-post","status-publish","format-standard","hentry","category-random"],"_links":{"self":[{"href":"http:\/\/blog.ansuz.nl\/index.php\/wp-json\/wp\/v2\/posts\/198","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/blog.ansuz.nl\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/blog.ansuz.nl\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/blog.ansuz.nl\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/blog.ansuz.nl\/index.php\/wp-json\/wp\/v2\/comments?post=198"}],"version-history":[{"count":4,"href":"http:\/\/blog.ansuz.nl\/index.php\/wp-json\/wp\/v2\/posts\/198\/revisions"}],"predecessor-version":[{"id":202,"href":"http:\/\/blog.ansuz.nl\/index.php\/wp-json\/wp\/v2\/posts\/198\/revisions\/202"}],"wp:attachment":[{"href":"http:\/\/blog.ansuz.nl\/index.php\/wp-json\/wp\/v2\/media?parent=198"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/blog.ansuz.nl\/index.php\/wp-json\/wp\/v2\/categories?post=198"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/blog.ansuz.nl\/index.php\/wp-json\/wp\/v2\/tags?post=198"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}