-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs(README.md): remove extra space in paragraph for better readability style(index.html): add newline at end of file to adhere to best practices style(CODE_OF_CONDUCT.md): remove unnecessary leading spaces for better readability docs(CONTRIBUTING.md): remove unnecessary blank lines for cleaner code The changes were made to improve the readability and cleanliness of the code and documentation. The extra space in the README.md file was removed to enhance readability. A newline was added at the end of the index.html file to adhere to best practices. Unnecessary leading spaces were removed from the CODE_OF_CONDUCT.md file for better readability. Lastly, unnecessary blank lines were removed from the CONTRIBUTING.md file to make the code cleaner. feat: add pre-commit configuration file A pre-commit configuration file has been added to the project to automate the process of checking for common issues before commits. This includes checks for trailing whitespace, file formatting, and preventing commits to the main branch. It also includes checks for potential security leaks using Gitleaks and code formatting using Prettier. This will help maintain code quality and prevent potential issues from being committed to the repository.
- Loading branch information
Showing
5 changed files
with
39 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# .pre-commit-config.yaml | ||
# This file contains the configuration for pre-commit hooks. | ||
# Each hook helps maintain code quality by running automated checks before commits. | ||
# | ||
exclude: '(\..*\.y[a]?ml|\.github/workflows)' | ||
repos: | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v4.6.0 | ||
hooks: | ||
- id: no-commit-to-branch | ||
args: ['--branch', 'main'] # prevent local commits to main branch | ||
- id: end-of-file-fixer | ||
- id: trailing-whitespace | ||
- id: check-yaml | ||
- id: check-json | ||
- id: check-toml | ||
- id: check-ast | ||
- id: debug-statements | ||
- repo: https://github.com/gitleaks/gitleaks | ||
rev: v8.18.2 | ||
hooks: | ||
- id: gitleaks | ||
- repo: https://github.com/pre-commit/mirrors-prettier | ||
rev: v4.0.0-alpha.8 | ||
hooks: | ||
- id: prettier | ||
types_or: [json, toml, yaml, markdown] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,4 +12,4 @@ | |
<h1> {{ my_ip_is }} </h1> | ||
</center> | ||
</body> | ||
</html> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters