Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Only report new offenses #9

Merged
merged 1 commit into from
Sep 19, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions danger-klaxit/Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
PATH
remote: .
specs:
danger-klaxit (0.0.2)
danger-klaxit (0.1.0)
danger-plugin-api (~> 1.0)
danger-rubocop (~> 0.6)
danger-rubocop (~> 0.7)
parser (~> 2.6.0)

GEM
Expand Down Expand Up @@ -36,7 +36,7 @@ GEM
terminal-table (~> 1)
danger-plugin-api (1.0.0)
danger (> 2.0)
danger-rubocop (0.6.1)
danger-rubocop (0.7.0)
danger
rubocop
diff-lcs (1.3)
Expand Down
2 changes: 1 addition & 1 deletion danger-klaxit/danger-klaxit.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Gem::Specification.new do |spec|

spec.add_runtime_dependency "danger-plugin-api", "~> 1.0"

spec.add_runtime_dependency "danger-rubocop", "~> 0.6"
spec.add_runtime_dependency "danger-rubocop", "~> 0.7"
# Parser version is specified to 2.6.0 to facilitate a migration to Ruby 2.6.
# Moreover, a lot of Gems need this version, hence we improve compatibility
spec.add_runtime_dependency "parser", "~> 2.6.0"
Expand Down
3 changes: 2 additions & 1 deletion danger-klaxit/lib/danger_plugin.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ def common
def warn_rubocop
rubocop.lint(files: git.modified_files + git.added_files,
inline_comment: true,
force_exclusion: true)
force_exclusion: true,
only_report_new_offenses: true)
end

# Inspects commit messages to stop someone from merging until the committer
Expand Down
2 changes: 1 addition & 1 deletion danger-klaxit/lib/klaxit/gem_version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module Klaxit
VERSION = "0.0.2".freeze
VERSION = "0.1.0".freeze
end