Skip to content

Commit

Permalink
fix: Correct Git attribute entries for moved reporters
Browse files Browse the repository at this point in the history
As plugins are separate projects now, also use separate `.gitattribute`
files.

Signed-off-by: Sebastian Schuberth <[email protected]>
  • Loading branch information
sschuberth committed Jun 25, 2023
1 parent 39013ad commit 1d97117
Show file tree
Hide file tree
Showing 13 changed files with 27 additions and 8 deletions.
8 changes: 0 additions & 8 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -12,24 +12,16 @@ gradlew text eol=lf
# Use Unix line endings for expected test results for consistency across platforms.
**/src/*/assets/**/*expected*.txt text eol=lf
**/src/*/assets/**/*expected*.yml text eol=lf
reporter/src/funTest/assets/*-expected-* text eol=lf

# Use Unix line endings for Freemarker templates for consistency across platforms.
reporter/src/main/resources/**/*.ftl text eol=lf

# Use Unix line endings for scan results which are misused for also testing the calculation of the SPDX package verification code.
scanner/src/test/assets/*.json text eol=lf

# Use Unix line endings for JavaScript source code to avoid problems with eslint.
plugins/reporters/web-app-template/**/*.js text eol=lf

# Use Unix line endings for SPDX license texts for consistency across platforms.
utils/spdx/src/main/resources/exceptions/* text eol=lf
utils/spdx/src/main/resources/licenserefs/* text eol=lf
utils/spdx/src/main/resources/licenses/* text eol=lf

# Fix GitHub language statistics, see https://github.com/github/linguist#using-gitattributes.
plugins/reporters/web-app-template/public/index.html linguist-generated=true
utils/spdx/src/main/resources/exceptions/* linguist-detectable=false
utils/spdx/src/main/resources/licenserefs/* linguist-detectable=false
utils/spdx/src/main/resources/licenses/* linguist-detectable=false
Expand Down
2 changes: 2 additions & 0 deletions plugins/reporters/asciidoc/src/funTest/assets/.gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Use Unix line endings for expected test results for consistency across platforms.
*-expected-* text eol=lf
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Use Unix line endings for Freemarker templates for consistency across platforms.
**/*.ftl text eol=lf
2 changes: 2 additions & 0 deletions plugins/reporters/cyclonedx/src/funTest/assets/.gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Use Unix line endings for expected test results for consistency across platforms.
*-expected-* text eol=lf
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Use Unix line endings for expected test results for consistency across platforms.
*-expected-* text eol=lf
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Use Unix line endings for Freemarker templates for consistency across platforms.
**/*.ftl text eol=lf
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Use Unix line endings for expected test results for consistency across platforms.
*-expected-* text eol=lf
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Use Unix line endings for Freemarker templates for consistency across platforms.
**/*.ftl text eol=lf
2 changes: 2 additions & 0 deletions plugins/reporters/gitlab/src/funTest/assets/.gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Use Unix line endings for expected test results for consistency across platforms.
*-expected-* text eol=lf
2 changes: 2 additions & 0 deletions plugins/reporters/spdx/src/funTest/assets/.gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Use Unix line endings for expected test results for consistency across platforms.
*-expected-* text eol=lf
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Use Unix line endings for expected test results for consistency across platforms.
*-expected-* text eol=lf
5 changes: 5 additions & 0 deletions plugins/reporters/web-app-template/.gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Use Unix line endings for JavaScript source code to avoid problems with eslint.
**/*.js text eol=lf

# Fix GitHub language statistics, see https://github.com/github/linguist#using-gitattributes.
public/index.html linguist-generated=true
2 changes: 2 additions & 0 deletions plugins/reporters/web-app/src/funTest/assets/.gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Use Unix line endings for expected test results for consistency across platforms.
*-expected-* text eol=lf

0 comments on commit 1d97117

Please sign in to comment.