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

[Docs] update urls about R lintr #1512

Merged
merged 4 commits into from
Jun 8, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .automation/generated/linter-links-previews.json
Original file line number Diff line number Diff line change
Expand Up @@ -180,9 +180,9 @@
"title": "instrumenta/kubeval"
},
"lintr": {
"description": "Static Code Analysis for R. Contribute to jimhester/lintr development by creating an account on GitHub.",
"description": "Static Code Analysis for R. Contribute to r-lib/lintr development by creating an account on GitHub.",
"image": "https://avatars0.githubusercontent.com/u/205275?s=400&v=4",
"title": "jimhester/lintr"
"title": "r-lib/lintr"
},
"luacheck": {
"description": " A tool for linting and static analysis of Lua code. - luarocks/luacheck",
Expand Down Expand Up @@ -444,4 +444,4 @@
"image": "https://avatars3.githubusercontent.com/u/5244945?s=400&v=4",
"title": "adrienverge/yamllint"
}
}
}
2 changes: 1 addition & 1 deletion docs/all_linters.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
| [**ktlint**](https://github.com/pinterest/ktlint){target=_blank} | 0.45.2 | [MIT](licenses/ktlint.md) | [KOTLIN](descriptors/kotlin_ktlint.md) | :heart: | [MegaLinter reference](https://github.com/pinterest/ktlint#-with-continuous-integration){target=_blank} |
| [**kubeconform**](https://github.com/yannh/kubeconform){target=_blank} | 0.4.12 | [Other](licenses/kubeconform.md) | [KUBERNETES](descriptors/kubernetes_kubeconform.md) | :white_circle: | [Repository](https://github.com/yannh/kubeconform){target=_blank} |
| [**kubeval**](https://github.com/instrumenta/kubeval){target=_blank} | 0.16.1 | [Other](licenses/kubeval.md) | [KUBERNETES](descriptors/kubernetes_kubeval.md) | :white_circle: | [Repository](https://github.com/instrumenta/kubeval){target=_blank} |
| [**lintr**](https://github.com/jimhester/lintr){target=_blank} | N/A | <!-- --> | [R](descriptors/r_lintr.md) | :white_circle: | [Web Site](https://github.com/jimhester/lintr){target=_blank} |
| [**lintr**](https://lintr.r-lib.org/){target=_blank} | N/A | <!-- --> | [R](descriptors/r_lintr.md) | :white_circle: | [Web Site](https://lintr.r-lib.org/){target=_blank} |
| [**luacheck**](https://github.com/luarocks/luacheck){target=_blank} | 0.26.1 | [MIT](licenses/luacheck.md) | [LUA](descriptors/lua_luacheck.md) | :no_entry_sign: | [Repository](https://github.com/luarocks/luacheck){target=_blank} |
| [**markdown-link-check**](https://github.com/tcort/markdown-link-check){target=_blank} | 3.10.2 | <!-- --> | [MARKDOWN](descriptors/markdown_markdown_link_check.md) | :heart: | [MegaLinter reference](https://github.com/tcort/markdown-link-check#run-in-other-tools){target=_blank} |
| [**markdown-table-formatter**](https://github.com/nvuillam/markdown-table-formatter){target=_blank} | 1.3.0 | [MIT](licenses/markdown-table-formatter.md) | [MARKDOWN](descriptors/markdown_markdown_table_formatter.md) | :white_circle: | [Repository](https://github.com/nvuillam/markdown-table-formatter){target=_blank} |
Expand Down
24 changes: 11 additions & 13 deletions docs/descriptors/r_lintr.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,10 @@

## lintr documentation

- Visit [Official Web Site](https://github.com/jimhester/lintr#readme){target=_blank}
- See [How to configure lintr rules](https://github.com/jimhester/lintr#project-configuration){target=_blank}
- Visit [Official Web Site](https://lintr.r-lib.org/){target=_blank}
- See [How to configure lintr rules](https://lintr.r-lib.org/articles/lintr.html#configuring-linters){target=_blank}
- If custom `.lintr` config file is not found, [.lintr](https://github.com/megalinter/megalinter/tree/main/TEMPLATES/.lintr){target=_blank} will be used
- See [Index of problems detected by lintr](https://github.com/jimhester/lintr#available-linters){target=_blank}

[![lintr - GitHub](https://gh-card.dev/repos/jimhester/lintr.svg?fullname=)](https://github.com/jimhester/lintr){target=_blank}
- See [Index of problems detected by lintr](https://lintr.r-lib.org/reference/index.html){target=_blank}

## Configuration in MegaLinter

Expand All @@ -35,14 +33,14 @@

Use lintr in your favorite IDE to catch errors before MegaLinter !

| <!-- --> | IDE | Extension Name | Install |
|:--------------------------------------------------------------------------------------------------------------------------------------------:|------------------------------------------------------|------------------------------------------------------------------------------------------|:-------------------------------------------------------------------------------------------------------------------------------------------------------------------------:|
| <img src="https://github.com/megalinter/megalinter/raw/main/docs/assets/icons/atom.ico" alt="" height="32px" class="megalinter-icon"></a> | [Atom](https://atom.io/) | [Atom lintr](https://github.com/AtomLinter/linter-lintr) | [Visit Web Site](https://github.com/AtomLinter/linter-lintr){target=_blank} |
| <img src="https://github.com/megalinter/megalinter/raw/main/docs/assets/icons/emacs.ico" alt="" height="32px" class="megalinter-icon"></a> | [Emacs](https://www.gnu.org/software/emacs/) | [flycheck](http://www.flycheck.org/en/latest/languages.html#r) | [Visit Web Site](http://www.flycheck.org/en/latest/languages.html#r){target=_blank} |
| <img src="https://github.com/megalinter/megalinter/raw/main/docs/assets/icons/default.ico" alt="" height="32px" class="megalinter-icon"></a> | rstudio | [Native Support](https://rstudio.com/) | [Visit Web Site](https://rstudio.com/){target=_blank} |
| <img src="https://github.com/megalinter/megalinter/raw/main/docs/assets/icons/sublime.ico" alt="" height="32px" class="megalinter-icon"></a> | [Sublime Text](https://www.sublimetext.com/) | [SublimeLinter-contrib-lintr](https://github.com/jimhester/SublimeLinter-contrib-lintr) | [Visit Web Site](https://github.com/jimhester/SublimeLinter-contrib-lintr){target=_blank} |
| <img src="https://github.com/megalinter/megalinter/raw/main/docs/assets/icons/vim.ico" alt="" height="32px" class="megalinter-icon"></a> | [vim](https://www.vim.org/) | [ale](https://github.com/dense-analysis/ale) | [Visit Web Site](https://github.com/dense-analysis/ale){target=_blank} |
| <img src="https://github.com/megalinter/megalinter/raw/main/docs/assets/icons/vscode.ico" alt="" height="32px" class="megalinter-icon"></a> | [Visual Studio Code](https://code.visualstudio.com/) | [VsCode R LSP](https://marketplace.visualstudio.com/items?itemName=REditorSupport.r-lsp) | [![Install in VsCode](https://github.com/megalinter/megalinter/raw/main/docs/assets/images/btn_install_vscode.png)](vscode:extension/REditorSupport.r-lsp){target=_blank} |
| <!-- --> | IDE | Extension Name | Install |
|:--------------------------------------------------------------------------------------------------------------------------------------------:|------------------------------------------------------|-----------------------------------------------------------------------------------------|:---------------------------------------------------------------------------------------------------------------------------------------------------------------------:|
| <img src="https://github.com/megalinter/megalinter/raw/main/docs/assets/icons/atom.ico" alt="" height="32px" class="megalinter-icon"></a> | [Atom](https://atom.io/) | [Atom lintr](https://github.com/AtomLinter/linter-lintr) | [Visit Web Site](https://github.com/AtomLinter/linter-lintr){target=_blank} |
| <img src="https://github.com/megalinter/megalinter/raw/main/docs/assets/icons/emacs.ico" alt="" height="32px" class="megalinter-icon"></a> | [Emacs](https://www.gnu.org/software/emacs/) | [flycheck](http://www.flycheck.org/en/latest/languages.html#r) | [Visit Web Site](http://www.flycheck.org/en/latest/languages.html#r){target=_blank} |
| <img src="https://github.com/megalinter/megalinter/raw/main/docs/assets/icons/default.ico" alt="" height="32px" class="megalinter-icon"></a> | rstudio | [Native Support](https://rstudio.com/) | [Visit Web Site](https://rstudio.com/){target=_blank} |
| <img src="https://github.com/megalinter/megalinter/raw/main/docs/assets/icons/sublime.ico" alt="" height="32px" class="megalinter-icon"></a> | [Sublime Text](https://www.sublimetext.com/) | [SublimeLinter-contrib-lintr](https://github.com/jimhester/SublimeLinter-contrib-lintr) | [Visit Web Site](https://github.com/jimhester/SublimeLinter-contrib-lintr){target=_blank} |
| <img src="https://github.com/megalinter/megalinter/raw/main/docs/assets/icons/vim.ico" alt="" height="32px" class="megalinter-icon"></a> | [vim](https://www.vim.org/) | [ale](https://github.com/dense-analysis/ale) | [Visit Web Site](https://github.com/dense-analysis/ale){target=_blank} |
| <img src="https://github.com/megalinter/megalinter/raw/main/docs/assets/icons/vscode.ico" alt="" height="32px" class="megalinter-icon"></a> | [Visual Studio Code](https://code.visualstudio.com/) | [VsCode R LSP](https://marketplace.visualstudio.com/items?itemName=REditorSupport.r) | [![Install in VsCode](https://github.com/megalinter/megalinter/raw/main/docs/assets/images/btn_install_vscode.png)](vscode:extension/REditorSupport.r){target=_blank} |

## MegaLinter Flavours

Expand Down
8 changes: 4 additions & 4 deletions megalinter/descriptors/r.megalinter-descriptor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ linters:
# Lintr
- class: RLinter
linter_name: lintr
linter_url: https://github.com/jimhester/lintr
linter_rules_url: https://github.com/jimhester/lintr#available-linters
linter_rules_configuration_url: https://github.com/jimhester/lintr#project-configuration
linter_url: https://lintr.r-lib.org/
linter_rules_url: https://lintr.r-lib.org/reference/index.html
linter_rules_configuration_url: https://lintr.r-lib.org/articles/lintr.html#configuring-linters
config_file_name: .lintr
linter_version_cache: "0.0.0"
examples:
Expand Down Expand Up @@ -43,4 +43,4 @@ linters:
url: https://github.com/dense-analysis/ale
vscode:
- name: VsCode R LSP
url: https://marketplace.visualstudio.com/items?itemName=REditorSupport.r-lsp
url: https://marketplace.visualstudio.com/items?itemName=REditorSupport.r
2 changes: 1 addition & 1 deletion megalinter/linters/RLinter.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env python3
"""
Use lintr to lint R files
https://github.com/jimhester/lintr
https://github.com/r-lib/lintr
"""
import os
from shutil import copyfile
Expand Down