panolint 0.1.1 → 0.1.2
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/.github/workflows/main.yml +1 -1
- data/CHANGELOG.md +9 -1
- data/Gemfile.lock +3 -1
- data/README.md +12 -2
- data/brakeman.yml +13 -0
- data/lib/panolint/version.rb +1 -1
- data/panolint.gemspec +1 -0
- data/{panolint.yml → rubocop.yml} +0 -0
- metadata +17 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d91cca0d11b65106166fdc20c47fd0427f3f62fa9240ad8bee27cb61e7211f1f
|
4
|
+
data.tar.gz: 7edf9f2cf80c4fac4e236f4e7dc72692ef46f4ce9608b6f72d0c482d90e78d40
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 548905cd943d90008fc922a138d482f5314f7389f0224e5903ae705571c149dc148d52ecc92011e236d745b258fa06c3a3d86919dffedc1699ffbafc0ade2a87
|
7
|
+
data.tar.gz: 246f67a54a7fd838b6c3e48ddc760664a5286cc2471154cc6c3faff323a40b6971b2547f133f0c9c8a193678b17a6fd158a9724c1da3261507fd676cc2944a5e
|
data/.github/workflows/main.yml
CHANGED
data/CHANGELOG.md
CHANGED
@@ -6,6 +6,13 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) a
|
|
6
6
|
|
7
7
|
## [Unreleased]
|
8
8
|
|
9
|
+
## [0.1.2] - 2020-04-10
|
10
|
+
|
11
|
+
### Changed
|
12
|
+
|
13
|
+
- The `panolint.yml` file renamed to `rubocop.yml`.
|
14
|
+
- Add `brakeman` and instructions for running it.
|
15
|
+
|
9
16
|
## [0.1.1] - 2020-04-10
|
10
17
|
|
11
18
|
### Changed
|
@@ -19,6 +26,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) a
|
|
19
26
|
|
20
27
|
- Initial release. 🎉
|
21
28
|
|
22
|
-
[unreleased]: https://github.com/panorama-ed/panolint/compare/v0.1.
|
29
|
+
[unreleased]: https://github.com/panorama-ed/panolint/compare/v0.1.2...HEAD
|
30
|
+
[0.1.2]: https://github.com/panorama-ed/panolint/compare/v0.1.1...v0.1.2
|
23
31
|
[0.1.1]: https://github.com/panorama-ed/panolint/compare/v0.1.0...v0.1.1
|
24
32
|
[0.1.0]: https://github.com/panorama-ed/panolint/compare/45c38b...v0.1.0
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,8 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
panolint (0.1.
|
4
|
+
panolint (0.1.2)
|
5
|
+
brakeman (~> 4.8)
|
5
6
|
rubocop (~> 0.81)
|
6
7
|
rubocop-performance (~> 1.5)
|
7
8
|
rubocop-rails (~> 2.5)
|
@@ -17,6 +18,7 @@ GEM
|
|
17
18
|
tzinfo (~> 1.1)
|
18
19
|
zeitwerk (~> 2.2)
|
19
20
|
ast (2.4.0)
|
21
|
+
brakeman (4.8.1)
|
20
22
|
concurrent-ruby (1.1.6)
|
21
23
|
diff-lcs (1.3)
|
22
24
|
i18n (1.8.2)
|
data/README.md
CHANGED
@@ -23,11 +23,21 @@ Or install it yourself as:
|
|
23
23
|
|
24
24
|
## Usage
|
25
25
|
|
26
|
-
|
26
|
+
### `brakeman`
|
27
|
+
|
28
|
+
You can use `panolint`'s `brakeman` configuration in your project by pointing the `brakeman` run at the configuration file in this repo:
|
29
|
+
|
30
|
+
```
|
31
|
+
$ bundle exec brakeman -c "$(bundle show brakeman)/brakeman.yml"
|
32
|
+
```
|
33
|
+
|
34
|
+
### `rubocop`
|
35
|
+
|
36
|
+
You can use `panolint`'s rubocop configuration in your project with the following addition to the top of your project's `.rubocop.yml`:
|
27
37
|
|
28
38
|
```
|
29
39
|
inherit_gem:
|
30
|
-
panolint:
|
40
|
+
panolint: rubocop.yml
|
31
41
|
```
|
32
42
|
|
33
43
|
Note that it for this gem in particular in needs to not be a `.rubocop.yml` file because of rubocop's [path relativity](https://github.com/rubocop-hq/rubocop/blob/master/manual/configuration.md#path-relativity).
|
data/brakeman.yml
ADDED
@@ -0,0 +1,13 @@
|
|
1
|
+
---
|
2
|
+
:ensure_latest: true # From brakeman --help: "Fail when Brakeman is outdated"
|
3
|
+
:run_all_checks: true # "Run all default and optional checks"
|
4
|
+
:branch_limit: -1 # "Limit depth of values in branches (-1 for no limit)"
|
5
|
+
|
6
|
+
# The brakeman wiki says this option "enables deeper data flow analysis by
|
7
|
+
# allowing Brakeman to inspect called methods and attempt to determine the
|
8
|
+
# return value of the call."
|
9
|
+
:interprocedural: true
|
10
|
+
:additional_libs_path:
|
11
|
+
# This ensures brakeman is run on all files, not just those in standard Rails
|
12
|
+
# directories.
|
13
|
+
- .
|
data/lib/panolint/version.rb
CHANGED
data/panolint.gemspec
CHANGED
@@ -24,6 +24,7 @@ Gem::Specification.new do |spec|
|
|
24
24
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
25
25
|
spec.require_paths = ["lib"]
|
26
26
|
|
27
|
+
spec.add_dependency "brakeman", "~> 4.8"
|
27
28
|
spec.add_dependency "rubocop", "~> 0.81"
|
28
29
|
spec.add_dependency "rubocop-performance", "~> 1.5"
|
29
30
|
spec.add_dependency "rubocop-rails", "~> 2.5"
|
File without changes
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: panolint
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kevin Deisz
|
@@ -10,6 +10,20 @@ bindir: exe
|
|
10
10
|
cert_chain: []
|
11
11
|
date: 2020-04-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: brakeman
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '4.8'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '4.8'
|
13
27
|
- !ruby/object:Gem::Dependency
|
14
28
|
name: rubocop
|
15
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -128,10 +142,11 @@ files:
|
|
128
142
|
- Rakefile
|
129
143
|
- bin/console
|
130
144
|
- bin/setup
|
145
|
+
- brakeman.yml
|
131
146
|
- lib/panolint.rb
|
132
147
|
- lib/panolint/version.rb
|
133
148
|
- panolint.gemspec
|
134
|
-
-
|
149
|
+
- rubocop.yml
|
135
150
|
homepage: https://github.com/panorama-ed/panolint
|
136
151
|
licenses:
|
137
152
|
- MIT
|