rubocop: Move Style/Documentation stanza
- This is better in the `Library/Homebrew/.rubocop.yml` since it's operating on files that are within that directory.
This commit is contained in:
parent
316df75da9
commit
27610e0a66
@ -339,48 +339,6 @@ Style/DisableCopsWithinSourceCodeDirective:
|
|||||||
- "/**/{Formula,Casks}/*.rb"
|
- "/**/{Formula,Casks}/*.rb"
|
||||||
- "**/{Formula,Casks}/*.rb"
|
- "**/{Formula,Casks}/*.rb"
|
||||||
|
|
||||||
# Only enforce documentation for public APIs.
|
|
||||||
Style/Documentation:
|
|
||||||
AllowedConstants:
|
|
||||||
- Homebrew
|
|
||||||
Include:
|
|
||||||
- Homebrew/cask/dsl.rb
|
|
||||||
- Homebrew/cask/dsl/version.rb
|
|
||||||
- Homebrew/cask/url.rb
|
|
||||||
- Homebrew/download_strategy.rb
|
|
||||||
- Homebrew/formula.rb
|
|
||||||
- Homebrew/formula_assertions.rb
|
|
||||||
- Homebrew/formula_free_port.rb
|
|
||||||
- Homebrew/language/go.rb
|
|
||||||
- Homebrew/language/java.rb
|
|
||||||
- Homebrew/language/node.rb
|
|
||||||
- Homebrew/language/perl.rb
|
|
||||||
- Homebrew/language/python.rb
|
|
||||||
- Homebrew/livecheck/strategy/apache.rb
|
|
||||||
- Homebrew/livecheck/strategy/bitbucket.rb
|
|
||||||
- Homebrew/livecheck/strategy/cpan.rb
|
|
||||||
- Homebrew/livecheck/strategy/extract_plist.rb
|
|
||||||
- Homebrew/livecheck/strategy/git.rb
|
|
||||||
- Homebrew/livecheck/strategy/github_latest.rb
|
|
||||||
- Homebrew/livecheck/strategy/gnome.rb
|
|
||||||
- Homebrew/livecheck/strategy/gnu.rb
|
|
||||||
- Homebrew/livecheck/strategy/hackage.rb
|
|
||||||
- Homebrew/livecheck/strategy/json.rb
|
|
||||||
- Homebrew/livecheck/strategy/launchpad.rb
|
|
||||||
- Homebrew/livecheck/strategy/npm.rb
|
|
||||||
- Homebrew/livecheck/strategy/page_match.rb
|
|
||||||
- Homebrew/livecheck/strategy/pypi.rb
|
|
||||||
- Homebrew/livecheck/strategy/sourceforge.rb
|
|
||||||
- Homebrew/livecheck/strategy/sparkle.rb
|
|
||||||
- Homebrew/livecheck/strategy/xorg.rb
|
|
||||||
- Homebrew/os.rb
|
|
||||||
- Homebrew/resource.rb
|
|
||||||
- Homebrew/utils.rb
|
|
||||||
- Homebrew/utils/inreplace.rb
|
|
||||||
- Homebrew/utils/shebang.rb
|
|
||||||
- Homebrew/utils/string_inreplace_extension.rb
|
|
||||||
- Homebrew/version.rb
|
|
||||||
|
|
||||||
Style/DocumentationMethod:
|
Style/DocumentationMethod:
|
||||||
Include:
|
Include:
|
||||||
- "Homebrew/formula.rb"
|
- "Homebrew/formula.rb"
|
||||||
|
|||||||
@ -17,6 +17,48 @@ Naming/PredicateName:
|
|||||||
- is_32_bit?
|
- is_32_bit?
|
||||||
- is_64_bit?
|
- is_64_bit?
|
||||||
|
|
||||||
|
# Only enforce documentation for public APIs.
|
||||||
|
Style/Documentation:
|
||||||
|
AllowedConstants:
|
||||||
|
- Homebrew
|
||||||
|
Include:
|
||||||
|
- cask/dsl.rb
|
||||||
|
- cask/dsl/version.rb
|
||||||
|
- cask/url.rb
|
||||||
|
- download_strategy.rb
|
||||||
|
- formula.rb
|
||||||
|
- formula_assertions.rb
|
||||||
|
- formula_free_port.rb
|
||||||
|
- language/go.rb
|
||||||
|
- language/java.rb
|
||||||
|
- language/node.rb
|
||||||
|
- language/perl.rb
|
||||||
|
- language/python.rb
|
||||||
|
- livecheck/strategy/apache.rb
|
||||||
|
- livecheck/strategy/bitbucket.rb
|
||||||
|
- livecheck/strategy/cpan.rb
|
||||||
|
- livecheck/strategy/extract_plist.rb
|
||||||
|
- livecheck/strategy/git.rb
|
||||||
|
- livecheck/strategy/github_latest.rb
|
||||||
|
- livecheck/strategy/gnome.rb
|
||||||
|
- livecheck/strategy/gnu.rb
|
||||||
|
- livecheck/strategy/hackage.rb
|
||||||
|
- livecheck/strategy/json.rb
|
||||||
|
- livecheck/strategy/launchpad.rb
|
||||||
|
- livecheck/strategy/npm.rb
|
||||||
|
- livecheck/strategy/page_match.rb
|
||||||
|
- livecheck/strategy/pypi.rb
|
||||||
|
- livecheck/strategy/sourceforge.rb
|
||||||
|
- livecheck/strategy/sparkle.rb
|
||||||
|
- livecheck/strategy/xorg.rb
|
||||||
|
- os.rb
|
||||||
|
- resource.rb
|
||||||
|
- utils.rb
|
||||||
|
- utils/inreplace.rb
|
||||||
|
- utils/shebang.rb
|
||||||
|
- utils/string_inreplace_extension.rb
|
||||||
|
- version.rb
|
||||||
|
|
||||||
Style/HashAsLastArrayItem:
|
Style/HashAsLastArrayItem:
|
||||||
Exclude:
|
Exclude:
|
||||||
- "test/utils/spdx_spec.rb"
|
- "test/utils/spdx_spec.rb"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user