rbcop 0.1.3 → 0.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +3 -3
- data/libexec/aarch64-apple-darwin/rbcop +0 -0
- data/libexec/aarch64-unknown-linux-gnu/rbcop +0 -0
- data/libexec/aarch64-unknown-linux-musl/rbcop +0 -0
- data/libexec/x86_64-apple-darwin/rbcop +0 -0
- data/libexec/x86_64-unknown-linux-gnu/rbcop +0 -0
- data/libexec/x86_64-unknown-linux-musl/rbcop +0 -0
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: d7baedc7d1702db714b616339b43cf4ebcdeb04de2e9fd4af5bb97e00694e363
|
|
4
|
+
data.tar.gz: c5b6fdd787774982cf02056a1e9f18a2c8d80c724a597da9252b7ecc2ba2b9cb
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d3e55dbc138ec6426d73aa5c20f28cd061da827a34f96dfc2510d788cd7fe7aad3a6938bc5455c6771f3d94351b7385ef8351bc0fa832254463520fbcd635c6a
|
|
7
|
+
data.tar.gz: 714a080386990b1f9e53577a5902a46a1090f0664abd5509fd06f1aea75b727dc92b513d7a91756d5680595af3b933d5250012001ab8bbcd9ba8aa02ad12a4ae
|
data/README.md
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
# rbcop
|
|
2
2
|
|
|
3
|
-
A reimplementation of [RuboCop](https://github.com/rubocop/rubocop) 1.
|
|
3
|
+
A reimplementation of [RuboCop](https://github.com/rubocop/rubocop) 1.92.2 in Rust, built on [Prism](https://github.com/ruby/prism) (`ruby-prism` crate).
|
|
4
4
|
|
|
5
|
-
The target is byte-identical output: same offenses, ranges, messages, `[Correctable]` flags, autocorrections, formatter output and exit status as RuboCop 1.
|
|
5
|
+
The target is byte-identical output: same offenses, ranges, messages, `[Correctable]` flags, autocorrections, formatter output and exit status as RuboCop 1.92.2 for the same files and configuration. All 613 cops in RuboCop's `config/default.yml` are implemented. rubocop-performance, rubocop-rails, rubocop-minitest, rubocop-rspec, rubocop-rspec_rails, rubocop-factory_bot and rubocop-capybara run natively ([docs/plugins.md](docs/plugins.md)). Other plugins (rubocop-sorbet and so on) and custom cops do not; rbcop hands them to RuboCop when one is installed, and otherwise says which cops it skips (see [Plugins and custom cops](#plugins-and-custom-cops)).
|
|
6
6
|
|
|
7
7
|
## Install
|
|
8
8
|
|
|
@@ -104,7 +104,7 @@ cargo test --release
|
|
|
104
104
|
RBCOP_CORPUS=<corpus dir> RBCOP_ORACLE=<oracle dir> scripts/verify.sh # the above plus check-cops.sh all
|
|
105
105
|
```
|
|
106
106
|
|
|
107
|
-
`cargo test` replays recorded RuboCop output: every cop's RuboCop spec examples with their config variants, offenses and `-A` results (`tests/spec_corpus`, recorded by `scripts/record-spec-corpus.sh`), config scenarios (`tests/scenarios`), formatter and CLI goldens (`tests/formatters`), `--show-cops` (`tests/show_cops`) and autocorrect cases (`tests/autocorrect`). The scripts that record them (`scripts/record-spec-corpus.sh`, `scripts/scenarios.sh`, `scripts/formatters.sh`, `scripts/show-cops.sh`, `tests/autocorrect/record.sh`) and the oracle, autocorrect and cold-corpus gates need RuboCop 1.
|
|
107
|
+
`cargo test` replays recorded RuboCop output: every cop's RuboCop spec examples with their config variants, offenses and `-A` results (`tests/spec_corpus`, recorded by `scripts/record-spec-corpus.sh`), config scenarios (`tests/scenarios`), formatter and CLI goldens (`tests/formatters`), `--show-cops` (`tests/show_cops`) and autocorrect cases (`tests/autocorrect`). The scripts that record them (`scripts/record-spec-corpus.sh`, `scripts/scenarios.sh`, `scripts/formatters.sh`, `scripts/show-cops.sh`, `tests/autocorrect/record.sh`) and the oracle, autocorrect and cold-corpus gates need RuboCop 1.92.2 as `$RUBOCOP` or on `PATH`. Each script's header documents its arguments and environment.
|
|
108
108
|
|
|
109
109
|
[docs/porting-cops.md](docs/porting-cops.md) describes how a cop is ported and checked, including how the corpora and oracles are laid out. [docs/rubocop-config-semantics.md](docs/rubocop-config-semantics.md) describes the configuration rules `src/config/` follows. [docs/upgrading-rubocop.md](docs/upgrading-rubocop.md) is the process for moving to a new RuboCop release.
|
|
110
110
|
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: rbcop
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- John Costa
|
|
@@ -9,7 +9,7 @@ bindir: exe
|
|
|
9
9
|
cert_chain: []
|
|
10
10
|
date: 1980-01-02 00:00:00.000000000 Z
|
|
11
11
|
dependencies: []
|
|
12
|
-
description: 'A native reimplementation of RuboCop 1.
|
|
12
|
+
description: 'A native reimplementation of RuboCop 1.92: same command line, configuration,
|
|
13
13
|
offenses, autocorrections and formatter output, run by the `rbcop` executable.'
|
|
14
14
|
executables:
|
|
15
15
|
- rbcop
|