2018-11-12 04:46:47 +01:00
inherit_from : ./.rubocop_shared.yml
Cask/HomepageMatchesUrl :
2020-06-25 11:20:57 +01:00
Description : 'Ensure that the homepage and url match, otherwise add a comment. More info at https://github.com/Homebrew/homebrew-cask/blob/HEAD/doc/cask_language_reference/stanzas/url.md#when-url-and-homepage-hostnames-differ-add-a-comment'
2018-11-12 04:46:47 +01:00
Enabled : true
2019-09-22 11:41:46 -04:00
Exclude :
- '**/test/support/fixtures/cask/Casks/**/*.rb'
2018-11-12 04:46:47 +01:00
Cask/HomepageUrlTrailingSlash :
Description : 'Ensure that the homepage url has a slash after the domain name.'
Enabled : true
Cask/NoDslVersion :
Description : 'Do not use the deprecated DSL version syntax in your cask header.'
Enabled : true
Cask/StanzaGrouping :
2020-06-25 11:20:57 +01:00
Description : 'Ensure that cask stanzas are grouped correctly. More info at https://github.com/Homebrew/homebrew-cask/blob/HEAD/CONTRIBUTING.md#stanza-order'
2018-11-12 04:46:47 +01:00
Enabled : true
Cask/StanzaOrder :
2020-06-25 11:20:57 +01:00
Description : 'Ensure that cask stanzas are sorted correctly. More info at https://github.com/Homebrew/homebrew-cask/blob/HEAD/CONTRIBUTING.md#stanza-order'
2018-11-12 04:46:47 +01:00
Enabled : true
2019-11-28 15:10:50 +00:00
Layout/HashAlignment :
2018-11-12 04:46:47 +01:00
EnforcedHashRocketStyle : table
EnforcedColonStyle : table
2019-12-01 14:20:11 +00:00
Layout/FirstArrayElementIndentation :
2018-11-12 04:46:47 +01:00
EnforcedStyle : align_brackets
2019-12-01 14:20:11 +00:00
Layout/FirstHashElementIndentation :
2018-11-12 04:46:47 +01:00
EnforcedStyle : align_braces
2018-11-13 03:57:19 +01:00
# Casks often contain long URLs and file paths.
2019-12-19 12:01:51 +00:00
Layout/LineLength :
2018-11-12 04:46:47 +01:00
Enabled : false
2018-11-13 03:57:19 +01:00
# Casks don't need documentation.
2018-11-12 04:46:47 +01:00
Style/Documentation :
Enabled : false
2018-11-13 03:57:19 +01:00
# These would only be distracting in casks.
2018-11-12 04:46:47 +01:00
Style/FrozenStringLiteralComment :
2018-11-13 03:57:19 +01:00
EnforcedStyle : never
2018-11-12 04:46:47 +01:00
2018-11-13 03:57:19 +01:00
# Don't use hash rockets.
2018-11-12 04:46:47 +01:00
Style/HashSyntax :
EnforcedStyle : ruby19_no_mixed_keys
2018-11-13 03:57:19 +01:00
# This is more readable when the regex contains slashes.
2018-11-12 04:46:47 +01:00
Style/RegexpLiteral :
EnforcedStyle : percent_r
2018-11-13 03:57:19 +01:00
# Use consistent style for all arrays.
Style/WordArray :
2018-11-12 04:46:47 +01:00
EnforcedStyle : brackets
2018-11-13 03:57:19 +01:00
# This makes multi-line arrays more readable and alignable.
Layout/FirstArrayElementLineBreak :
Enabled : true
2018-11-12 04:46:47 +01:00
2018-11-13 03:57:19 +01:00
# This makes multi-line hashes more readable and alignable.
Layout/FirstHashElementLineBreak :
Enabled : true