1
0
Fork 0
mirror of https://github.com/capistrano/capistrano synced 2023-03-27 23:21:18 -04:00

Enable TrailingCommaInLiteral cop

This commit is contained in:
William Johnston 2016-03-01 09:44:09 -06:00 committed by William Johnston
parent f563e28559
commit 3907550435
2 changed files with 4 additions and 6 deletions

View file

@ -33,8 +33,6 @@ Style/SingleLineBlockParams:
Enabled: false Enabled: false
Style/ModuleFunction: Style/ModuleFunction:
Enabled: false Enabled: false
Style/TrailingCommaInLiteral:
Enabled: false
# Needs refactors # Needs refactors
Metrics/PerceivedComplexity: Metrics/PerceivedComplexity:

View file

@ -22,7 +22,7 @@ describe Capistrano::DSL::Paths do
it "returns the full pathnames" do it "returns the full pathnames" do
expect(subject).to eq [ expect(subject).to eq [
Pathname.new("/var/shared/log"), Pathname.new("/var/shared/log"),
Pathname.new("/var/shared/public/system"), Pathname.new("/var/shared/public/system")
] ]
end end
end end
@ -38,7 +38,7 @@ describe Capistrano::DSL::Paths do
expect(subject).to eq [ expect(subject).to eq [
Pathname.new("/var/shared/config/database.yml"), Pathname.new("/var/shared/config/database.yml"),
Pathname.new("/var/shared/log/my.log"), Pathname.new("/var/shared/log/my.log"),
Pathname.new("/var/shared/log/access.log"), Pathname.new("/var/shared/log/access.log")
] ]
end end
end end
@ -53,7 +53,7 @@ describe Capistrano::DSL::Paths do
it "returns the full paths names of the parent dirs" do it "returns the full paths names of the parent dirs" do
expect(subject).to eq [ expect(subject).to eq [
Pathname.new("/var/shared/config"), Pathname.new("/var/shared/config"),
Pathname.new("/var/shared/log"), Pathname.new("/var/shared/log")
] ]
end end
end end
@ -68,7 +68,7 @@ describe Capistrano::DSL::Paths do
it "returns the full paths names of the parent dirs" do it "returns the full paths names of the parent dirs" do
expect(subject).to eq [ expect(subject).to eq [
Pathname.new("/var/shared"), Pathname.new("/var/shared"),
Pathname.new("/var/shared/public"), Pathname.new("/var/shared/public")
] ]
end end
end end