panolint 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 154ac6670562115294b0e08dce393a20cf80242d5c82b8106a05749ead58b063
4
- data.tar.gz: 19f94479b898c1f218420446303465506da9190ee47120b355ef746e8bcf1bed
3
+ metadata.gz: d91cca0d11b65106166fdc20c47fd0427f3f62fa9240ad8bee27cb61e7211f1f
4
+ data.tar.gz: 7edf9f2cf80c4fac4e236f4e7dc72692ef46f4ce9608b6f72d0c482d90e78d40
5
5
  SHA512:
6
- metadata.gz: 7bfb19bb2223e6594d1822e46d928a5f1fbfcc224de8704a1964a2f1774de18381c3357c96c447bc64420bf8d726d52d1f7c03f3722d9ce57f350e4348ad54a9
7
- data.tar.gz: 076f9558f8f544d35ee36450ffca761e9b96db8b31ad5ecf34e97078d64be1528d52b8df2c05277b15ee459752162f526fcf3ca8f37ac651f326dfcc8974a3e1
6
+ metadata.gz: 548905cd943d90008fc922a138d482f5314f7389f0224e5903ae705571c149dc148d52ecc92011e236d745b258fa06c3a3d86919dffedc1699ffbafc0ade2a87
7
+ data.tar.gz: 246f67a54a7fd838b6c3e48ddc760664a5286cc2471154cc6c3faff323a40b6971b2547f133f0c9c8a193678b17a6fd158a9724c1da3261507fd676cc2944a5e
@@ -19,5 +19,5 @@ jobs:
19
19
  ${{ runner.os }}-gems-
20
20
  - run: bundle config path vendor/bundle
21
21
  - run: bundle install --jobs 4 --retry 3
22
- - run: bundle exec rubocop --config panolint.yml
22
+ - run: bundle exec rubocop --config rubocop.yml
23
23
  - run: bundle exec rspec
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.1...HEAD
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.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
- You can use this in your project's `.rubocop.yml` with the following at the top:
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: panolint.yml
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
+ - .
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Panolint
4
- VERSION = "0.1.1"
4
+ VERSION = "0.1.2"
5
5
  end
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.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
- - panolint.yml
149
+ - rubocop.yml
135
150
  homepage: https://github.com/panorama-ed/panolint
136
151
  licenses:
137
152
  - MIT