vitorgalvao/tiny-scripts

PR failing due to style issue: PR uses single quotes yet Brew Cask CI wants double quotes

desimaniac opened this issue · 2 comments

Used latest cask-repair (v. 0.40.22) to submit an update for cask anki and the PR CI checks are failing due to single quotes and tabs being used.

Not sure whose style to go by here - there's or cask-repair's.

PR submitted: https://github.com/Homebrew/homebrew-cask/pull/86658/files

image

image

Pasted diff of the PR as well

--- a/Casks/anki.rb
+++ b/Casks/anki.rb
@@ -1,19 +1,19 @@
-cask "anki" do
-  version "2.1.28"
-  sha256 "c4eec38d80804fcd9e82d24a4ee5d4fbc581b8f5de1e1f08056f80b4bef60a2d"
+cask 'anki' do
+  version '2.1.29'
+  sha256 'b3fc61553b62c014d979ad738c8eca1713a9fc9dcc8108203063b181ace4ba31'

   # github.com/ankitects/anki/ was verified as official when first introduced to the cask
   url "https://github.com/ankitects/anki/releases/download/#{version}/anki-#{version}-mac.dmg"
-  appcast "https://changes.ankiweb.net/README.md"
-  name "Anki"
-  homepage "https://apps.ankiweb.net/"
+  appcast 'https://changes.ankiweb.net/README.md'
+  name 'Anki'
+  homepage 'https://apps.ankiweb.net/'

-  depends_on macos: ">= :sierra"
+  depends_on macos: '>= :sierra'

-  app "Anki.app"
+  app 'Anki.app'

   zap trash: [
-    "~/Library/Application Support/Anki",
-    "~/Library/Application Support/Anki2",
-  ]
+               '~/Library/Application Support/Anki',
+               '~/Library/Application Support/Anki2',
+             ]
 end

cask-repair uses the same command to fix the style, so this will eventually sort itself automatically.