Skip to content
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

Add link to documentation #146

Merged
merged 2 commits into from
Nov 17, 2024

Conversation

nobodywasishere
Copy link
Contributor

src/ameba.ts Outdated
@@ -91,6 +91,11 @@ export class Ameba {
`[${issue.rule_name}] ${issue.message}`,
this.parseSeverity(issue.severity)
);
diag.code = {
value: "Docs",
target: Uri.parse(`https://crystal-ameba.github.io/ameba/Ameba/Rule/${issue.rule_name}.html#overview`)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this should probably use the versioning. @Sija wdyt?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If versioning is important I can point it at crystaldoc.info, https://crystaldoc.info/github/crystal-ameba/ameba/v1.6.3/Ameba/Rule/Lint/AmbiguousAssignment.html

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@nobodywasishere that might be a good option

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's good for now, although I'd prefer to avoid 3rd party services.

crystaldoc.info has documentation for all versions of ameba, allowing for more accurate docs for the user
@veelenga veelenga merged commit 727ebd1 into crystal-ameba:master Nov 17, 2024
2 checks passed
@Sija Sija added the enhancement New feature or request label Nov 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants