Bookworm is a program that gleans context from a Chef/Ruby codebase leveraging RuboCop AST pattern matching
by facebookRuby
Last 12 weeks · 9 commits
4 of 6 standards met
Repository: facebook/bookworm. Description: Bookworm is a program that gleans context from a Chef/Ruby codebase leveraging RuboCop AST pattern matching Stars: 18, Forks: 3. Primary language: Ruby. Languages: Ruby (100%). License: Apache-2.0. Open PRs: 0, open issues: 0. Last activity: 1w ago. Community health: 75%. Top contributors: dafyddcrosby, AadityaNair, facebook-github-bot, joshuamiller01, jaymzh.
Add .editorconfig file for consistent editor settings across the project. Remove vim modelines from all files since the editorconfig now handles the same settings in an editor-agnostic way.
Summary: Add a new bookworm key to detect RSpec test files in cookbooks, and create a corresponding rule. Since normal rspec and chefspec can be side-by-side, I opted for the more generic key. We're ignoring helper-type files, only focusing on _spec since that's where the tests need to reside. The key uses: glob_pattern: /spec/_spec.rb path_name_regex: spec/(.*)_spec\.rb determine_cookbook_name: true This enables bookworm to track which cookbooks have RSpec test files. Differential Revision: D90535240