Conversation
|
Hey @ashmaroli 👋 |
| Style/DoubleNegation: | ||
| Enabled: false | ||
| Style/Encoding: | ||
| EnforcedStyle: when_needed |
There was a problem hiding this comment.
Error: obsolete parameter EnforcedStyle (for Style/Encoding) found in .rubocop.yml
Style/Encoding no longer supports styles. The "never" behavior is always assumed.
There was a problem hiding this comment.
I'd like us to have the special encoding header on all our files if possible.
There was a problem hiding this comment.
| --- | ||
| AllCops: | ||
| TargetRubyVersion: 2.0 | ||
| TargetRubyVersion: 2.1 |
There was a problem hiding this comment.
Error: Unsupported Ruby version 2.0 found in `TargetRubyVersion` parameter (in .rubocop.yml). 2.0-compatible analysis was dropped after version 0.50.
Supported versions: 2.1, 2.2, 2.3, 2.4
There was a problem hiding this comment.
Jekyll itself dropped support for 2.0. So this is in sync..
| end | ||
| end | ||
| end # end of class << self | ||
| end |
There was a problem hiding this comment.
lib/jekyll/commands/build.rb:99:11: C: Style/CommentedKeyword: Do not place comments on the same line as the end keyword.
end # end of class << self
^^^^^^^^^^^^^^^^^^^^^^
| Jekyll.logger.warn "WARNING:", "Error reading configuration. " \ | ||
| "Using defaults (and options)." | ||
| $stderr.puts err | ||
| warn err |
There was a problem hiding this comment.
lib/jekyll/configuration.rb:210:9: C: Style/StderrPuts: Use warn instead of $stderr.puts.
$stderr.puts err
^^^^^^^^^^^^
There was a problem hiding this comment.
can these be changed to use Jekyll's logger instead?
There was a problem hiding this comment.
I wonder if we could just append it to the string we are already logging?
There was a problem hiding this comment.
Revisiting this, I'm not sure if we should be changing an outcome of a public method.. (..in the rare case someone's capturing $stderr for some purpose..)
So I think its best that we stick to warn in this PR or disable that check entirely if that's better..
There was a problem hiding this comment.
Would it be changing behavior? I'm sure our logger outputs to stderr, right?
|
|
||
| module WithRouge | ||
| def block_code(code, lang) | ||
| def block_code(_code, lang) |
There was a problem hiding this comment.
lib/jekyll/converters/markdown/redcarpet_parser.rb:50:20: W: Lint/UnusedMethodArgument: Unused method argument - code. If it's necessary, use _ or _code as an argument name to indicate that it won't be used.
def block_code(code, lang)
^^^^
There was a problem hiding this comment.
Hmm... this looks like a Rubocop bug, as code is clearly used in line 53.
There was a problem hiding this comment.
@pathawks it doesn't look like a Rubocop bug to me since if you look at line 51, code is being immediately re-assigned with code = "<pre>#{super}</pre>" so in effect overriding whatever has been passed to :block_code as the first argument..
There was a problem hiding this comment.
You are right! It is doing exactly what it’s supposed to do. We don’t need this.
| @@ -1,4 +1,3 @@ | |||
| # coding: utf-8 | |||
There was a problem hiding this comment.
test/test_filters.rb:1:1: C: Style/Encoding: Unnecessary utf-8 encoding comment.
# coding: utf-8
^^^^^^^^^^^^^^^
|
@pathawks Thanks for the mention 😃 |
|
Ok, I am going to merge this for now because every project that inherits jekyll/jekyll is currently borked. Maybe in another PR we can revisit @ashmaroli's idea of cleaning up |
|
@jekyllbot: merge +dev |
We had locked Rubocop to use |
I think I was trying to use the latest version of Rubocop with a plugin. You are correct, of course. |
|
I just did a test with the ~/code/jekyll/plugins/jekyll-watch master
❯ script/fmt
/Users/frank/.rbenv/versions/2.4.2/lib/ruby/gems/2.4.0/gems/jekyll-3.6.0/.rubocop.yml: Style/FileName has the wrong namespace - should be Naming
Error: Unsupported Ruby version 2.0 found in `TargetRubyVersion` parameter (in /Users/frank/.rbenv/versions/2.4.2/lib/ruby/gems/2.4.0/gems/jekyll-3.6.0/.rubocop.yml). 2.0-compatible analysis was dropped after version 0.50.
Supported versions: 2.1, 2.2, 2.3, 2.4Does this justify a |
|
@DirtyF Yes but— We have merged minor changes in Up to you. |
|
I had no idea this was a thing!! https://github.com/jekyll/jekyll/blob/3.6-stable/History.markdown @jekyllbot I love you. |
|
Tada 🎉 |
|
Oh, no... I got way ahead of myself. That didn't do what I thought it was going to do. |
|
@pathawks I'm not sure what's goin' on here. ~/code/jekyll/plugins/jekyll-watch master
$ bundle update
$ …
$ Installing jekyll 3.6.1 (was 3.6.0)
$ Bundle updated!
~/code/jekyll/plugins/jekyll-watch master
$ script/fmt
Error: obsolete parameter EnforcedStyle (for Style/Encoding) found in /Users/frank/.rbenv/versions/2.4.2/lib/ruby/gems/2.4.0/gems/jekyll-3.6.1/.rubocop.yml
Style/Encoding no longer supports styles. The "never" behavior is always assumed.@parkr said plugins will need some love, I'm up for creating |
|
Made some notes here about how I approach the release & development process: https://github.com/jekyll/maintainers/issues/2#issuecomment-338017913 |
|
Sorry; I’m still learning how all this works. |
|
@pathawks same here, just trying to catch on what's goin' on. You're doing great. |
|
@DirtyF I saw that there was already a Rubocop PR in the This was not the case, so |

PR automatically created for @pathawks.