Update and fix rat-excludes It seems that Rat's -E option expects regexes that are matched against the filename without directory.
Project: http://git-wip-us.apache.org/repos/asf/lucy/repo Commit: http://git-wip-us.apache.org/repos/asf/lucy/commit/7a02b3a1 Tree: http://git-wip-us.apache.org/repos/asf/lucy/tree/7a02b3a1 Diff: http://git-wip-us.apache.org/repos/asf/lucy/diff/7a02b3a1 Branch: refs/heads/master Commit: 7a02b3a1483666d43a9b3784c76f210e4e7b76e8 Parents: 8fd3d58 Author: Nick Wellnhofer <wellnho...@aevum.de> Authored: Sat Jan 9 15:40:33 2016 +0100 Committer: Nick Wellnhofer <wellnho...@aevum.de> Committed: Sat Jan 9 15:56:18 2016 +0100 ---------------------------------------------------------------------- devel/conf/rat-excludes | 58 ++++++++++++-------------------------------- 1 file changed, 16 insertions(+), 42 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/lucy/blob/7a02b3a1/devel/conf/rat-excludes ---------------------------------------------------------------------- diff --git a/devel/conf/rat-excludes b/devel/conf/rat-excludes index 676f566..cc40987 100644 --- a/devel/conf/rat-excludes +++ b/devel/conf/rat-excludes @@ -14,69 +14,43 @@ # limitations under the License. # Ignore the .git directory. -.git/** +\.git # CHANGES and MANIFEST files do not require license headers. CHANGES -perl/MANIFEST +MANIFEST # doc file does not require license. CONTRIBUTING # The Lemon parser generator is in the public domain. See LUCY-173. -lemon/lemon.c -lemon/lempar.c +lemon\.c +lempar\.c # The Snowball stemmer source code files do not contain license headers, by # choice of the Snowball developers. See # modules/analysis/snowstem/source/README. -modules/analysis/snowstem/source/include/libstemmer.h -modules/analysis/snowstem/source/libstemmer/libstemmer_utf8.c -modules/analysis/snowstem/source/libstemmer/modules_utf8.h -modules/analysis/snowstem/source/runtime/api.c -modules/analysis/snowstem/source/runtime/api.h -modules/analysis/snowstem/source/runtime/header.h -modules/analysis/snowstem/source/runtime/utilities.c -modules/analysis/snowstem/source/src_c/*.c -modules/analysis/snowstem/source/src_c/*.h - -# JSON is a commentless format, so this file cannot have a license header. It -# is derived from Snowball sources, and its licensing situation is documented -# in the README file next to it. -modules/analysis/snowstem/source/test/tests.json +snowstem # This file is autogenerated, as indicated in the comment at the top. -modules/analysis/snowstop/source/snowball_stoplists.c +snowball_stoplists\.c # The Unicode license as applied to utf8proc and the Unicode Character Database # was dealt with in LEGAL-110. -modules/unicode/utf8proc/utf8proc_data.c -modules/unicode/ucd/WordBreak.tab -modules/unicode/ucd/WordBreakTest.json +utf8proc_data\.h +WordBreak\.tab -# JSON does not allow comments -modules/unicode/utf8proc/tests.json +# The text of the US constitution is in the public domain. +us_constitution -# For whatever reason, RAT does not recognize the MIT license of utf8proc.h -# and utf8proc.c. -modules/unicode/utf8proc/utf8proc.h -modules/unicode/utf8proc/utf8proc.c -modules/unicode/utf8proc/utf8proc_data.h +# Markdown does not allow comments +.*\.md -# The text of the US constitution is in the public domain. -perl/sample/us_constitution/*.txt +# JSON does not allow comments +.*\.json # Clownfish parcel files (.cfp) are in JSON format and cannot have comments. -core/Lucy.cfp -core/TestLucy.cfp +.*\.cfp # gitignore files should be ignored -.gitignore -c/.gitignore -charmonizer/.gitignore -core/Lucy/Util/Json/.gitignore -lemon/.gitignore -perl/.gitignore -perl/lib/.gitignore -perl/lib/Lucy/.gitignore -perl/lib/LucyX/Search/.gitignore +\.gitignore