Skip to content

Commit

Permalink
Add editor config and sonarcloud config
Browse files Browse the repository at this point in the history
  • Loading branch information
webaaz committed Nov 8, 2024
1 parent 46e0bc2 commit 859b350
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# This file is for unifying the coding style for different editors and IDEs
# editorconfig.org

# WordPress Coding Standards
# https://make.wordpress.org/core/handbook/coding-standards/

root = true

[*]
charset = utf-8
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
indent_style = tab

[*.yml]
indent_style = space
indent_size = 2

[*.md]
trim_trailing_whitespace = false

[{*.txt,wp-config-sample.php}]
end_of_line = crlf
13 changes: 13 additions & 0 deletions sonar-project.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# General setup
sonar.projectKey=alma_alma-woocommerce-gateway
sonar.organization=almapay
# Path is relative to the sonar-project.properties file. Replace "\" by "/" on Windows.
sonar.sources=src/
sonar.exclusions=src/.composer/**,src/.subversion/**,src/bin/**,src/build/**,src/languages/**,src/vendor/**,src/.phpcs.xml.dist,src/.phpunit.result.cache,src/phpcs.xml,src/phpunit.xml.dist,src/phpcs.xml
# Test folders
sonar.tests=src/tests/
sonar.test.inclusions=src/tests/**/*
# Encoding of the source code. Default is default system encoding
sonar.sourceEncoding=UTF-8
# Exclude files from coverage
sonar.coverage.exclusions=src/tests/**/*

0 comments on commit 859b350

Please sign in to comment.