Skip to content

Commit

Permalink
Update links that make use of deprecated git.io
Browse files Browse the repository at this point in the history
  • Loading branch information
koic committed Apr 27, 2022
1 parent 3679375 commit 72d6299
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/spell_checking.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,6 @@ jobs:
steps:
- uses: actions/checkout@v3
- name: Install
run: wget -O - -q https://git.io/misspell | sh -s -- -b .
run: wget -O - -q https://raw.githubusercontent.com/client9/misspell/master/install-misspell.sh | sh -s -- -b .
- name: Misspell
run: git ls-files --empty-directory | xargs ./misspell -i 'enviromnent' -error
7 changes: 4 additions & 3 deletions lib/rubocop/magic_comment.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ module RuboCop
#
# @abstract parent of three different magic comment handlers
class MagicComment
# @see https://git.io/vMC1C IRB's pattern for matching magic comment tokens
# IRB's pattern for matching magic comment tokens.
# @see https://github.com/ruby/ruby/blob/b4a55c1/lib/irb/magic-file.rb#L5
TOKEN = /[[:alnum:]\-_]+/.freeze
KEYWORDS = {
encoding: '(?:en)?coding',
Expand Down Expand Up @@ -170,7 +171,7 @@ def tokens
# comment.encoding # => 'ascii-8bit'
#
# @see https://www.gnu.org/software/emacs/manual/html_node/emacs/Specify-Coding.html
# @see https://git.io/vMCXh Emacs handling in Ruby's parse.y
# @see https://github.com/ruby/ruby/blob/3f306dc/parse.y#L6873-L6892 Emacs handling in parse.y
class EmacsComment < EditorComment
REGEXP = /-\*-(.+)-\*-/.freeze
FORMAT = '# -*- %s -*-'
Expand Down Expand Up @@ -259,7 +260,7 @@ def without(type)
# is the only text in the comment.
#
# Case-insensitive and dashes/underscores are acceptable.
# @see https://git.io/vM7Mg
# @see https://github.com/ruby/ruby/blob/78b95b4/parse.y#L7134-L7138
def extract_frozen_string_literal
extract(/\A\s*#\s*#{KEYWORDS[:frozen_string_literal]}:\s*(#{TOKEN})\s*\z/io)
end
Expand Down

0 comments on commit 72d6299

Please sign in to comment.