Skip to content

Commit

Permalink
add app to controller, model, helper and view FILE regexp
Browse files Browse the repository at this point in the history
  • Loading branch information
flyerhzm committed Aug 12, 2012
1 parent 88a001f commit eba0c5b
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions lib/rails_best_practices/core/check.rb
Expand Up @@ -4,15 +4,15 @@ module Core
# A Check class that takes charge of checking the sexp.
class Check
ALL_FILES = /.*/
CONTROLLER_FILES = /(controllers|cells)\/.*\.rb$/
CONTROLLER_FILES = /app\/(controllers|cells)\/.*\.rb$/
MIGRATION_FILES = /db\/migrate\/.*\.rb$/
MODEL_FILES = /models\/.*\.rb$/
MAILER_FILES = /models\/.*mailer\.rb$|mailers\/.*mailer\.rb/
VIEW_FILES = /(views|cells)\/.*\.(erb|haml|slim|builder|rxml)$/
PARTIAL_VIEW_FILES = /(views|cells)\/.*\/_.*\.(erb|haml|slim|builder|rxml)$/
MODEL_FILES = /app\/models\/.*\.rb$/
MAILER_FILES = /app\/models\/.*mailer\.rb$|app\/mailers\/.*\.rb/
VIEW_FILES = /app\/(views|cells)\/.*\.(erb|haml|slim|builder|rxml)$/
PARTIAL_VIEW_FILES = /app\/(views|cells)\/.*\/_.*\.(erb|haml|slim|builder|rxml)$/
ROUTE_FILES = /config\/routes.*\.rb/
SCHEMA_FILE = /db\/schema\.rb/
HELPER_FILES = /helpers\/.*\.rb$/
HELPER_FILES = /app\/helpers\/.*\.rb$/
DEPLOY_FILES = /config\/deploy.*\.rb/
CONFIG_FILES = /config\/(application|environment|environments\/.*)\.rb/

Expand Down

0 comments on commit eba0c5b

Please sign in to comment.