1
0
mirror of https://github.com/github/choosealicense.com synced 2024-12-22 04:40:09 +01:00

Suppress warning about pending cops, changes suggested by enabled cops

This commit is contained in:
Mike Linksvayer 2020-07-30 11:53:51 -07:00
parent 7e2358e3c1
commit 3074bf679a
3 changed files with 5 additions and 4 deletions

View File

@ -1,4 +1,5 @@
AllCops: AllCops:
NewCops: enable
TargetRubyVersion: 2.7 TargetRubyVersion: 2.7
Exclude: Exclude:
- _site/**/* - _site/**/*
@ -7,7 +8,7 @@ AllCops:
Metrics/BlockLength: Metrics/BlockLength:
Enabled: false Enabled: false
Metrics/LineLength: Layout/LineLength:
Enabled: false Enabled: false
Metrics/MethodLength: Metrics/MethodLength:

View File

@ -50,7 +50,7 @@ describe 'license meta' do
let(:detected) { Licensee::ProjectFiles::LicenseFile.new(content, 'LICENSE').license } let(:detected) { Licensee::ProjectFiles::LicenseFile.new(content, 'LICENSE').license }
if example_url.start_with?('https://github.com/') if example_url.start_with?('https://github.com/')
example_url.gsub!(%r{\Ahttps://github.com/([\w-]+/[\w\.-]+)/blob/(\S+)\z}, 'https://raw.githubusercontent.com/\1/\2') example_url.gsub!(%r{\Ahttps://github.com/([\w-]+/[\w.-]+)/blob/(\S+)\z}, 'https://raw.githubusercontent.com/\1/\2')
elsif example_url.start_with?('https://git.savannah.gnu.org/', 'https://git.gnome.org/') elsif example_url.start_with?('https://git.savannah.gnu.org/', 'https://git.gnome.org/')
example_url.gsub!(%r{/tree/}, '/plain/') example_url.gsub!(%r{/tree/}, '/plain/')
elsif example_url.start_with?('https://bitbucket.org/') elsif example_url.start_with?('https://bitbucket.org/')

View File

@ -7,8 +7,8 @@ require 'open-uri'
module SpecHelper module SpecHelper
class << self class << self
attr_accessor :config, :licenses, :site, :spdx attr_accessor :config, :licenses, :site, :spdx,
attr_accessor :osi_approved_licenses, :fsf_approved_licenses, :od_approved_licenses :osi_approved_licenses, :fsf_approved_licenses, :od_approved_licenses
end end
end end