Our Brakeman engine now supports scanning a Rails application against any directory jn your repository. Brakeman supports this via an app_path option, which you can now specify in your .codeclimate.yml:

    engines:
      brakeman:
        config:
          app_path: "apps/rails2"

Read more at the source