
Product
Introducing Module Reachability: Focus on the Vulnerabilities That Matter
Module Reachability filters out unreachable CVEs so you can focus on vulnerabilities that actually matter to your application.
html_scss_class_checker
Advanced tools
HtmlScssClassChecker is a Ruby gem for extracting and comparing class names from HTML and SCSS files. It helps in identifying unmatched or unused classes, enhancing the maintainability of front-end codebases.
Add this line to your application's Gemfile:
gem 'html_scss_class_checker'
And then execute:
bundle install
Or install it yourself as:
gem install html_scss_class_checker
To use HtmlScssClassChecker, you need to set up a configuration JSON file (config.json
) specifying known classes and directories to be checked:
{
"known_classes": ["class1", "class2"],
"html_directories": ["_includes", "_layouts"],
"scss_directories": ["_sass"]
}
Run the checker with:
require 'html_scss_class_checker'
checker = HtmlScssClassChecker::ClassChecker.new(config)
checker.check
puts "Unmatched Classes:"
puts checker.unmatched_classes.to_a
More detailed usage instructions will be provided in the Usage Documentation.
Contributions are welcome! For major changes, please open an issue first to discuss what you would like to change. Please ensure to update tests as appropriate.
See CONTRIBUTING.md for detailed guidelines.
For full documentation, visit our documentation page.
Distributed under the MIT License. See LICENSE for more information.
FAQs
Unknown package
We found that html_scss_class_checker demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Module Reachability filters out unreachable CVEs so you can focus on vulnerabilities that actually matter to your application.
Company News
Socket is bringing best-in-class reachability analysis into the platform — cutting false positives, accelerating triage, and cementing our place as the leader in software supply chain security.
Product
Socket is introducing a new way to organize repositories and apply repository-specific security policies.