Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

fat_model_finder

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fat_model_finder

bundlerRubygems
Version
0.1.1
Version published
Maintainers
1
Created
Source

FatModelFinder

Whats the only kind of Model a Ruby Developer can get?

A Fat one...

FatModelFinder is a CLI tool designed to help developers identify "fat models" in their Rails applications. It scans the /app/models directory, analyzes each model file, and determines whether the model is "fat" based on conditions defined in this gem.

Installation

To install the gem and add it to your application's Gemfile, execute:

$ bundle add fat_model_finder

If Bundler is not being used to manage dependencies, install the gem by executing:

$ gem install fat_model_finder

Usage

After installing the gem, you can use the CLI tool to scan your Rails application's models. Navigate to the root directory of your Rails application and run:

  • To scan the models and save the fat model data into a JSON file named file_data:

    $ bin/fat_model_finder scan
    
  • To display the fat models based on the saved JSON data:

    $ bin/fat_model_finder show_fat_models
    

The scan command analyzes the models in the /app/models directory and saves the results in a JSON file. The show_fat_models command parses the JSON file and outputs the fat model data to the user.

License

The gem is available as open source under the terms of the MIT License.

FAQs

Package last updated on 18 Sep 2025

Did you know?

Socket

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.

Install

Related posts