[jira] [Closed] (RAT-247) apache-rat complains about Eclipse .checkstyle files

2018-02-16 Thread Ilya Basin (JIRA)

 [ 
https://issues.apache.org/jira/browse/RAT-247?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Ilya Basin closed RAT-247.
--
Resolution: Fixed

wrong project

> apache-rat complains about Eclipse .checkstyle files 
> -
>
> Key: RAT-247
> URL: https://issues.apache.org/jira/browse/RAT-247
> Project: Apache Rat
>  Issue Type: Bug
>Affects Versions: 0.12, 0.13
>Reporter: Ilya Basin
>Priority: Major
>
> See RAT-246.
> Due to my Eclipse plugins set, when I import a maven project, a .checkstyle 
> file is generated there. This breaks building maven-scm. target/rat.txt 
> mentions:
> {code}
> Files with unapproved licenses:
> .checkstyle file.
> {code}
> Rat 0.13 will ignore .checkstyle by default, but it's not released yet.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Created] (RAT-247) apache-rat complains about Eclipse .checkstyle files

2018-02-16 Thread Ilya Basin (JIRA)
Ilya Basin created RAT-247:
--

 Summary: apache-rat complains about Eclipse .checkstyle files 
 Key: RAT-247
 URL: https://issues.apache.org/jira/browse/RAT-247
 Project: Apache Rat
  Issue Type: Bug
Affects Versions: 0.12, 0.13
Reporter: Ilya Basin


See RAT-246.

Due to my Eclipse plugins set, when I import a maven project, a .checkstyle 
file is generated there. This breaks building maven-scm. target/rat.txt 
mentions:
{code}
Files with unapproved licenses:
.checkstyle file.
{code}

Rat 0.13 will ignore .checkstyle by default, but it's not released yet.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (RAT-246) .gitignore in parent dir not honored

2018-02-09 Thread Ilya Basin (JIRA)

[ 
https://issues.apache.org/jira/browse/RAT-246?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16358478#comment-16358478
 ] 

Ilya Basin commented on RAT-246:


[~hugo.hirsch] It's 
{quote}g...@github.com:basinilya/maven-wagon.git{quote}, not the apache account.

> .gitignore in parent dir not honored
> 
>
> Key: RAT-246
> URL: https://issues.apache.org/jira/browse/RAT-246
> Project: Apache Rat
>  Issue Type: Bug
>Affects Versions: 0.12, 0.13
>Reporter: Ilya Basin
>Priority: Minor
>
> Due to my Eclipse plugins set, when I import a maven project, a .checkstyle 
> file is generated there. As I learned later, RAT 0.13-SNAPSHOT ignores 
> .checkstyle files, so I repeated my tests with a different filename.
> If a pattern is explicitly mentioned in the .gitignore in the project folder, 
> RAT does not complain. However, if the pattern is only mentioned in a parent 
> .gitignore, the RAT check fails.
> {code:java}
> [il@reallin wagon-scm]$ touch .someignoredfile
> [il@reallin wagon-scm]$ echo .someignoredfile >>../../.gitignore
> [il@reallin wagon-scm]$ git add .someignoredfile
> The following paths are ignored by one of your .gitignore files:
> wagon-providers/wagon-scm/.someignoredfile
> Use -f if you really want to add them.
> fatal: no files added
> [il@reallin wagon-scm]$ mvn apache-rat:check
> [ERROR] Failed to execute goal org.apache.rat:apache-rat-plugin:0.12:check 
> (default-cli) on project wagon-scm: Too many files with unapproved license: 1 
> See RAT report in: target/rat.txt -> [Help 1]
> [il@reallin wagon-scm]$ cat target/rat.txt
> Files with unapproved licenses:
>   .someignoredfile
> [il@reallin wagon-scm]$ echo .someignoredfile >>.gitignore
> [il@reallin wagon-scm]$ mvn apache-rat:check
> [INFO] BUILD SUCCESS
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (RAT-246) .gitignore in parent dir not honored

2018-02-09 Thread Ilya Basin (JIRA)

[ 
https://issues.apache.org/jira/browse/RAT-246?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16358360#comment-16358360
 ] 

Ilya Basin commented on RAT-246:


g...@github.com:basinilya/maven-wagon.git , branch RAT-246

I added a shell script "rat-246.sh" to the root to demonstrate the problem.

I'm using the plugin version 0.13-SNAPSHOT, from the apache-snapshots maven 
repo.

> .gitignore in parent dir not honored
> 
>
> Key: RAT-246
> URL: https://issues.apache.org/jira/browse/RAT-246
> Project: Apache Rat
>  Issue Type: Bug
>Affects Versions: 0.12, 0.13
>Reporter: Ilya Basin
>Priority: Minor
>
> Due to my Eclipse plugins set, when I import a maven project, a .checkstyle 
> file is generated there. As I learned later, RAT 0.13-SNAPSHOT ignores 
> .checkstyle files, so I repeated my tests with a different filename.
> If a pattern is explicitly mentioned in the .gitignore in the project folder, 
> RAT does not complain. However, if the pattern is only mentioned in a parent 
> .gitignore, the RAT check fails.
> {code:java}
> [il@reallin wagon-scm]$ touch .someignoredfile
> [il@reallin wagon-scm]$ echo .someignoredfile >>../../.gitignore
> [il@reallin wagon-scm]$ git add .someignoredfile
> The following paths are ignored by one of your .gitignore files:
> wagon-providers/wagon-scm/.someignoredfile
> Use -f if you really want to add them.
> fatal: no files added
> [il@reallin wagon-scm]$ mvn apache-rat:check
> [ERROR] Failed to execute goal org.apache.rat:apache-rat-plugin:0.12:check 
> (default-cli) on project wagon-scm: Too many files with unapproved license: 1 
> See RAT report in: target/rat.txt -> [Help 1]
> [il@reallin wagon-scm]$ cat target/rat.txt
> Files with unapproved licenses:
>   .someignoredfile
> [il@reallin wagon-scm]$ echo .someignoredfile >>.gitignore
> [il@reallin wagon-scm]$ mvn apache-rat:check
> [INFO] BUILD SUCCESS
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (RAT-246) .gitignore in parent dir not honored

2018-02-09 Thread Ilya Basin (JIRA)

[ 
https://issues.apache.org/jira/browse/RAT-246?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16358345#comment-16358345
 ] 

Ilya Basin commented on RAT-246:


The line you're adding in your diff has no effect. parseSCMIgnoresAsExcludes 
seems to be already turned on. On the contrary, setting the value to false 
indeed disables reading .gitignore even from the current directory.

 
{code:java}
diff --git a/wagon-providers/wagon-scm/pom.xml 
b/wagon-providers/wagon-scm/pom.xml
old mode 100644
new mode 100755
index 3c37818..6ad2da6
--- a/wagon-providers/wagon-scm/pom.xml
+++ b/wagon-providers/wagon-scm/pom.xml
@@ -82,6 +82,24 @@ under the License.
   
 
   
+
+   
+   org.apache.rat
+   
apache-rat-plugin
+   0.13-SNAPSHOT
+   
+   
true
+   
+   
+
 
   
+
+   
+   
+   apache-snapshots
+   
https://repository.apache.org/content/repositories/snapshots
+   
+   
+
 
{code}

> .gitignore in parent dir not honored
> 
>
> Key: RAT-246
> URL: https://issues.apache.org/jira/browse/RAT-246
> Project: Apache Rat
>  Issue Type: Bug
>Affects Versions: 0.12, 0.13
>Reporter: Ilya Basin
>Priority: Minor
>
> Due to my Eclipse plugins set, when I import a maven project, a .checkstyle 
> file is generated there. As I learned later, RAT 0.13-SNAPSHOT ignores 
> .checkstyle files, so I repeated my tests with a different filename.
> If a pattern is explicitly mentioned in the .gitignore in the project folder, 
> RAT does not complain. However, if the pattern is only mentioned in a parent 
> .gitignore, the RAT check fails.
> {code:java}
> [il@reallin wagon-scm]$ touch .someignoredfile
> [il@reallin wagon-scm]$ echo .someignoredfile >>../../.gitignore
> [il@reallin wagon-scm]$ git add .someignoredfile
> The following paths are ignored by one of your .gitignore files:
> wagon-providers/wagon-scm/.someignoredfile
> Use -f if you really want to add them.
> fatal: no files added
> [il@reallin wagon-scm]$ mvn apache-rat:check
> [ERROR] Failed to execute goal org.apache.rat:apache-rat-plugin:0.12:check 
> (default-cli) on project wagon-scm: Too many files with unapproved license: 1 
> See RAT report in: target/rat.txt -> [Help 1]
> [il@reallin wagon-scm]$ cat target/rat.txt
> Files with unapproved licenses:
>   .someignoredfile
> [il@reallin wagon-scm]$ echo .someignoredfile >>.gitignore
> [il@reallin wagon-scm]$ mvn apache-rat:check
> [INFO] BUILD SUCCESS
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (RAT-246) .gitignore in parent dir not honored

2018-02-09 Thread Ilya Basin (JIRA)

[ 
https://issues.apache.org/jira/browse/RAT-246?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16358317#comment-16358317
 ] 

Ilya Basin commented on RAT-246:


[~hugo.hirsch] project structure: g...@github.com:apache/maven-wagon.git

module: wagon-providers/wagon-scm

pom.xml has to be updated to use the newer RAT

> .gitignore in parent dir not honored
> 
>
> Key: RAT-246
> URL: https://issues.apache.org/jira/browse/RAT-246
> Project: Apache Rat
>  Issue Type: Bug
>Affects Versions: 0.12, 0.13
>Reporter: Ilya Basin
>Priority: Minor
>
> Due to my Eclipse plugins set, when I import a maven project, a .checkstyle 
> file is generated there. As I learned later, RAT 0.13-SNAPSHOT ignores 
> .checkstyle files, so I repeated my tests with a different filename.
> If a pattern is explicitly mentioned in the .gitignore in the project folder, 
> RAT does not complain. However, if the pattern is only mentioned in a parent 
> .gitignore, the RAT check fails.
> {code:java}
> [il@reallin wagon-scm]$ touch .someignoredfile
> [il@reallin wagon-scm]$ echo .someignoredfile >>../../.gitignore
> [il@reallin wagon-scm]$ git add .someignoredfile
> The following paths are ignored by one of your .gitignore files:
> wagon-providers/wagon-scm/.someignoredfile
> Use -f if you really want to add them.
> fatal: no files added
> [il@reallin wagon-scm]$ mvn apache-rat:check
> [ERROR] Failed to execute goal org.apache.rat:apache-rat-plugin:0.12:check 
> (default-cli) on project wagon-scm: Too many files with unapproved license: 1 
> See RAT report in: target/rat.txt -> [Help 1]
> [il@reallin wagon-scm]$ cat target/rat.txt
> Files with unapproved licenses:
>   .someignoredfile
> [il@reallin wagon-scm]$ echo .someignoredfile >>.gitignore
> [il@reallin wagon-scm]$ mvn apache-rat:check
> [INFO] BUILD SUCCESS
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Created] (RAT-246) .gitignore in parent dir not honored

