Skip to content
This repository has been archived by the owner on Dec 8, 2020. It is now read-only.

Added linting to the documentation. #92

Merged
merged 5 commits into from
Feb 20, 2017
Merged

Conversation

KalitaAlexey
Copy link
Member

@KalitaAlexey KalitaAlexey commented Feb 18, 2017

Hello everyone.

I want you to review and say what you want me to add.

@redactedscribe you know what I want you to do.

Thanks

Fixes #90

doc/linting.md Outdated
@@ -0,0 +1,23 @@
# Linging Page
Copy link
Contributor

@redactedscribe redactedscribe Feb 19, 2017

Choose a reason for hiding this comment

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

Linting

doc/linting.md Outdated
@@ -0,0 +1,23 @@
# Linging Page

The extension provides linting which looks like in the following screenshot:
Copy link
Contributor

Choose a reason for hiding this comment

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

The extension provides linting as shown in the following screenshot:

doc/linting.md Outdated
}
```

The Problems panel looks like in the following screenshot:
Copy link
Contributor

Choose a reason for hiding this comment

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

The Problems panel would look like:

Copy link
Member Author

Choose a reason for hiding this comment

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

Why would? It is a fact, isn't it?

Copy link
Contributor

Choose a reason for hiding this comment

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

"Would" because the code above is a hypothetical example/scenario. You can use "will" if you prefer. Either works.

doc/linting.md Outdated

[![Linting](../images/linting/problems_panel.jpg)]()

Linting works different in [Legacy Mode](legacy_mode/linting.md) and [RLS Mode](rls_mode/linting.md).
Copy link
Contributor

@redactedscribe redactedscribe Feb 19, 2017

Choose a reason for hiding this comment

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

Linting behaves differently in [RLS Mode](rls_mode/linting.md) than in [Legacy Mode](legacy_mode/linting.md).

The linting page should also mention which linting mode is the default.

Copy link
Member Author

Choose a reason for hiding this comment

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

There is no default mode.

Copy link
Member Author

Choose a reason for hiding this comment

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

@redactedscribe,
I meant that the chosen mode depended on which mode the extension was running on.

doc/main.md Outdated
@@ -13,6 +13,10 @@ The extension can function in one of two modes:

Each mode is described in detail on its own page.

Furthermore, the extension provides:

* [Linting (Showing diagnostics in the active text editor)](linting.md)
Copy link
Contributor

Choose a reason for hiding this comment

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

[Linting (the showing of diagnostics in the active text editor)](linting.md)

Copy link
Member Author

Choose a reason for hiding this comment

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

Why the?

Copy link
Contributor

Choose a reason for hiding this comment

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

I assume you are describing what linting is, and it is: "the showing of diagnostics in the active text editor".

Copy link
Member Author

Choose a reason for hiding this comment

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

I didn't know that it is possible. Thank you.

doc/main.md Outdated
@@ -13,6 +13,10 @@ The extension can function in one of two modes:

Each mode is described in detail on its own page.

Furthermore, the extension provides:
Copy link
Contributor

Choose a reason for hiding this comment

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

On line 20, you repeat yourself with another sentence beginning with "Furthermore`. Try to avoid repetition. The use of "Furthermore" tends to only be used once to add additional reinforcement to something, in this case, the features of the extension.


You can see diagnostics in the Problems Panel.

You can hover on a diagnostics to see what the diagnostic is.
Copy link
Contributor

@redactedscribe redactedscribe Feb 19, 2017

Choose a reason for hiding this comment

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

You can also hover over a diagnostic to see what the problem is.

@@ -0,0 +1,27 @@
# Legacy Mode Linting Page
Copy link
Contributor

Choose a reason for hiding this comment

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

I think adding "Page" to the end of each documentation page is unnecessary. Linting in Legacy Mode I believe describes the page better.

@@ -0,0 +1,15 @@
# RLS Mode Linting Page
Copy link
Contributor

Choose a reason for hiding this comment

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

Linting in RLS Mode

doc/linting.md Outdated

[![Linting](../images/linting/code.jpg)]()

Also it populates the Problems panel.
Copy link
Contributor

