Claudenw opened a new pull request, #409:
URL: https://github.com/apache/creadur-rat/pull/409
Fix for RAT-98
Type GENERATED has been removed
Type IGNORED has been added
Formerly GENERATED files are now listed as IGNORED
The the optional boolean attribute isDirectory was added to the report XSD
for resource nodes.
### XML report
Ignored files are added to the XML report as follows:
All ignored files have the isDirectory attribute set.
Ignored directories have the type set to IGNORED they are reported with a
mediaType of application/octet-stream. No file within or below the ignored
directory is reported.
Files ignored by rule have the type set to IGNORED with the mediaType set
but no encoding is specified
Files ignored because they are generated have the type set to IGNORED with
the mediaType and encoding set as expected for the file.
**file ignored by rule**
```
<resource isDirectory="false" mediaType="text/plain" name="/ignored.file"
type="IGNORED"/>
```
**Ignored directory**
```
<resource isDirectory="true" mediaType="application/octet-stream"
name="/ignored" type="IGNORED"/>
```
** generated file **
```
<resource encoding="ISO-8859-1" isDirectory="false" mediaType="text/plain"
name="/generated.file" type="IGNORED"/>
```
### Text report
**file ignored by rule**
```
/ignored.file
I text/plain
```
**Ignored directory**
```
/ignored
I application/octet-stream (directory)
```
** generated file **
```
/generated.file
I plain/text ISO-8859-1
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]