feat: Adding Google Analytics and editorconf.json to code format #4

Merged
rdenadai merged 1 commit from rdenadai/gtag-and-editorconf into main 2025-09-09 20:46:29 +00:00
rdenadai commented 2025-09-09 20:45:10 +00:00 (Migrated from github.com)
No description provided.
copilot-pull-request-reviewer[bot] (Migrated from github.com) reviewed 2025-09-09 20:45:26 +00:00
copilot-pull-request-reviewer[bot] (Migrated from github.com) left a comment

Pull Request Overview

This PR adds Google Analytics tracking to the website and implements code formatting standardization through an .editorconfig file. The changes focus on improving analytics capabilities and establishing consistent code formatting across HTML templates.

  • Added Google Analytics tracking script to the base template
  • Created .editorconfig file to standardize code formatting
  • Reformatted HTML templates to follow consistent multi-line attribute formatting

Reviewed Changes

Copilot reviewed 11 out of 11 changed files in this pull request and generated 2 comments.

File Description
templates/base.html Added Google Analytics script and reformatted HTML attributes to single lines
.editorconfig New configuration file defining code formatting standards
templates/pages/*.html Reformatted HTML attributes from multi-line to single-line format
templates/pages/ai-hype-sanity-check/*.html Reformatted HTML attributes from multi-line to single-line format

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

## Pull Request Overview This PR adds Google Analytics tracking to the website and implements code formatting standardization through an .editorconfig file. The changes focus on improving analytics capabilities and establishing consistent code formatting across HTML templates. - Added Google Analytics tracking script to the base template - Created .editorconfig file to standardize code formatting - Reformatted HTML templates to follow consistent multi-line attribute formatting ### Reviewed Changes Copilot reviewed 11 out of 11 changed files in this pull request and generated 2 comments. | File | Description | | ---- | ----------- | | templates/base.html | Added Google Analytics script and reformatted HTML attributes to single lines | | .editorconfig | New configuration file defining code formatting standards | | templates/pages/*.html | Reformatted HTML attributes from multi-line to single-line format | | templates/pages/ai-hype-sanity-check/*.html | Reformatted HTML attributes from multi-line to single-line format | --- <sub>**Tip:** Customize your code reviews with copilot-instructions.md. <a href="/rdenadai/rdenadai.com.br/new/main/.github?filename=copilot-instructions.md" class="Link--inTextBlock" target="_blank" rel="noopener noreferrer">Create the file</a> or <a href="https://docs.github.com/en/copilot/customizing-copilot/adding-repository-custom-instructions-for-github-copilot" class="Link--inTextBlock" target="_blank" rel="noopener noreferrer">learn how to get started</a>.</sub>
@ -0,0 +7,4 @@
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
max_line_length = 120
copilot-pull-request-reviewer[bot] (Migrated from github.com) commented 2025-09-09 20:45:26 +00:00

The max_line_length setting of 120 characters conflicts with the actual formatting changes made in the HTML templates, where very long lines exceed this limit (e.g., lines with multiple CSS classes). Consider either increasing this value or applying line wrapping to maintain consistency with the defined standard.

The max_line_length setting of 120 characters conflicts with the actual formatting changes made in the HTML templates, where very long lines exceed this limit (e.g., lines with multiple CSS classes). Consider either increasing this value or applying line wrapping to maintain consistency with the defined standard.
copilot-pull-request-reviewer[bot] (Migrated from github.com) commented 2025-09-09 20:45:26 +00:00

The Google Analytics tracking ID 'G-B4QSP6YL4P' is hardcoded in the template. Consider using an environment variable or configuration setting to avoid exposing tracking IDs in source code and enable different IDs for different environments (development, staging, production).

The Google Analytics tracking ID 'G-B4QSP6YL4P' is hardcoded in the template. Consider using an environment variable or configuration setting to avoid exposing tracking IDs in source code and enable different IDs for different environments (development, staging, production).
Sign in to join this conversation.
No description provided.