Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RAT-98: Updated tests for gitignore changes & deprecated options #417

Merged
merged 145 commits into from
Feb 13, 2025
Merged
Show file tree
Hide file tree
Changes from 144 commits
Commits
Show all changes
145 commits
Select commit Hold shift + click to select a range
64db218
added working directory
Claudenw Jan 13, 2025
4a68b3c
updated merge issues
Claudenw Jan 13, 2025
9939413
initial design comments
Claudenw Dec 14, 2024
8d5d83b
fixes for tests
Claudenw Dec 21, 2024
0b9b8b9
fixes for RAT-335
Claudenw Dec 22, 2024
058120d
fixes for. gitignore and other descending processors
Claudenw Dec 25, 2024
b3990be
cleaned up checkstyle issues
Claudenw Dec 25, 2024
26b881d
cleaned up checkstyle issues
Claudenw Dec 25, 2024
ae25ee2
fixed and cleaned up plugin tests
Claudenw Dec 26, 2024
53be57e
fixed and cleaned up plugin tests
Claudenw Dec 26, 2024
eba23cb
fixed and cleaned up plugin tests
Claudenw Dec 26, 2024
b6a5ce2
fixed and cleaned up plugin tests
Claudenw Dec 26, 2024
ab8e00a
updated and fixed plugin tests
Claudenw Dec 27, 2024
5fb0fdf
fixed last tests in plugin module
Claudenw Dec 27, 2024
4b564ba
fixed Ant task issues
Claudenw Dec 27, 2024
0e40a8b
added missing files
Claudenw Dec 27, 2024
528e46a
fixed tests on Windows
Claudenw Dec 27, 2024
52f0589
turned on mvn debugging
Claudenw Dec 27, 2024
0741f3a
Fixed command line file name processing
Claudenw Dec 28, 2024
e6c723a
added test failure info
Claudenw Dec 28, 2024
7e9c7dd
Added more info to decompose messages
Claudenw Dec 28, 2024
07ca02a
updated some tests
Claudenw Jan 1, 2025
136ddb6
clean up of remaingin core tests
Claudenw Jan 2, 2025
047358b
fixed archive processing and naming issues
Claudenw Jan 4, 2025
9748adf
fixed checkstyle issues
Claudenw Jan 4, 2025
c23f19d
added debug to test
Claudenw Jan 4, 2025
1ce3724
added debug to test
Claudenw Jan 4, 2025
754e698
added debug to test
Claudenw Jan 4, 2025
99a550a
Added detail to decomposition
Claudenw Jan 4, 2025
e03c483
used decomposition in more tests
Claudenw Jan 4, 2025
0b79d61
used decomposition in more tests
Claudenw Jan 4, 2025
143def2
cleaned up decomposition reports
Claudenw Jan 4, 2025
460b85b
cleaned up decomposition reports
Claudenw Jan 4, 2025
aeb058f
Added wild logging to find Windows problem
Claudenw Jan 4, 2025
0023c54
removed excess builds
Claudenw Jan 4, 2025
b6f09a5
Added wild logging to find Windows problem
Claudenw Jan 4, 2025
295093f
debugging for tests
Claudenw Jan 5, 2025
db8d117
debugging for tests
Claudenw Jan 5, 2025
af28b37
debugging for tests
Claudenw Jan 5, 2025
76da4a7
debugging for tests
Claudenw Jan 5, 2025
82e0d37
debugging for tests
Claudenw Jan 5, 2025
fc7bd52
removed unused imports
Claudenw Jan 5, 2025
86ce6ca
possible fix
Claudenw Jan 5, 2025
59b05f5
debugging for tests
Claudenw Jan 5, 2025
f5847c9
debugging for tests
Claudenw Jan 5, 2025
d7b6006
put full testing back
Claudenw Jan 5, 2025
8a80dbe
Fix for windows bug
Claudenw Jan 7, 2025
9c14a1e
RAT-98: Fix typos
ottlinger Jan 6, 2025
fb1dd27
Minor cleanup
ottlinger Jan 6, 2025
e989016
removed dead lines / updated javadoc
Claudenw Jan 7, 2025
3b1ac56
fixed rebase errors
Claudenw Jan 13, 2025
9f82d3d
Added FSInfo to handle file system differences
Claudenw Jan 12, 2025
f9a46f6
updated spotbugs
Claudenw Jan 12, 2025
cefaff7
attempt to fix windows error
Claudenw Jan 12, 2025
a46a244
fixed merge error
Claudenw Jan 12, 2025
103d9db
fixed pattern match
Claudenw Jan 13, 2025
5076009
fix for file delete on windows
Claudenw Jan 14, 2025
818618f
added more descriptive failure messages
Claudenw Jan 14, 2025
faecfca
fixed merg issues
Claudenw Jan 14, 2025
a0bd888
added file converter + test
Claudenw Jan 14, 2025
12d4f1c
Minor cleanups
ottlinger Jan 14, 2025
36f8a31
Minor fixes
ottlinger Jan 14, 2025
b66ff14
fixes file list walker
Claudenw Jan 16, 2025
81a97f6
fixed deprecated messages
Claudenw Jan 17, 2025
3cef2f0
Merge remote-tracking branch 'origin/master' into RAT-98_report_skipp…
Claudenw Jan 23, 2025
53a3f8e
removed MatcherPredicate and inlined the code to make it easier to read
Claudenw Jan 27, 2025
e5073ff
Merge branch 'master' into add_file_arg_converter
Claudenw Jan 27, 2025
89192f8
implemented matcher set in ExclusionProcessor
Claudenw Jan 23, 2025
95ef0a1
Merge branch 'add_matcher_set' into 98_update
Claudenw Jan 28, 2025
b928be2
fixed NoteGuesserTest
Claudenw Jan 28, 2025
b358eee
Merge branch 'Add_workingDirectory_to_resolve_relative_document_names…
Claudenw Jan 28, 2025
7d9e739
fixed DocumentNameMatcher idiom misuse
Claudenw Feb 3, 2025
cc5724b
Merge branch 'RAT-98_fix_merge_issue' into 98_update
Claudenw Feb 3, 2025
e140777
fixed javadoc
Claudenw Feb 3, 2025
f7679b5
fixed checkstyle
Claudenw Feb 3, 2025
04a9da1
initial design comments
Claudenw Dec 14, 2024
6180a13
fixes for tests
Claudenw Dec 21, 2024
89e4e9c
fixes for RAT-335
Claudenw Dec 22, 2024
d0d7b54
fixes for. gitignore and other descending processors
Claudenw Dec 25, 2024
df6412c
cleaned up checkstyle issues
Claudenw Dec 25, 2024
3456632
cleaned up checkstyle issues
Claudenw Dec 25, 2024
cd416a9
fixed and cleaned up plugin tests
Claudenw Dec 26, 2024
5d5dab4
fixed and cleaned up plugin tests
Claudenw Dec 26, 2024
4c4c97e
fixed and cleaned up plugin tests
Claudenw Dec 26, 2024
4daa9c9
fixed and cleaned up plugin tests
Claudenw Dec 26, 2024
2bc6556
updated and fixed plugin tests
Claudenw Dec 27, 2024
4a7a5a7
fixed last tests in plugin module
Claudenw Dec 27, 2024
3bd8ae9
fixed Ant task issues
Claudenw Dec 27, 2024
1fd2550
added missing files
Claudenw Dec 27, 2024
060a4a9
fixed tests on Windows
Claudenw Dec 27, 2024
24a3974
turned on mvn debugging
Claudenw Dec 27, 2024
2f57b8d
Fixed command line file name processing
Claudenw Dec 28, 2024
c489363
added test failure info
Claudenw Dec 28, 2024
eeecd8d
Added more info to decompose messages
Claudenw Dec 28, 2024
f6c6992
updated some tests
Claudenw Jan 1, 2025
79a2b44
clean up of remaingin core tests
Claudenw Jan 2, 2025
cc16bd9
clean up of remaingin core tests
Claudenw Jan 2, 2025
08b1143
fixed archive processing and naming issues
Claudenw Jan 4, 2025
8a18223
fixed checkstyle issues
Claudenw Jan 4, 2025
68f0425
Added detail to decomposition
Claudenw Jan 4, 2025
96c1613
used decomposition in more tests
Claudenw Jan 4, 2025
9148cfe
used decomposition in more tests
Claudenw Jan 4, 2025
9484e22
Added wild logging to find Windows problem
Claudenw Jan 4, 2025
b1e170e
removed excess builds
Claudenw Jan 4, 2025
bbdd9ad
Added wild logging to find Windows problem
Claudenw Jan 4, 2025
f7bc6e5
debugging for tests
Claudenw Jan 5, 2025
c32b768
debugging for tests
Claudenw Jan 5, 2025
51a81d1
debugging for tests
Claudenw Jan 5, 2025
d1fd7b2
removed unused imports
Claudenw Jan 5, 2025
401628c
possible fix
Claudenw Jan 5, 2025
cbc9e30
debugging for tests
Claudenw Jan 5, 2025
6b6aa38
debugging for tests
Claudenw Jan 5, 2025
1e06dae
put full testing back
Claudenw Jan 5, 2025
d69d544
Fix for windows bug
Claudenw Jan 7, 2025
b8b53db
Minor cleanup
ottlinger Jan 6, 2025
c2fcdef
removed dead lines / updated javadoc
Claudenw Jan 7, 2025
10a9460
fixed rebase errors
Claudenw Jan 13, 2025
67b615f
removed MatcherPredicate and inlined the code to make it easier to read
Claudenw Jan 27, 2025
6aee0aa
added working directory
Claudenw Jan 13, 2025
3ff0436
fix for file delete on windows
Claudenw Jan 14, 2025
c2088ee
attempt to fix windows error
Claudenw Jan 12, 2025
1ee90ba
fixed pattern match
Claudenw Jan 13, 2025
e157dc5
fixes file list walker
Claudenw Jan 16, 2025
7d0c643
implemented matcher set in ExclusionProcessor
Claudenw Jan 23, 2025
4834728
fixed NoteGuesserTest
Claudenw Jan 28, 2025
3364d20
Minor cleanups
ottlinger Jan 14, 2025
3e7d699
Minor fixes
ottlinger Jan 14, 2025
3e50462
fixed javadoc
Claudenw Feb 3, 2025
ec474c3
fixed rebase issues
Claudenw Feb 4, 2025
24637cb
Merge branch '98_to_master' into RAT-98_report_skipped_files
Claudenw Feb 4, 2025
d20bfd4
Merge branch 'master' into RAT-98_report_skipped_files
Claudenw Feb 4, 2025
c7bb04d
standardized calls for FileDocument
Claudenw Feb 6, 2025
07d6cab
Merge branch 'master' into RAT-98_report_skipped_files
Claudenw Feb 6, 2025
d09481b
Merge branch 'master' into RAT-98_report_skipped_files
Claudenw Feb 7, 2025
83f01fb
Update XMLConfigurationReader.java
Claudenw Feb 7, 2025
0093ae2
Update ArchiveWalker.java
Claudenw Feb 7, 2025
e519c83
removed accidentally added invoker.properties files
Claudenw Feb 7, 2025
c9f0665
Merge branch 'master' into RAT-98_report_skipped_files
Claudenw Feb 7, 2025
b5e001a
adoped changes from master
Claudenw Feb 8, 2025
30576c4
Merge branch 'master' into RAT-98_report_skipped_files
Claudenw Feb 8, 2025
fedd682
Merge branch 'master' into RAT-98_report_skipped_files
Claudenw Feb 8, 2025
6e95e34
updated from master
Claudenw Feb 9, 2025
1f50d9a
refactored DocumentName
Claudenw Feb 9, 2025
8c97d09
Merge branch 'master' into RAT-98_report_skipped_files
Claudenw Feb 9, 2025
84b2595
Update changes.xml
Claudenw Feb 13, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
--output-style
xml
--input-exclude
**/.gitignore
--input-exclude-parsed-scm
GIT
--
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
*.md