Choose a reason for hiding this comment

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

It also populates the Problems panel.

}
```

We execute any cargo command. Let's execute "Cargo: Build".
Copy link
Contributor

Choose a reason for hiding this comment

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

We then execute any cargo command. Let's execute "Cargo: Build".


It builds and shows diagnostics:

* In code:
Copy link
Contributor

@redactedscribe redactedscribe Feb 19, 2017

Choose a reason for hiding this comment

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

In the source code:


[![Linting](../../images/linting/code.jpg)]()

* In the Problems panel:
Copy link
Contributor

Choose a reason for hiding this comment

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

And in the Problems panel:


[![Linting](../../images/linting/problems_panel_legacy_mode.jpg)]()

We can hover any diagnostic to see what it is:
Copy link
Contributor

Choose a reason for hiding this comment

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

We can hover over any diagnostic to see what it is:

@@ -0,0 +1,27 @@
# Legacy Mode Linting Page

Executing a cargo command makes the extension parse the output of the executed command and show diagnostics.
Copy link
Contributor

@redactedscribe redactedscribe Feb 19, 2017

Choose a reason for hiding this comment

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

Executing a cargo command makes the extension parse the command's output and show diagnostics. Legacy Mode cannot show diagnostics as you type, for that you must use [RLS Mode](rls_mode/linting.md).

@@ -0,0 +1,15 @@
# RLS Mode Linting Page

`RLS` checks the project and shows diagnostics while you are typing.
Copy link
Contributor

Choose a reason for hiding this comment

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

Must RLS be in code format?


`RLS` checks the project and shows diagnostics while you are typing.

You can see diagnostics in the Problems Panel.
Copy link
Contributor

Choose a reason for hiding this comment

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

You can see diagnostics in the Problems panel.

Copy link
Member Author

Choose a reason for hiding this comment

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

I don't get this one.

Copy link
Contributor

Choose a reason for hiding this comment

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

Simply, "Panel" is capitalised whereas in previous mentions you said "Problems panel".


You can hover on a diagnostics to see what the diagnostic is.

Executing a cargo command doesn't show any diagnostics.
Copy link
Contributor

@redactedscribe redactedscribe Feb 19, 2017

Choose a reason for hiding this comment

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

Executing a cargo command doesn't show any diagnostics (unlike [Legacy Mode](legacy_mode/linting.md)).


Executing a cargo command doesn't show any diagnostics.

It is intentional decision.
Copy link
Contributor

Choose a reason for hiding this comment

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

This is an intentional design decision.


The reason is that there is no pretty way to hide a diagnostic after the diagnostic's cause is fixed.

It may confuse people.
Copy link
Contributor

@redactedscribe redactedscribe Feb 19, 2017

Choose a reason for hiding this comment

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

What may confuse people? The old diagnostics after a fix?
This would be confusing, hence the decision. ?

@redactedscribe
Copy link
Contributor

In future, it would be easier to provide me push access to the necessary branch so I may help with such an edit. The English is now better, however the structure could use improvement by combining some of the single-line sentences into paragraphs / chunks.

@KalitaAlexey
Copy link
Member Author

@redactedscribe,
How could I give you access to a branch?

@redactedscribe
Copy link
Contributor

redactedscribe commented Feb 19, 2017

@KalitaAlexey I'm not entirely sure, perhaps it's possible through the GitHub interface? I don't use git very often. With access I could edit directly, but currently I cannot.

This help doc looks related: https://help.github.com/articles/about-branch-restrictions/

@KalitaAlexey
Copy link
Member Author

I will read the article.
Next time I would give you access.
Thank you again.

@KalitaAlexey
Copy link
Member Author

KalitaAlexey commented Feb 19, 2017

@redactedscribe,
The article isn't about it.
It is related, but it doesn't help right now.
After moving to the organization account I am making master be protected one and make some people be collaborators.
After that collaborators would have access.
This is what the article about.

@KalitaAlexey KalitaAlexey merged commit 067efc3 into master Feb 20, 2017
@KalitaAlexey KalitaAlexey deleted the add-linting-to-doc branch February 20, 2017 05:05
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants