-
Notifications
You must be signed in to change notification settings - Fork 72
ci: lint docs etc #309
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
ci: lint docs etc #309
Conversation
|
Important Review skippedAuto incremental reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the 📝 WalkthroughWalkthroughA Makefile has been added to automate Helm chart management tasks, including documentation generation, linting, and release processes. The Authelia Helm chart README and its template were updated to include a new "Expected Minimum Configuration" section, outlining essential configuration requirements for users. Changes
Sequence Diagram(s)sequenceDiagram
participant Developer
participant Makefile
participant Helm Docs Tool
participant Chart Testing Tool (ct)
participant Chart Releaser (cr)
Developer->>Makefile: make docs
Makefile->>Helm Docs Tool: Install and run helm-docs
Developer->>Makefile: make lint
Makefile->>Chart Testing Tool (ct): Lint charts (lint-chart)
Makefile->>Chart Testing Tool (ct): Lint chart versions (lint-chart-version)
Makefile->>Chart Releaser (cr): Package changed charts (lint-chart-package)
Makefile->>Helm Docs Tool: Check README docs (lint-docs)
Developer->>Makefile: make release
Makefile->>Chart Releaser (cr): Package changed charts (release-package)
Makefile->>Chart Releaser (cr): Upload charts (release-upload)
Makefile->>Chart Releaser (cr): Update chart index (release-index)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 1
🧹 Nitpick comments (2)
Makefile (1)
1-33: Add .PHONY declarations for all non-file targets
To prevent conflicts when files with the same names exist and satisfy Make’s up-to-date checks, declare all custom targets as PHONY. For example, at the top of the Makefile add:+.PHONY: docs lint lint-chart lint-chart-version lint-chart-package lint-docs install-helm-docs release release-package release-upload release-indexAdditionally, consider defining conventional targets like
all,clean, andtest(even if they simply call existing targets or echo a message) to satisfy CI linting rules and improve discoverability.🧰 Tools
🪛 checkmake (0.2.2)
[warning] 1-1: Missing required phony target "all"
(minphony)
[warning] 1-1: Missing required phony target "clean"
(minphony)
[warning] 1-1: Missing required phony target "test"
(minphony)
[warning] 6-6: Target "lint" should be declared PHONY.
(phonydeclared)
[warning] 24-24: Target "release" should be declared PHONY.
(phonydeclared)
charts/authelia/README.md (1)
27-42: Refine wording and punctuation for clarity.
- Line 31: “the configMap follows a majority of the configuration options” is wordy; consider “mirrors the configuration options”.
- Lines 40–42: split the long sentence into shorter ones, and add commas around “i.e.” and before clauses.
Example revision:
- The configMap section (the configMap follows a majority of the configuration options in [the documentation]) + The configMap section (mirrors the configuration options in [the documentation]) - Every domain that has this option configured MUST have the same value i.e. you can have one blank and one configured but all those that are configured must be the same, and in addition if configured at all the `configMap.server.path` option must have the same value. + Every domain with this option enabled MUST use the same value. i.e., you may leave some blank and configure others, but all configured entries must match. If any are set, the `configMap.server.path` option must also use that value.🧰 Tools
🪛 LanguageTool
[style] ~31-~31: ‘a majority of the’ might be wordy. Consider a shorter alternative.
Context: ...onfigMap section (the configMap follows a majority of the configuration options in [the documen...(EN_WORDINESS_PREMIUM_A_MAJORITY_OF_THE)
[typographical] ~41-~41: Consider putting a comma before the abbreviation “i.e.”.
Context: ...ion configured MUST have the same value i.e. you can have one blank and one configur...(IE_COMMA)
[uncategorized] ~42-~42: A comma might be missing here.
Context: ...nfigured must be the same, and in addition if configured at all the `configMap.ser...(AI_EN_LECTOR_MISSING_PUNCTUATION_COMMA)
[uncategorized] ~42-~42: A comma might be missing here.
Context: ... same, and in addition if configured at all theconfigMap.server.pathoption must...(AI_EN_LECTOR_MISSING_PUNCTUATION_COMMA)
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
⛔ Files ignored due to path filters (2)
.buildkite/pipeline.yamlis excluded by!**/*.yamlcharts/authelia/Chart.yamlis excluded by!**/*.yaml
📒 Files selected for processing (3)
Makefile(1 hunks)charts/authelia/README.md(2 hunks)charts/authelia/README.md.gotmpl(1 hunks)
🧰 Additional context used
🪛 checkmake (0.2.2)
Makefile
[warning] 1-1: Missing required phony target "all"
(minphony)
[warning] 1-1: Missing required phony target "clean"
(minphony)
[warning] 1-1: Missing required phony target "test"
(minphony)
[warning] 6-6: Target "lint" should be declared PHONY.
(phonydeclared)
[warning] 24-24: Target "release" should be declared PHONY.
(phonydeclared)
🪛 LanguageTool
charts/authelia/README.md
[style] ~31-~31: ‘a majority of the’ might be wordy. Consider a shorter alternative.
Context: ...onfigMap section (the configMap follows a majority of the configuration options in [the documen...
(EN_WORDINESS_PREMIUM_A_MAJORITY_OF_THE)
[typographical] ~41-~41: Consider putting a comma before the abbreviation “i.e.”.
Context: ...ion configured MUST have the same value i.e. you can have one blank and one configur...
(IE_COMMA)
[uncategorized] ~42-~42: A comma might be missing here.
Context: ...nfigured must be the same, and in addition if configured at all the `configMap.ser...
(AI_EN_LECTOR_MISSING_PUNCTUATION_COMMA)
[uncategorized] ~42-~42: A comma might be missing here.
Context: ... same, and in addition if configured at all the configMap.server.path option must...
(AI_EN_LECTOR_MISSING_PUNCTUATION_COMMA)
🔇 Additional comments (2)
charts/authelia/README.md (2)
3-3: Approve version bump.The chart version badge has been correctly updated to 0.10.15.
44-55: Approve configuration requirements listing.The new “Expected Minimum Configuration” section clearly outlines essential sections and sub-options for storage, notifier, and authentication_backend. Indentation and structure are consistent.
| 3. Install the chart with `helm install authelia authelia/authelia` and optionally set your values with `--values values.yaml` or | ||
| via `--set [parameter]=[value]`. | ||
|
|
||
| ### Expected Minimum Configuration |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🛠️ Refactor suggestion
Use consistent top-level heading
The new section appears under ## Getting Started but is marked as ###. To align with other primary sections (## Breaking Changes, ## Values Files, etc.), change:
-### Expected Minimum Configuration
+## Expected Minimum Configuration📝 Committable suggestion
‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
| ### Expected Minimum Configuration | |
| ## Expected Minimum Configuration |
🤖 Prompt for AI Agents
In charts/authelia/README.md.gotmpl at line 28, the heading "Expected Minimum
Configuration" is marked as a third-level heading (###) but should be a
second-level heading (##) to maintain consistency with other primary sections
like "Breaking Changes" and "Values Files". Change the heading from ### to ## to
align with the document's top-level heading structure.
846adca to
05be4d9
Compare
05be4d9 to
dfb01fe
Compare
No description provided.