# This makes it ignore dir3/dir3.log and dir3/file3.log
*.log

# This makes it "unignore" dir3/file3.log
!file*.log
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
*.txt
!dir1.md
file1.log
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
File without a valid license
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
File without a valid license
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
File without a valid license
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
File without a valid license

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
File without a valid license
Original file line number Diff line number Diff line change
Expand Up @@ -36,48 +36,11 @@ private static Map<String, String> mapOf(String... parts) {
output = new File(args[0])
content = output.text

//Map<ClaimStatistic.Counter, String> data = new HashMap<>()
//data.put(ClaimStatistic.Counter.APPROVED, "2")
//data.put(ClaimStatistic.Counter.ARCHIVES, "0")
//data.put(ClaimStatistic.Counter.BINARIES, "0")
//data.put(ClaimStatistic.Counter.DOCUMENT_TYPES, "3")
//data.put(ClaimStatistic.Counter.IGNORED, "6")
//data.put(ClaimStatistic.Counter.LICENSE_CATEGORIES, "2")
//data.put(ClaimStatistic.Counter.LICENSE_NAMES, "2")
//data.put(ClaimStatistic.Counter.NOTICES, "1")
//data.put(ClaimStatistic.Counter.STANDARDS, "6")
//data.put(ClaimStatistic.Counter.UNAPPROVED, "4")
//data.put(ClaimStatistic.Counter.UNKNOWN, "4")

Document document = XmlUtils.toDom(new FileInputStream(args[0]))
XPath xPath = XPathFactory.newInstance().newXPath()

//for (ClaimStatistic.Counter counter : ClaimStatistic.Counter.values()) {
// String xpath = String.format("/rat-report/statistics/statistic[@name='%s']", counter.displayName())
// Map<String, String> map = mapOf("approval",
// counter == ClaimStatistic.Counter.UNAPPROVED ? "false" : "true",
// "count", data.get(counter),
// "description", counter.getDescription())
// XmlUtils.assertAttributes(document, xPath, xpath, map)
//}

//// license categories
//XmlUtils.assertAttributes(document, xPath, "/rat-report/statistics/licenseCategory[@name='?????']",
// mapOf("count", "4" ))
//
//XmlUtils.assertAttributes(document, xPath, "/rat-report/statistics/licenseCategory[@name='AL ']",
// mapOf("count", "2" ))
//
//// license names
//XmlUtils.assertAttributes(document, xPath, "/rat-report/statistics/licenseName[@name='Apache License Version 2.0']",
// mapOf("count", "2" ))
//
//XmlUtils.assertAttributes(document, xPath, "/rat-report/statistics/licenseName[@name='Unknown license']",
// mapOf("count", "4" ))

List<String> ignoredFiles = new ArrayList<>(Arrays.asList(
"/dir1/dir1.txt",
"/dir1/file1.log",
"/dir1/.gitignore",
"/dir2/dir2.md",
"/dir3/dir3.log",
Expand All @@ -102,24 +65,4 @@ XmlUtils.assertAttributes(document, xPath, "/rat-report/statistics/documentType[
mapOf("count", "1" ))

XmlUtils.assertAttributes(document, xPath, "/rat-report/statistics/documentType[@name='STANDARD']",
mapOf("count", "6" ))

/*
TextUtils.assertPatternInTarget("^ Approved:\\s+8 ", content)
TextUtils.assertPatternInTarget("^ Archives:\\s+1 ", content)
TextUtils.assertPatternInTarget("^ Binaries:\\s+2 ", content)
TextUtils.assertPatternInTarget("^ Document types:\\s+5 ", content)
TextUtils.assertPatternInTarget("^ Ignored:\\s+1 ", content)
TextUtils.assertPatternInTarget("^ License categories:\\s+4 ", content)
TextUtils.assertPatternInTarget("^ License names:\\s+5", content)
TextUtils.assertPatternInTarget("^ Notices:\\s+2 ", content)
TextUtils.assertPatternInTarget("^ Standards:\\s+8 ", content)
TextUtils.assertPatternInTarget("^ Unapproved:\\s+2 ", content)
TextUtils.assertPatternInTarget("^ Unknown:\\s+2 ", content)

logOutput = new File(args[1])
log = logOutput.text

TextUtils.assertPatternNotInTarget("^ERROR:", log)
TextUtils.assertPatternNotInTarget("^WARN:", log)
*/
mapOf("count", "4" ))
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ public static Builder builder(final FileSystem fileSystem) {
}

/**
* Creates a builder from a File. The {@link #baseName} is set to the file name if it is a directory otherwise
* Creates a builder from a File. The {@link #baseName} is set to the file name if it is a directory otherwise
* it is set to the directory containing the file.
* @param file The file to set defaults from.
* @return the builder.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
> * Rat [Exclude Expressions](../exclusion_expression.html): The expressions that are used to match file names


A FileProcessor is a module that locates files with a specific name in the directory tree and reads from them file patterns that are translated into Rat exclude expressions. These files are normally found in the file directory tree and their restrictions normally only applies to files at the same directory level as the processed file or below. This type of file is implemented by the `org.apache.rat.config.exclusion.fileProcessors.DescendingFileProcessor`.
A FileProcessor is a module that locates files with a specific name in the directory tree and reads from them file patterns that are translated into Rat exclude expressions. These files are normally found in the file directory tree and their restrictions normally only applies to files at the same directory level as the processed file or below. This type of file is implemented by the `org.apache.rat.config.exclusion.MatcherSet.Builder`.

The `DescendingFileProcessor` takes a file name and one or more comment prefixes as in the constructor. The file name is normally a file that is generally hidden on Linux systems like ".gitignore" or ".hgignore". The `DescendingFileProcessor` will scan the directories looking for files with the specified name. If one is found it is passed to the `process(DocumentName)` method which reads the document and returns a list of exclude expressions.

Expand Down
1 change: 1 addition & 0 deletions apache-rat-plugin/.gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/target/
/invoker_target/
/src/site/apt/argument_types.txt
/invoker_target/
14 changes: 13 additions & 1 deletion apache-rat-plugin/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@
<exclude>src/it/CustomLicense/src/**/</exclude>
<!-- RAT-171: needs to be added since SCM ignores are only parsed in project root -->
<exclude>**/.bzrignore</exclude>
<exlcude>invoker_target/**</exlcude>
<exclude>src/test/resources/XmlOutputExamples/**/*</exclude>
</excludes>
</configuration>
Expand Down Expand Up @@ -246,7 +247,7 @@
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-invoker-plugin</artifactId>
<configuration>
<cloneProjectsTo>${project.build.directory}/invoker</cloneProjectsTo>
<cloneProjectsTo>${project.basedir}/invoker_target</cloneProjectsTo>
<localRepositoryPath>${project.build.directory}/local-repo</localRepositoryPath>
<addTestClassPath>true</addTestClassPath>
<settingsFile>src/it/settings.xml</settingsFile>
Expand All @@ -262,6 +263,17 @@
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-clean-plugin</artifactId>
<configuration>
<filesets>
<fileset>
<directory>invoker_target</directory>
<followSymlinks>false</followSymlinks>
</fileset>
</filesets>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-checkstyle-plugin</artifactId>
Expand Down
17 changes: 17 additions & 0 deletions apache-rat-plugin/src/it/CustomLicense/.rat/customConfig.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?xml version="1.0" encoding="UTF-8"?>
<rat-config>
<families>
<family id="CC" name="Creative Commons"/>"
</families>
<licenses>
<license family="CC" id="CC-BY-NC-ND"
name="Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International">
<any>
<text>Attribution-NonCommercial-NoDerivatives</text>
</any>
</license>
</licenses>
<approved>
<family license_ref='CC'/>
</approved>
</rat-config>
28 changes: 5 additions & 23 deletions apache-rat-plugin/src/it/CustomLicense/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -27,31 +27,13 @@
<artifactId>apache-rat-plugin</artifactId>
<version>@pom.version@</version>
<configuration>
<addDefaultLicenses>false</addDefaultLicenses>
<families>
<family>
<id>CC</id>
<name>Creative Commons</name>
</family>
</families>
<licenses>
<license>
<family>CC</family>
<id>CC-BY-NC-ND</id>
<notes/>
<name>Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International</name>
<any>
<text>Attribution-NonCommercial-NoDerivatives</text>
</any>
</license>
</licenses>
<approvedLicenses>
<approvedLicense>CC</approvedLicense>
</approvedLicenses>
<excludes>
<outputStyle>xml</outputStyle>
<config>.rat/customConfig.xml</config>
<inputExcludes>
<exclude>.rat/**</exclude>
<exclude>pom.xml</exclude>
<exclude>invoker.properties</exclude>
</excludes>
</inputExcludes>
</configuration>
</plugin>
</plugins>
Expand Down
10 changes: 5 additions & 5 deletions apache-rat-plugin/src/it/RAT-268/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,12 @@
<artifactId>apache-rat-plugin</artifactId>
<version>@pom.version@</version>
<configuration>
<counter-mins>
<counter-min>STANDARDS:0</counter-min>
</counter-mins>
<excludes>
<counterMins>
<counter>STANDARDS:0</counter>
</counterMins>
<inputExcludes>
<exclude>**/src.apt</exclude>
</excludes>
</inputExcludes>
</configuration>
</plugin>
</plugins>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@
import org.apache.rat.testhelpers.XmlUtils;
import org.junit.jupiter.api.AfterAll;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.condition.EnabledOnOs;
import org.junit.jupiter.api.condition.OS;
Expand Down Expand Up @@ -246,7 +245,6 @@ void it3() throws Exception {
/**
* Tests defining licenses in configuration
*/
@Disabled("Disabled until gitignore processing is correct")
@Test
void it5() throws Exception {
final RatCheckMojo mojo = newRatMojo("it5");
Expand Down Expand Up @@ -352,7 +350,6 @@ void rat343() throws Exception {
/**
* Tests verifying gitignore parsing
*/
@Disabled("Disabled until gitignore processing is correct")
@Test
void rat335() throws Exception {
final RatCheckMojo mojo = newRatMojo("RAT-335");
Expand Down Expand Up @@ -439,7 +436,6 @@ void rat335() throws Exception {
* So for this test we must create such a file which is specific for the current
* working directory.
*/
@Disabled("Disabled until gitignore processing is correct")
@Test
void rat362() throws Exception {
final RatCheckMojo mojo = newRatMojo("RAT-362");
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
This file intentionally has no Apache License Header.
1 change: 1 addition & 0 deletions apache-rat-plugin/src/test/resources/unit/RAT-107/.project
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
This file intentionally has no Apache License Header.
Empty file.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
This file intentionally has no Apache License Header.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
This file intentionally has no Apache License Header.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
This file intentionally has no Apache License Header.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
This file intentionally has no Apache License Header.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
This file intentionally has no Apache License Header.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
This file intentionally has no Apache License Header.
7 changes: 7 additions & 0 deletions apache-rat-plugin/src/test/resources/unit/RAT-335/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
*.md

# This makes it ignore dir3/dir3.log and dir3/file3.log
*.log

# This makes it "unignore" dir3/file3.log
!file*.log
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
*.txt
!dir1.md
file1.log
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
File without a valid license
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
File without a valid license
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
File without a valid license
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
File without a valid license

This file was deleted.

1 change: 1 addition & 0 deletions apache-rat-plugin/src/test/resources/unit/RAT-335/root.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
File without a valid license
2 changes: 2 additions & 0 deletions apache-rat-plugin/src/test/resources/unit/RAT-362/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/foo.md
target
1 change: 1 addition & 0 deletions apache-rat-plugin/src/test/resources/unit/RAT-362/foo.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
File without a valid license

This file was deleted.

5 changes: 0 additions & 5 deletions apache-rat-plugin/src/test/resources/unit/it5/.bzrignore

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<?xml version="1.0" encoding="UTF-8"?>
<rat-config>
<families>
<family id="CC" name="Creative Commons"/>"
<family id="YAL" name="Yet another license family"/>"
</families>
<licenses>
<license family="CC" id="CC-BY-NC-ND"
name="Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International">
<text>Attribution-NonCommercial-NoDerivatives</text>
</license>
<license family="YAL"
name="Yet another license">
<any>
<text>Yet another license</text>
<spdx name="YAL"/>
</any>
</license>
</licenses>
<approved>
<family license_ref='CC'/>
</approved>
</rat-config>
Loading