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

[Fix #7686] Add new JUnitFormatter #7701

Merged
merged 1 commit into from Feb 10, 2020

Conversation

koic
Copy link
Member

@koic koic commented Feb 9, 2020

Fixes #7686.

This PR Adds new JUnitFormatter formatter based on rubocop-junit-formatter gem.
https://github.com/mikian/rubocop-junit-formatter

And this PR includes the following patch to implementation of JUnitFormatter.
mikian/rubocop-junit-formatter#11.

REXML gem has been bundled gem since Ruby 2.8.0-dev (Ruby 3.0), it is added to depend on gemspec.

Cc @mikian


Before submitting the PR make sure the following are checked:

  • Wrote good commit messages.
  • Commit message starts with [Fix #issue-number] (if the related issue exists).
  • Feature branch is up-to-date with master (if not - rebase it).
  • Squashed related commits together.
  • Added tests.
  • Added an entry to the Changelog if the new code introduces user-observable changes. See changelog entry format.
  • The PR relates to only one subject with a clear title and description in grammatically correct, complete sentences.
  • Run bundle exec rake default. It executes all tests and RuboCop for itself, and generates the documentation.

Fixes rubocop#7686.

This PR Adds new `JUnitFormatter` formatter based on rubocop-junit-formatter gem.
https://github.com/mikian/rubocop-junit-formatter

And this PR includes the following patch to implementation of `JUnitFormatter`.
mikian/rubocop-junit-formatter#11.

REXML gem has been bundled gem since Ruby 2.8.0-dev (Ruby 3.0), it is
added to depend on gemspec.

- https://bugs.ruby-lang.org/issues/16485
- ruby/ruby@c3ccf23
@bbatsov
Copy link
Collaborator

bbatsov commented Feb 10, 2020

I guess we should also mention it in the docs.

@koic
Copy link
Member Author

koic commented Feb 10, 2020

@bbatsov
Copy link
Collaborator

bbatsov commented Feb 10, 2020

My bad. Didn't see where this was when I went over the changes.

@bbatsov bbatsov merged commit ebe2121 into rubocop:master Feb 10, 2020
@koic koic deleted the add_new_junit_formatter branch February 10, 2020 06:30
@koic koic mentioned this pull request Mar 11, 2020
koic added a commit that referenced this pull request Apr 29, 2022
Follow up #10572.

REXML dependency was introduced in #7701.

It makes sense to specify the latest secure REXML version 3.2.5 or higher:
https://www.ruby-lang.org/en/news/2021/04/05/xml-round-trip-vulnerability-in-rexml-cve-2021-28965/

And it would be clearer to specify `>= X.Y.Z` and `<= X.Y` than to use `~> X.Y` and `>= X.Y.Z`
when it comes to protected semantic MAJOR version with required minimum PATCH version.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Take over the junit-formatter?
2 participants