2018-02-09 Thread Ilya Basin (JIRA)
Ilya Basin created RAT-246:
--

 Summary: .gitignore in parent dir not honored
 Key: RAT-246
 URL: https://issues.apache.org/jira/browse/RAT-246
 Project: Apache Rat
  Issue Type: Bug
Affects Versions: 0.12, 0.13
Reporter: Ilya Basin


Due to my Eclipse plugins set, when I import a maven project, a .checkstyle 
file is generated there. As I learned later, RAT 0.13-SNAPSHOT ignores 
.checkstyle files, so I repeated my tests with a different filename.

If a pattern is explicitly mentioned in the .gitignore in the project folder, 
RAT does not complain. However, if the pattern is only mentioned in a parent 
.gitignore, the RAT check fails.
{code:java}
[il@reallin wagon-scm]$ touch .someignoredfile
[il@reallin wagon-scm]$ echo .someignoredfile >>../../.gitignore

[il@reallin wagon-scm]$ git add .someignoredfile
The following paths are ignored by one of your .gitignore files:
wagon-providers/wagon-scm/.someignoredfile
Use -f if you really want to add them.
fatal: no files added

[il@reallin wagon-scm]$ mvn apache-rat:check
[ERROR] Failed to execute goal org.apache.rat:apache-rat-plugin:0.12:check 
(default-cli) on project wagon-scm: Too many files with unapproved license: 1 
See RAT report in: target/rat.txt -> [Help 1]

[il@reallin wagon-scm]$ cat target/rat.txt
Files with unapproved licenses:

  .someignoredfile

[il@reallin wagon-scm]$ echo .someignoredfile >>.gitignore

[il@reallin wagon-scm]$ mvn apache-rat:check
[INFO] BUILD SUCCESS
{code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)