diff options
| author | Mike McQuaid | 2017-10-29 16:56:00 +0000 |
|---|---|---|
| committer | GitHub | 2017-10-29 16:56:00 +0000 |
| commit | 215f49684b851f750537ca1052f2f740974c7f74 (patch) | |
| tree | 8d26871fa0be1688a02b477d48cc0aa48d2a07ba /Library/Homebrew/test | |
| parent | 9dbff4ebbec6d53ec0c01187e5b912a0abb339d2 (diff) | |
| parent | 640b1e9dcb3fb96f6a54c0d63da4fb1985351a83 (diff) | |
| download | brew-215f49684b851f750537ca1052f2f740974c7f74.tar.bz2 | |
Merge pull request #2795 from issyl0/desc_no_full_stops
formula_desc_cop: ensure no full stops at the end of desc
Diffstat (limited to 'Library/Homebrew/test')
| -rw-r--r-- | Library/Homebrew/test/rubocops/formula_desc_cop_spec.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Library/Homebrew/test/rubocops/formula_desc_cop_spec.rb b/Library/Homebrew/test/rubocops/formula_desc_cop_spec.rb index 3ddc42d34..aacb52ebb 100644 --- a/Library/Homebrew/test/rubocops/formula_desc_cop_spec.rb +++ b/Library/Homebrew/test/rubocops/formula_desc_cop_spec.rb @@ -91,6 +91,16 @@ describe RuboCop::Cop::FormulaAuditStrict::Desc do RUBY end + it "When the description ends with a full stop" do + expect_offense(<<~RUBY, "/homebrew-core/Formula/foo.rb") + class Foo < Formula + url 'http://example.com/foo-1.0.tgz' + desc 'Description with a full stop at the end.' + ^ Description shouldn\'t end with a full stop + end + RUBY + end + it "autocorrects all rules" do source = <<~EOS class Foo < Formula |
