Skip to content

Commit

Permalink
Added more items to .gitattributes.
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexSkrypnyk committed Nov 17, 2024
1 parent 7c8f11e commit bb2adac
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,11 @@
# /phpmd.xml export-ignore
# /phpstan.neon export-ignore
# /phpunit.xml export-ignore
# /rector.php export-ignore
#;> PHP
#;< NODEJS
# /.npmignore export-ignore
#;> NODEJS
#;< RENOVATE
# /renovate.json export-ignore
#;> RENOVATE
1 change: 1 addition & 0 deletions init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,7 @@ remove_pr_template() {
remove_renovate() {
rm -f renovate.json || true
rm -Rf docs/content/ci/renovate.mdx || true
remove_tokens_with_content "RENOVATE"

Check warning on line 247 in init.sh

View check run for this annotation

Codecov / codecov/patch

init.sh#L247

Added line #L247 was not covered by tests
}

remove_docs() {
Expand Down
4 changes: 4 additions & 0 deletions tests/scaffold/_assert_init.bash
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ assert_files_present_php() {
assert_file_not_contains ".gitattributes" "# /phpmd.xml"
assert_file_not_contains ".gitattributes" "# /phpstan.neon"
assert_file_not_contains ".gitattributes" "# /phpunit.xml"
assert_file_not_contains ".gitattributes" "# /rector.php"

assert_file_exists ".github/workflows/test-php.yml"
assert_file_exists ".github/workflows/release-php.yml"
Expand All @@ -83,6 +84,7 @@ assert_files_present_php() {
assert_file_exists "phpmd.xml"
assert_file_exists "phpstan.neon"
assert_file_exists "phpunit.xml"
assert_file_exists "rector.php"
assert_dir_exists "tests/phpunit"

assert_dir_not_contains_string "${dir}" "YourNamespace"
Expand All @@ -106,6 +108,7 @@ assert_files_absent_php() {
assert_file_not_contains ".gitattributes" "/phpmd.xml"
assert_file_not_contains ".gitattributes" "/phpstan.neon"
assert_file_not_contains ".gitattributes" "/phpunit.xml"
assert_file_not_contains ".gitattributes" "/rector.php"

assert_file_not_exists ".github/workflows/test-php.yml"
assert_file_not_exists ".github/workflows/release-php.yml"
Expand All @@ -116,6 +119,7 @@ assert_files_absent_php() {
assert_file_not_exists "phpmd.xml"
assert_file_not_exists "phpstan.neon"
assert_file_not_exists "phpunit.xml"
assert_file_not_exists "rector.php"
assert_dir_not_exists "tests/phpunit"

assert_files_absent_php_command "${dir}"
Expand Down
1 change: 1 addition & 0 deletions tests/scaffold/functional.init.bats
Original file line number Diff line number Diff line change
Expand Up @@ -474,6 +474,7 @@ export SCRIPT_FILE="init.sh"
assert_files_present_shell "${BUILD_DIR}"

assert_file_not_exists "renovate.json"
assert_file_not_contains ".gitattributes" "renovate"

assert_output_contains "Initialization complete."
}
Expand Down

0 comments on commit bb2adac

Please sign in to comment.