This repository has been archived by the owner on Dec 17, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add pronto-bundler_audit as a vendored gem
Being a vendored gem allows me to test unreleased versions of pronoto-bundler_audit.
- Loading branch information
Showing
28 changed files
with
1,004 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
/*.gem | ||
/.bundle/ | ||
/.DS_Store | ||
/.yardoc | ||
/_yardoc/ | ||
/coverage/ | ||
/doc/ | ||
/pkg/ | ||
/spec/reports/ | ||
/tmp/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
--display-cop-names | ||
--display-style-guide | ||
--extra-details | ||
--format=fuubar |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,159 @@ | ||
AllCops: | ||
UseCache: true | ||
DisplayCopNames: true | ||
DisplayStyleGuide: true | ||
ExtraDetails: false | ||
TargetRubyVersion: 2.5.3 | ||
|
||
Layout/ClassStructure: | ||
Enabled: true | ||
Categories: | ||
module_inclusion: | ||
- extend | ||
- include | ||
- prepend | ||
attributes: | ||
- attr_accessor | ||
- attr_reader | ||
- attr_writer | ||
ExpectedOrder: | ||
- constants | ||
- module_inclusion | ||
- attributes | ||
- public_class_methods | ||
- initializer | ||
- public_methods | ||
- predicates | ||
- protected_methods | ||
- private_methods | ||
|
||
Layout/DotPosition: | ||
EnforcedStyle: trailing | ||
|
||
Layout/EmptyLineAfterGuardClause: | ||
Enabled: true | ||
|
||
Layout/EndOfLine: | ||
EnforcedStyle: lf | ||
|
||
Layout/IndentFirstArgument: | ||
EnforcedStyle: consistent_relative_to_receiver | ||
|
||
Layout/IndentFirstArrayElement: | ||
EnforcedStyle: consistent | ||
|
||
Layout/IndentFirstHashElement: | ||
EnforcedStyle: consistent | ||
|
||
Layout/MultilineAssignmentLayout: | ||
Enabled: true | ||
|
||
Layout/MultilineMethodCallBraceLayout: | ||
EnforcedStyle: same_line | ||
|
||
Layout/MultilineMethodCallIndentation: | ||
EnforcedStyle: indented_relative_to_receiver | ||
|
||
Layout/MultilineMethodDefinitionBraceLayout: | ||
EnforcedStyle: same_line | ||
|
||
Layout/MultilineOperationIndentation: | ||
Enabled: false # Waiting for e.g. `indented_relative_to_receiver`. | ||
|
||
Lint/AmbiguousOperator: | ||
Enabled: false # Conflicts with other rules. | ||
|
||
Lint/AmbiguousRegexpLiteral: | ||
Enabled: false # Conflicts with other rules. | ||
|
||
Lint/Void: | ||
CheckForMethodsWithNoSideEffects: true | ||
|
||
Metrics/BlockLength: | ||
ExcludedMethods: | ||
- new | ||
- describe # Tests | ||
- context # Tests | ||
- ips # Benchmarking | ||
|
||
Metrics/ClassLength: | ||
Exclude: | ||
- "test/**/*" | ||
- "lib/object_inspector/formatters/templating_formatter.rb" | ||
|
||
Metrics/LineLength: | ||
Max: 80 | ||
Exclude: | ||
- "test/**/*" | ||
- "object_inspector.gemspec" | ||
|
||
Naming/UncommunicativeMethodParamName: | ||
AllowedNames: | ||
- a | ||
- b | ||
|
||
Style/Alias: | ||
EnforcedStyle: prefer_alias_method | ||
|
||
Style/BlockDelimiters: | ||
Enabled: false # Reconsider later. | ||
|
||
Style/ClassAndModuleChildren: | ||
AutoCorrect: true | ||
Exclude: | ||
- "test/**/*" | ||
|
||
Style/CollectionMethods: | ||
Enabled: true | ||
PreferredMethods: | ||
collect: map | ||
collect!: map! | ||
find_all: select | ||
detect: detect | ||
inject: inject | ||
|
||
Style/EmptyElse: | ||
# It"s helpful to show intent by including a comment in an else block. | ||
Enabled: false | ||
|
||
Style/EmptyMethod: | ||
EnforcedStyle: expanded | ||
|
||
Style/ExpandPathArguments: | ||
Exclude: | ||
- "object_inspector.gemspec" | ||
|
||
Style/FormatString: | ||
Enabled: false # % notation with an Array just reads better sometimes. | ||
|
||
Style/Lambda: | ||
EnforcedStyle: literal | ||
|
||
Style/LambdaCall: | ||
Enabled: false # Allow ServiceObject.(*). Only use on classes, not instances. | ||
|
||
Style/NumericPredicate: | ||
Enabled: false # Trying to be welcoming to earlier versions of Ruby. | ||
# AutoCorrect: true | ||
|
||
Style/RegexpLiteral: | ||
EnforcedStyle: mixed | ||
|
||
Style/RescueStandardError: | ||
EnforcedStyle: implicit | ||
|
||
Style/ReturnNil: | ||
Enabled: true | ||
|
||
Style/StringMethods: | ||
Enabled: true | ||
|
||
Style/SingleLineMethods: | ||
Exclude: | ||
- "test/**/*_test.rb" | ||
|
||
Style/StringLiterals: | ||
EnforcedStyle: double_quotes | ||
|
||
Style/StringLiteralsInInterpolation: | ||
EnforcedStyle: double_quotes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
env: | ||
global: | ||
- CC_TEST_REPORTER_ID=d474e8b46e1c2bdae364c33263aa113e922381016a151052bff1ec8cb743da22 | ||
sudo: false | ||
language: ruby | ||
rvm: | ||
- 2.3 | ||
- 2.4 | ||
- 2.5 | ||
- 2.6 | ||
- ruby-head | ||
notifications: | ||
email: false | ||
before_install: gem install bundler -v 2.0.1 | ||
cache: bundler | ||
before_script: | ||
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter | ||
- chmod +x ./cc-test-reporter | ||
- ./cc-test-reporter before-build | ||
after_script: | ||
- ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
### Unreleased | ||
- Fix: `NoMethodError: undefined method `position' for nil:NilClass` in /gems/pronto-0.10.0/lib/pronto/formatter/github_pull_request_review_formatter.rb:20:in `line_number'. | ||
- [2](https://github.com/pdobb/pronto-bundler_audit/issues/2) Fix: `NoMethodError: undefined method `repo' for #<Pronto::BundlerAudit::GemfileLock::Scanner::Patch:...>`. | ||
|
||
### 0.4.0 - 2019-05-08 | ||
- Remove patch-level processing... just always scan Gemfile.lock when this runner is invoked. | ||
|
||
### 0.3.0 - 2019-05-03 | ||
- Internal rewrite into smaller objects with full test coverage | ||
- Switch to using the verbose advisory formatter by default | ||
|
||
### 0.2.1 - 2019-04-30 | ||
- Fix handling of the Pronto::Git::Patches collection in Pronto::BundlerAudit#run | ||
- Ensure an Array is returned by Pronto::BundlerAudit#run, as expected by Pronto | ||
|
||
### 0.2.0 - 2019-04-30 | ||
- Fix conditional for running Bundle Audit scans -- was always running even if there was nothing to run on in a given Pronto::Patches set | ||
|
||
### 0.1.1 - 2019-04-29 | ||
- Add line number to Pronto::Message; fixes GitHub API usage error when attempting to add errors to PR comments | ||
- Add gem version requirements to gemspec | ||
|
||
### 0.1.0 - 2019-04-28 | ||
- Initial release! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# frozen_string_literal: true | ||
|
||
source "https://rubygems.org" | ||
|
||
# Specify your gem's dependencies in pronto-bundler_audit.gemspec | ||
gemspec |
Oops, something went wrong.