Add rubocop to our build. (#5004)

This commit is contained in:
Guo Xiang Tan
2017-07-28 10:20:09 +09:00
committed by GitHub
parent ff4e295c4f
commit 5012d46cbd
871 changed files with 5480 additions and 6056 deletions

View File

@@ -7,7 +7,7 @@ describe "CommonMark" do
SiteSetting.traditional_markdown_linebreaks = true
SiteSetting.enable_markdown_typographer = false
html,state,md = nil
html, state, md = nil
failed = 0
File.readlines(Rails.root + 'spec/fixtures/md/spec.txt').each do |line|
@@ -49,7 +49,7 @@ describe "CommonMark" do
puts md
puts
end
html,state,md = nil
html, state, md = nil
next
end
@@ -66,7 +66,6 @@ describe "CommonMark" do
html = (html || String.new) << line
end
end
expect(failed).to eq(0)

View File

@@ -36,7 +36,6 @@ def is_yaml_compatible?(english, translated)
true
end
describe "i18n integrity checks" do
it 'has an i18n key for each Trust Levels' do