You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is a linter error with rubocop in a Pull Request
> bundle exec rubocop
Offenses:
spec/lib/config/sitemap_spec.rb:381:9: C: RSpec/NestedGroups: Maximum example group nesting exceeded [5/4].
context 'when batteries category is a child of gears'do ^^
These errors are generated by the rspec rubocop. However when running QLTY check it never captures them. Above is the rubocop using bundle exec rubocop. Running qlty check
qlty check
✔ No issues
The best guess as to what is happening is that it is not seeing the rubocop-rspec gem.
# This file was automatically generated by `qlty init`.
# You can modify it to suit your needs.
# We recommend you to commit this file to your repository.
#
# This configuration is used by both Qlty CLI and Qlty Cloud.
#
# Qlty CLI -- Code quality toolkit for developers
# Qlty Cloud -- Fully automated Code Health Platform
#
# Try Qlty Cloud: https://qlty.ai
#
# For a guide to configuration, visit https://qlty.ai/docs/config
# Or for a full reference, visit https://qlty.ai/docs/qlty-toml
config_version = "0"
exclude_patterns = [
"*_min.*",
"*-min.*",
"*.min.*",
"**/*.d.ts",
"**/.yarn/**",
"**/bower_components/**",
"**/build/**",
"**/cache/**",
"**/config/**",
"**/db/**",
"**/deps/**",
"**/dist/**",
"**/extern/**",
"**/external/**",
"**/generated/**",
"**/Godeps/**",
"**/gradlew/**",
"**/mvnw/**",
"**/node_modules/**",
"**/protos/**",
"**/seed/**",
"**/target/**",
"**/testdata/**",
"**/vendor/**",
"**/assets/**",
]
test_patterns = [
"**/test/**",
"**/spec/**",
"**/*.test.*",
"**/*.spec.*",
"**/*_test.*",
"**/*_spec.*",
"**/test_*.*",
"**/spec_*.*",
]
[[source]]
name = "default"
repository = "https://github.com/qltyai/plugins.git"
tag = "v0.125.0"
[[plugin]]
name = "actionlint"
[[plugin]]
name = "brakeman"
[[plugin]]
name = "coffeelint"
[[plugin]]
name = "dotenv-linter"
[[plugin]]
name = "eslint"
version = "8.57.0"
package_file = "package.json"
package_filters = ["eslint", "jest", "prettier"]
[[plugin]]
name = "hadolint"
[[plugin]]
name = "markdownlint"
[[plugin]]
name = "osv-scanner"
[[plugin]]
name = "prettier"
version = "3.2.5"
package_file = "package.json"
package_filters = ["prettier"]
[[plugin]]
name = "ripgrep"
[[plugin]]
name = "rubocop"
version = "1.60.1"
package_file = "Gemfile"
package_filters = ["rubocop"]
config_files = ["it_behaves_like.rb"]
[[plugin]]
name = "shellcheck"
[[plugin]]
name = "shfmt"
[[plugin]]
name = "trufflehog"
[[plugin]]
name = "yamllint"
What happened?
There is a linter error with rubocop in a Pull Request
These errors are generated by the rspec rubocop. However when running QLTY check it never captures them. Above is the rubocop using
bundle exec rubocop
. Runningqlty check
The best guess as to what is happening is that it is not seeing the rubocop-rspec gem.
Generated Gemfile from qlty
Source Gem file from the repo. Removed all the extra gems and only copy pasted the code that was relevent.
qlty.toml
What did you expect to happen?
Failed to capture linter error with rubocop-rspec
Can you reproduce the problem?
Yes, consistently
CLI Version
qlty 0.472.0 macos-arm64 (e6ba9f1 2025-01-14)
Relevant log output
Relevant log output
The text was updated successfully, but these errors were encountered: