Skip to content

Commit 01229fd

Browse files
committed
rubocop: Ignore .github/copilot-instructions.md under AllCops
- We use the `rubocop-md` extension to lint the Ruby within our Markdown files. It parses Ruby code snippets out of Markdown files and runs RuboCop on them. - The `docs/` directory has its own RuboCop configuration to handle which rules we enforce. - Copilot's instructions are made up of all our docs. Instead of adding a separate RuboCop config in places where we want Copilot instructions files to exist but not spew linting errors (say, `Taps/homebrew/homebrew-core/.github/.rubocop.yml`), let's ignore this Markdown file entirely.
1 parent 1359c65 commit 01229fd

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Library/.rubocop.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ AllCops:
3131
- "Homebrew/bin/*"
3232
- "Homebrew/vendor/**/*"
3333
- "Taps/*/*/vendor/**/*"
34+
- "**/.github/copilot-instructions.md" # This should be treated the same as the `docs/` files.
3435
SuggestExtensions:
3536
rubocop-minitest: false
3637

0 commit comments

Comments
 (0)