mirror of
https://github.com/capistrano/capistrano
synced 2023-03-27 23:21:18 -04:00
Merge pull request #1621 from will-in-wi/rubocop_trailing_comma_in_literal
Enable TrailingCommaInLiteral cop
This commit is contained in:
commit
42e0537a8d
2 changed files with 4 additions and 6 deletions
|
@ -29,8 +29,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:
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue