mirror of
https://github.com/super-linter/super-linter.git
synced 2024-11-25 02:01:02 -05:00
Merge pull request #177 from koic/update_the_notation_of_rubocop
Update the notation of RuboCop
This commit is contained in:
commit
420850fe61
2 changed files with 7 additions and 7 deletions
|
@ -27,7 +27,7 @@ Developers on **GitHub** can call the **GitHub Action** to lint their code base
|
||||||
| **Markdown** | [markdownlint](https://github.com/igorshubovych/markdownlint-cli#readme) |
|
| **Markdown** | [markdownlint](https://github.com/igorshubovych/markdownlint-cli#readme) |
|
||||||
| **Perl** | [perl](https://pkgs.alpinelinux.org/package/edge/main/x86/perl) |
|
| **Perl** | [perl](https://pkgs.alpinelinux.org/package/edge/main/x86/perl) |
|
||||||
| **Python3** | [pylint](https://www.pylint.org/) |
|
| **Python3** | [pylint](https://www.pylint.org/) |
|
||||||
| **Ruby** | [Rubocop](https://github.com/rubocop-hq/rubocop) |
|
| **Ruby** | [RuboCop](https://github.com/rubocop-hq/rubocop) |
|
||||||
| **Shell** | [Shellcheck](https://github.com/koalaman/shellcheck) |
|
| **Shell** | [Shellcheck](https://github.com/koalaman/shellcheck) |
|
||||||
| **Terraform** | [tflint](https://github.com/terraform-linters/tflint) |
|
| **Terraform** | [tflint](https://github.com/terraform-linters/tflint) |
|
||||||
| **TypeScript** | [eslint](https://eslint.org/) [standard js](https://standardjs.com/) |
|
| **TypeScript** | [eslint](https://eslint.org/) [standard js](https://standardjs.com/) |
|
||||||
|
|
|
@ -26,20 +26,20 @@ Below is examples and documentation for each language and the various methods to
|
||||||
--------------------------------------------------------------------------------
|
--------------------------------------------------------------------------------
|
||||||
|
|
||||||
## Ruby
|
## Ruby
|
||||||
- [Rubocop](https://github.com/rubocop-hq/rubocop)
|
- [RuboCop](https://github.com/rubocop-hq/rubocop)
|
||||||
|
|
||||||
### Rubocop Config file
|
### RuboCop Config file
|
||||||
- `.github/linters/.ruby-lint.yml`
|
- `.github/linters/.ruby-lint.yml`
|
||||||
- You can pass multiple rules and overwrite default rules
|
- You can pass multiple rules and overwrite default rules
|
||||||
- File should be located at: `.github/linters/.ruby-lint.yml`
|
- File should be located at: `.github/linters/.ruby-lint.yml`
|
||||||
- **Note:** We use the Default **GitHub** Rule set from [Rubocop-GitHub](https://github.com/github/rubocop-github)
|
- **Note:** We use the Default **GitHub** Rule set from [RuboCop-GitHub](https://github.com/github/rubocop-github)
|
||||||
|
|
||||||
### Rubocop disable single line
|
### RuboCop disable single line
|
||||||
```ruby
|
```ruby
|
||||||
method(argument) # rubocop:disable SomeRule, SomeOtherRule
|
method(argument) # rubocop:disable SomeRule, SomeOtherRule
|
||||||
```
|
```
|
||||||
|
|
||||||
### Rubocop disable code block
|
### RuboCop disable code block
|
||||||
```ruby
|
```ruby
|
||||||
# rubocop:disable
|
# rubocop:disable
|
||||||
This is a long line
|
This is a long line
|
||||||
|
@ -47,7 +47,7 @@ var="this is some other stuff"
|
||||||
# rubocop:enable
|
# rubocop:enable
|
||||||
```
|
```
|
||||||
|
|
||||||
### Rubocop disable entire file
|
### RuboCop disable entire file
|
||||||
If you need to ignore an entire file, you can update the `.github/linters/.ruby-lint.yml` to ignore certain files and locations
|
If you need to ignore an entire file, you can update the `.github/linters/.ruby-lint.yml` to ignore certain files and locations
|
||||||
|
|
||||||
```yml
|
```yml
|
||||||
|
|
Loading…
Reference in a new issue