Skip to content

Commit 4f0fa8b

Browse files
authored
Merge pull request #351 from per1234/fix-link
Improve and correct links in documentation
2 parents 99a075f + 484ccbd commit 4f0fa8b

File tree

4 files changed

+39
-39
lines changed

4 files changed

+39
-39
lines changed

docs/CONTRIBUTING.md

+14-14
Original file line numberDiff line numberDiff line change
@@ -12,17 +12,17 @@ There are several ways you can get involved:
1212
| - Bug fix<br/>- Enhancement | Pull Request (read the [pull request guidelines][prs]) |
1313
| Monetary | - [Donate][donate]<br/>- [Buy official products][store] |
1414

15-
[forum]: https://forum.arduino.cc/index.php?board=3.0
15+
[forum]: https://forum.arduino.cc/c/using-arduino/project-guidance/19
1616
[issues]: #issue-reports
1717
[nightly]: installation.md#nightly-builds
1818
[prs]: #pull-requests
19-
[donate]: https://www.arduino.cc/en/Main/Contribute
19+
[donate]: https://www.arduino.cc/en/donate/
2020
[store]: https://store.arduino.cc
2121

2222
## Issue Reports
2323

2424
Do you need help or have a question about using Arduino Lint? Support requests should be made to the
25-
[Arduino forum](https://forum.arduino.cc/index.php?board=3.0).
25+
[Arduino forum](https://forum.arduino.cc/c/using-arduino/project-guidance/19).
2626

2727
High quality bug reports and feature requests are valuable contributions to the Arduino Lint project.
2828

@@ -31,8 +31,8 @@ High quality bug reports and feature requests are valuable contributions to the
3131
- Give the [nightly build](installation.md#nightly-builds) a test drive to see if your issue was already resolved.
3232
- Search [existing pull requests and issues](https://github.com/arduino/arduino-lint/issues?q=) to see if it was already
3333
reported. If you have additional information to provide about an existing issue, please comment there. You can use
34-
[GitHub's "Reactions" feature](https://github.com/blog/2119-add-reactions-to-pull-requests-issues-and-comments) if you
35-
only want to express support.
34+
[GitHub's "Reactions" feature](https://github.blog/2016-03-10-add-reactions-to-pull-requests-issues-and-comments/) if
35+
you only want to express support.
3636

3737
### Qualities of an excellent report
3838

@@ -55,22 +55,22 @@ submitting a PR:
5555

5656
- Create small PRs that are narrowly focused on addressing a single concern.
5757
- Write tests for the code you wrote.
58-
- Maintain [**clean commit history**](http://www.freshconsulting.com/atomic-commits) and use
59-
[**meaningful commit messages**](http://chris.beams.io/posts/git-commit). PRs with messy commit history are difficult
60-
to review and require a lot of work to be merged.
58+
- Maintain [**clean commit history**](https://www.freshconsulting.com/insights/blog/atomic-commits/) and use
59+
[**meaningful commit messages**](https://cbea.ms/git-commit/). PRs with messy commit history are difficult to review
60+
and require a lot of work to be merged.
6161
- <a id="breaking"></a> If the PR contains a breaking change, please start the commit message and PR title with the
6262
string **[breaking]**. Don't forget to describe in the PR description what changes users might need to make in their
6363
workflow or application due to this PR. A breaking change is a change that forces users to change their command-line
6464
invocations or parsing of the JSON formatted output when upgrading from an older version of Arduino Lint.
6565
- PR titles indirectly become part of the CHANGELOG so it's crucial to provide a good record of **what** change is being
6666
made in the title; **why** it was made will go in the PR description, along with
67-
[a link to a GitHub issue](https://docs.github.com/en/free-pro-team@latest/github/managing-your-work-on-github/linking-a-pull-request-to-an-issue)
67+
[a link to a GitHub issue](https://docs.github.com/issues/tracking-your-work-with-issues/linking-a-pull-request-to-an-issue)
6868
if one exists.
6969
- Open your PR against the `main` branch.
70-
- Your PR must pass all [CI](https://en.wikipedia.org/wiki/Continuous_integration) tests before we will merge it. You
71-
can run the CI in your fork by clicking the "Actions" tab and then the "I understand my workflows..." button. If
72-
you're seeing an error and don't think it's your fault, it may not be! The reviewer will help you if there are test
73-
failures that seem not related to the change you are making.
70+
- Your PR must pass all [CI](https://wikipedia.org/wiki/Continuous_integration) tests before we will merge it. You can
71+
run the CI in your fork by clicking the "Actions" tab and then the "I understand my workflows..." button. If you're
72+
seeing an error and don't think it's your fault, it may not be! The reviewer will help you if there are test failures
73+
that seem not related to the change you are making.
7474

7575
### Development prerequisites
7676

@@ -183,7 +183,7 @@ Unfortunately, **Licensed** does not have Windows support.
183183

184184
An updated cache is also generated whenever the cache is found to be outdated by the by the "Check Go Dependencies" CI
185185
workflow and made available for download via the `dep-licenses-cache`
186-
[workflow artifact](https://docs.github.com/en/actions/managing-workflow-runs/downloading-workflow-artifacts).
186+
[workflow artifact](https://docs.github.com/actions/managing-workflow-runs/downloading-workflow-artifacts).
187187

188188
<a id="linting-and-formatting"></a> <a id="configuration-files-formatting"></a> <a id="documentation-formatting"></a>
189189

docs/index.md

+8-8
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,10 @@ accepted by this flag are:
3838

3939
### Library Manager setting
4040

41-
[Arduino Library Manager](https://www.arduino.cc/en/guide/libraries#toc3) is the best way to provide installation and
42-
updates of Arduino libraries. In order to be accepted for inclusion in Library Manager, a library is required to meet
43-
[some requirements](https://github.com/arduino/Arduino/wiki/Library-Manager-FAQ).
41+
[Arduino Library Manager](https://docs.arduino.cc/software/ide-v1/tutorials/installing-libraries#using-the-library-manager)
42+
is the best way to provide installation and updates of Arduino libraries. In order to be accepted for inclusion in
43+
Library Manager, a library is required to meet
44+
[some requirements](https://github.com/arduino/library-registry/blob/main/FAQ.md#readme).
4445

4546
**Arduino Lint** provides checks for these requirements as well, controlled by the `--library-manager` flag.
4647

@@ -75,11 +76,10 @@ Additional configuration options intended for internal use or development can be
7576
## Continuous integration
7677

7778
**Arduino Lint** would be a great addition to your
78-
[continuous integration](https://en.wikipedia.org/wiki/Continuous_integration) system. Running the tool after each
79-
change to the project can allow you to identify any problems that were introduced.
79+
[continuous integration](https://wikipedia.org/wiki/Continuous_integration) system. Running the tool after each change
80+
to the project can allow you to identify any problems that were introduced.
8081

81-
This is easily done by using the `arduino/arduino-lint-action`
82-
[GitHub Actions](https://docs.github.com/en/free-pro-team@latest/actions) action:
82+
This is easily done by using the `arduino/arduino-lint-action` [GitHub Actions](https://docs.github.com/actions) action:
8383
https://github.com/arduino/arduino-lint-action
8484

8585
Add [a simple workflow file](https://github.com/arduino/arduino-lint-action#usage) to the repository of your Arduino
@@ -88,7 +88,7 @@ project and GitHub will automatically run Arduino Lint on every pull request and
8888
## Support and feedback
8989

9090
You can discuss or get assistance with using **Arduino Lint** on the
91-
[Arduino Forum](https://forum.arduino.cc/index.php?board=3.0).
91+
[Arduino Forum](https://forum.arduino.cc/c/using-arduino/project-guidance/19).
9292

9393
Feedback is welcome! Please submit feature requests or bug reports to the
9494
[issue tracker](CONTRIBUTING.md#issue-reports).

docs/installation.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ curl -fsSL https://raw.githubusercontent.com/arduino/arduino-lint/main/etc/insta
2121
```
2222

2323
If you would like to use the `arduino-lint` command from any location, install Arduino Lint to a directory already in
24-
your [`PATH`](https://en.wikipedia.org/wiki/PATH%5F%28variable%29) or add the Arduino Lint installation path to your
25-
`PATH` environment variable.
24+
your [`PATH`](https://wikipedia.org/wiki/PATH%5F%28variable%29) or add the Arduino Lint installation path to your `PATH`
25+
environment variable.
2626

2727
If you want to download a specific Arduino Lint version, for example `0.9.0` or `nightly-latest`, pass the version
2828
number as a parameter like this:
@@ -36,8 +36,8 @@ curl -fsSL https://raw.githubusercontent.com/arduino/arduino-lint/main/etc/insta
3636
Pre-built binaries for all the supported platforms are available for download from the links below.
3737

3838
If you would like to use the `arduino-lint` command from any location, extract the downloaded file to a directory
39-
already in your [`PATH`](https://en.wikipedia.org/wiki/PATH%5F%28variable%29) or add the Arduino Lint installation path
40-
to your `PATH` environment variable.
39+
already in your [`PATH`](https://wikipedia.org/wiki/PATH%5F%28variable%29) or add the Arduino Lint installation path to
40+
your `PATH` environment variable.
4141

4242
### Latest release
4343

internal/rule/ruleconfiguration/ruleconfiguration.go

+13-13
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ var configurations = []Type{
185185
Subcategory: "source code",
186186
ID: "LS008",
187187
Brief: "name-header mismatch",
188-
Description: "The match between the `library.properties` `name` field and the filename in an `#include` directive is a factor in the library's [dependency resolution priority](https://arduino.github.io/arduino-cli/dev/sketch-build-process/#dependency-resolution). It's recommended for the primary header filename to match the library name.",
188+
Description: "The match between the `library.properties` `name` field and the filename in an `#include` directive is a factor in the library's [dependency resolution priority](https://arduino.github.io/arduino-cli/latest/sketch-build-process/#dependency-resolution). It's recommended for the primary header filename to match the library name.",
189189
MessageTemplate: "No header file found matching library name ({{.}}). Best practices are for primary header filename to match library name.",
190190
Reference: "https://arduino.github.io/arduino-cli/latest/library-specification/#libraryproperties-file-format",
191191
DisableModes: nil,
@@ -559,7 +559,7 @@ var configurations = []Type{
559559
Subcategory: "name field",
560560
ID: "LP018",
561561
Brief: "not in LM index",
562-
Description: "The library name (as defined by `name` field in [the `library.properties` metadata file](https://arduino.github.io/arduino-cli/dev/library-specification/#library-metadata)) was not found in the Library Manager index, but Arduino Lint was run in the [`--library-manager update` mode](https://arduino.github.io/arduino-lint/latest/commands/arduino-lint/#options), indicating that it was expected there.\n\nBecause the `name` value is the identifier used to install the library and define dependencies, it is not allowed to change after the library has been added to the index.",
562+
Description: "The library name (as defined by `name` field in [the `library.properties` metadata file](https://arduino.github.io/arduino-cli/latest/library-specification/#library-metadata)) was not found in the Library Manager index, but Arduino Lint was run in the [`--library-manager update` mode](https://arduino.github.io/arduino-lint/latest/commands/arduino-lint/#options), indicating that it was expected there.\n\nBecause the `name` value is the identifier used to install the library and define dependencies, it is not allowed to change after the library has been added to the index.",
563563
MessageTemplate: "Library name {{.}} not found in the Library Manager index. Library names are not allowed to change after being added to the index.",
564564
Reference: "https://github.com/arduino/library-registry/blob/main/FAQ.md#how-can-i-change-a-librarys-name",
565565
DisableModes: []rulemode.Type{rulemode.Default},
@@ -1258,7 +1258,7 @@ var configurations = []Type{
12581258
Brief: "no readme",
12591259
Description: "None of the standard README file names (e.g., `README.md`) were found in the library's root folder. This file provides interested parties with a convenient and standardized location to get information about the project.",
12601260
MessageTemplate: "No readme found. Please document your library.",
1261-
Reference: "https://docs.github.com/en/github/creating-cloning-and-archiving-repositories/creating-a-repository-on-github/about-readmes",
1261+
Reference: "https://docs.github.com/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/about-readmes",
12621262
DisableModes: nil,
12631263
EnableModes: []rulemode.Type{rulemode.Default},
12641264
InfoModes: nil,
@@ -1275,7 +1275,7 @@ var configurations = []Type{
12751275
Brief: "no license file",
12761276
Description: "None of the standard license file names (e.g., `LICENSE.txt`) were found in the library's root folder. This file provides interested parties with a convenient and standardized location to get information about the project's licensing and is also used by GitHub for automatic license type classification.",
12771277
MessageTemplate: "No license file found.",
1278-
Reference: "https://docs.github.com/en/github/creating-cloning-and-archiving-repositories/creating-a-repository-on-github/licensing-a-repository",
1278+
Reference: "https://docs.github.com/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/licensing-a-repository",
12791279
DisableModes: nil,
12801280
EnableModes: []rulemode.Type{rulemode.Default},
12811281
InfoModes: nil,
@@ -1377,7 +1377,7 @@ var configurations = []Type{
13771377
Brief: "prohibited character in filename",
13781378
Description: "A sketch file's name contains a prohibited character.",
13791379
MessageTemplate: "Prohibited character(s) in file name(s): {{.}}",
1380-
Reference: "https://arduino.github.io/arduino-cli/latest/sketch-specification/#sketch-root-folder",
1380+
Reference: "https://arduino.github.io/arduino-cli/latest/sketch-specification/#sketch-folders-and-files",
13811381
DisableModes: nil,
13821382
EnableModes: []rulemode.Type{rulemode.Default},
13831383
InfoModes: nil,
@@ -1394,7 +1394,7 @@ var configurations = []Type{
13941394
Brief: "file name too long",
13951395
Description: "The sketch file's name exceeds the maximum length.",
13961396
MessageTemplate: "File name(s): {{.}} exceed maximum length.",
1397-
Reference: "https://arduino.github.io/arduino-cli/latest/sketch-specification/#sketch-root-folder",
1397+
Reference: "https://arduino.github.io/arduino-cli/latest/sketch-specification/#sketch-folders-and-files",
13981398
DisableModes: nil,
13991399
EnableModes: []rulemode.Type{rulemode.Default},
14001400
InfoModes: nil,
@@ -1411,7 +1411,7 @@ var configurations = []Type{
14111411
Brief: ".pde extension",
14121412
Description: "A sketch file uses the deprecated `.pde` file extension. The .pde extension is used by both [Processing](https://processing.org/) sketches and Arduino sketches. If the project has supplemental Processing sketches, they should either be in the [`data` subfolder of the sketch](https://arduino.github.io/arduino-cli/latest/sketch-specification/#data-subfolder) or in the [`extras` folder of the library](https://arduino.github.io/arduino-cli/latest/library-specification/#extra-documentation). Arduino sketches should use the modern `.ino` extension.",
14131413
MessageTemplate: "{{.}} uses deprecated .pde file extension. Use .ino for Arduino sketches.",
1414-
Reference: "https://arduino.github.io/arduino-cli/latest/sketch-specification",
1414+
Reference: "https://arduino.github.io/arduino-cli/latest/sketch-specification/#additional-code-files",
14151415
DisableModes: nil,
14161416
EnableModes: []rulemode.Type{rulemode.Default},
14171417
InfoModes: nil,
@@ -1462,7 +1462,7 @@ var configurations = []Type{
14621462
Brief: "no readme",
14631463
Description: "None of the standard README file names (e.g., `README.md`) were found in the sketch folder. This file provides interested parties with a convenient and standardized location to get information about the project.",
14641464
MessageTemplate: "No readme found. Please document your sketch.",
1465-
Reference: "https://docs.github.com/en/github/creating-cloning-and-archiving-repositories/creating-a-repository-on-github/about-readmes",
1465+
Reference: "https://docs.github.com/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/about-readmes",
14661466
DisableModes: nil,
14671467
EnableModes: []rulemode.Type{rulemode.Default},
14681468
InfoModes: nil,
@@ -1479,7 +1479,7 @@ var configurations = []Type{
14791479
Brief: "no license file",
14801480
Description: "None of the standard license file names (e.g., `LICENSE.txt`) were found in the sketch's root folder. This file provides interested parties with a convenient and standardized location to get information about the project's licensing and is also used by GitHub for automatic license type classification.",
14811481
MessageTemplate: "No license file found.",
1482-
Reference: "https://docs.github.com/en/github/creating-cloning-and-archiving-repositories/creating-a-repository-on-github/licensing-a-repository",
1482+
Reference: "https://docs.github.com/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/licensing-a-repository",
14831483
DisableModes: nil,
14841484
EnableModes: []rulemode.Type{rulemode.Default},
14851485
InfoModes: nil,
@@ -1530,7 +1530,7 @@ var configurations = []Type{
15301530
Brief: "no readme",
15311531
Description: "None of the standard README file names (e.g., `README.md`) were found in the platform folder. This file provides interested parties with a convenient and standardized location to get information about the project.",
15321532
MessageTemplate: "No readme found. Please document your boards platform.",
1533-
Reference: "https://docs.github.com/en/github/creating-cloning-and-archiving-repositories/creating-a-repository-on-github/about-readmes",
1533+
Reference: "https://docs.github.com/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/about-readmes",
15341534
DisableModes: []rulemode.Type{rulemode.Default},
15351535
EnableModes: nil,
15361536
InfoModes: nil,
@@ -1547,7 +1547,7 @@ var configurations = []Type{
15471547
Brief: "no license file",
15481548
Description: "None of the standard license file names (e.g., `LICENSE.txt`) were found in the platform folder. This file provides interested parties with a convenient and standardized location to get information about the project's licensing and is also used by GitHub for automatic license type classification.",
15491549
MessageTemplate: "No license file found.",
1550-
Reference: "https://docs.github.com/en/github/creating-cloning-and-archiving-repositories/creating-a-repository-on-github/licensing-a-repository",
1550+
Reference: "https://docs.github.com/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/licensing-a-repository",
15511551
DisableModes: []rulemode.Type{rulemode.Default},
15521552
EnableModes: nil,
15531553
InfoModes: nil,
@@ -2907,7 +2907,7 @@ var configurations = []Type{
29072907
Brief: "upload.field.FIELD_NAME > max length",
29082908
Description: "The `tools.UPLOAD_RECIPE_ID.upload.field.FIELD_NAME` property in the platform's `platform.txt` configuration file is longer than the maximum length.",
29092909
MessageTemplate: "upload.UPLOAD_RECIPE_ID.upload.field.FIELD_NAME property is longer than the maximum length for fields: {{.}}",
2910-
Reference: "https://arduino.github.io/arduino-cli/dev/platform-specification/#user-provided-fields",
2910+
Reference: "https://arduino.github.io/arduino-cli/latest/platform-specification/#user-provided-fields",
29112911
DisableModes: nil,
29122912
EnableModes: []rulemode.Type{rulemode.Default},
29132913
InfoModes: nil,
@@ -2924,7 +2924,7 @@ var configurations = []Type{
29242924
Brief: "upload.field.FIELD_NAME.secret invalid",
29252925
Description: "The `tools.UPLOAD_RECIPE_ID.upload.field.FIELD_NAME.secret` property in the platform's `platform.txt` configuration file has an invalid value.",
29262926
MessageTemplate: "tools.UPLOAD_RECIPE_ID.upload.field.FIELD_NAME.secret value is invalid or field(s) {{.}}",
2927-
Reference: "https://arduino.github.io/arduino-cli/dev/platform-specification/#user-provided-fields",
2927+
Reference: "https://arduino.github.io/arduino-cli/latest/platform-specification/#user-provided-fields",
29282928
DisableModes: nil,
29292929
EnableModes: []rulemode.Type{rulemode.Default},
29302930
InfoModes: nil,

0 commit comments

Comments
 (0)