Skip to content

Commit

Permalink
Merge pull request #402 from autolab/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
Ilter committed Mar 17, 2015
2 parents ead9e87 + 6ef52b0 commit 4998572
Show file tree
Hide file tree
Showing 179 changed files with 9,582 additions and 3,484 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,4 @@ tmp/
db/*.sqlite3
tags
.DS_Store
.idea/
4 changes: 4 additions & 0 deletions .rspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
--color
--require rails_helper
--require factory_girl_rails
--require factory_girl
16 changes: 16 additions & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
AllCops:
Include:
- '**/Rakefile'
- '**/config.ru'
Exclude:
- 'config/**/*'
- 'db/**/*'
- 'script/**/*'
- 'tmp/**/*'
RunRailsCops: true

Style/StringLiterals:
EnforcedStyle: double_quotes
SupportedStyles:
- single_quotes
- double_quotes
212 changes: 212 additions & 0 deletions .rubocop_todo.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,212 @@
# This configuration was generated by `rubocop --auto-gen-config`
# on 2015-03-13 14:29:24 -0400 using RuboCop version 0.29.1.
# The point is for the user to remove these configuration records
# one by one as the offenses are removed from the code base.
# Note that changes in the inspected code, or installation of new
# versions of RuboCop, may require this file to be generated again.

# Offense count: 5
Lint/AmbiguousOperator:
Enabled: false

# Offense count: 1
Lint/AmbiguousRegexpLiteral:
Enabled: false

# Offense count: 9
# Configuration parameters: AllowSafeAssignment.
Lint/AssignmentInCondition:
Enabled: false

# Offense count: 6
# Configuration parameters: AlignWith, SupportedStyles.
Lint/EndAlignment:
Enabled: false

# Offense count: 8
Lint/Eval:
Enabled: false

# Offense count: 4
Lint/HandleExceptions:
Enabled: false

# Offense count: 7
Lint/ParenthesesAsGroupedExpression:
Enabled: false

# Offense count: 41
Lint/RescueException:
Enabled: false

# Offense count: 2
Lint/ShadowingOuterLocalVariable:
Enabled: false

# Offense count: 2
Lint/UnderscorePrefixedVariableName:
Enabled: false

# Offense count: 2
Lint/UnreachableCode:
Enabled: false

# Offense count: 27
Lint/UselessAssignment:
Enabled: false

# Offense count: 125
Metrics/AbcSize:
Max: 192

# Offense count: 5
Metrics/BlockNesting:
Max: 6

# Offense count: 13
# Configuration parameters: CountComments.
Metrics/ClassLength:
Max: 1184

# Offense count: 64
Metrics/CyclomaticComplexity:
Max: 33

# Offense count: 376
# Configuration parameters: AllowURI, URISchemes.
Metrics/LineLength:
Max: 222

# Offense count: 147
# Configuration parameters: CountComments.
Metrics/MethodLength:
Max: 141

# Offense count: 2
# Configuration parameters: CountKeywordArgs.
Metrics/ParameterLists:
Max: 6

# Offense count: 62
Metrics/PerceivedComplexity:
Max: 37

# Offense count: 13
# Configuration parameters: Include.
Rails/Output:
Enabled: false

# Offense count: 25
# Configuration parameters: Include.
Rails/Validation:
Enabled: false

# Offense count: 3
Style/AccessorMethodName:
Enabled: false

# Offense count: 8
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, SupportedStyles.
Style/AndOr:
Enabled: false

# Offense count: 13
# Configuration parameters: IndentWhenRelativeTo, SupportedStyles, IndentOneStep.
Style/CaseIndentation:
Enabled: false

# Offense count: 6
# Configuration parameters: EnforcedStyle, SupportedStyles.
Style/ClassAndModuleChildren:
Enabled: false

# Offense count: 5
Style/ClassVars:
Enabled: false

# Offense count: 2
# Configuration parameters: Keywords.
Style/CommentAnnotation:
Enabled: false

# Offense count: 192
Style/Documentation:
Enabled: false

# Offense count: 7
Style/EmptyElse:
Enabled: false

# Offense count: 74
# Configuration parameters: Exclude.
Style/FileName:
Enabled: false

# Offense count: 42
# Configuration parameters: EnforcedStyle, SupportedStyles.
Style/For:
Enabled: false

# Offense count: 7
# Configuration parameters: EnforcedStyle, SupportedStyles.
Style/FormatString:
Enabled: false

# Offense count: 28
# Configuration parameters: MinBodyLength.
Style/GuardClause:
Enabled: false

# Offense count: 77
# Configuration parameters: MaxLineLength.
Style/IfUnlessModifier:
Enabled: false

# Offense count: 206
# Configuration parameters: EnforcedStyle, SupportedStyles.
Style/MethodName:
Enabled: false

# Offense count: 3
Style/MultilineTernaryOperator:
Enabled: false

# Offense count: 15
# Configuration parameters: EnforcedStyle, MinBodyLength, SupportedStyles.
Style/Next:
Enabled: false

# Offense count: 3
Style/OneLineConditional:
Enabled: false

# Offense count: 11
# Configuration parameters: NamePrefix, NamePrefixBlacklist.
Style/PredicateName:
Enabled: false

# Offense count: 6
# Configuration parameters: EnforcedStyle, SupportedStyles.
Style/RaiseArgs:
Enabled: false

# Offense count: 4
Style/RescueModifier:
Enabled: false

# Offense count: 1
# Cop supports --auto-correct.
# Configuration parameters: AllowAsExpressionSeparator.
Style/Semicolon:
Enabled: false

# Offense count: 1
# Configuration parameters: Methods.
Style/SingleLineBlockParams:
Enabled: false

# Offense count: 145
# Configuration parameters: EnforcedStyle, SupportedStyles.
Style/VariableName:
Enabled: false
18 changes: 18 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
language: ruby
rvm:
- 2.2.0
before_script:
- cp config/database.travis.yml config/database.yml
- cp config/initializers/devise.rb.template config/initializers/devise.rb
- cp config/autogradeConfig.rb.template config/autogradeConfig.rb
- mkdir attachments/ tmp/
- bundle install --quiet
- RAILS_ENV=test bundle exec rails generate devise:install --skip --quiet
- RAILS_ENV=test bundle exec rake db:create --trace
- RAILS_ENV=test bundle exec rake db:setup --trace
- RAILS_ENV=test bundle exec rake autolab:populate
script:
- RAILS_ENV=test CODECLIMATE_REPO_TOKEN=d37a8b9e09642cb73cfcf4ecfb4115fc3d6a55a7714110187ac59856ae4ab5ad bundle exec rspec ./spec/features/
notifications:
slack:
secure: GXcycaSBFaOYI6Ge0vhqCYK1xxixwjASOMkV2bkfE6PNIGkDEEQdTpOkohPGoKuz2W9KCGrXC38sbu4npMtonz0/sISydG+g7V33XkLqPaW8oUcdYhwJyBUEB/Ds17U/FJ4IhT9oOrhl17Sm0rm92Mhu6O2eeZYAclGqJgZNLvg=
21 changes: 18 additions & 3 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,13 @@ gem 'dynamic_form'
# Supports zip file generation.
gem 'rubyzip'

# Enables RSpec testing framework with Capybara.
# Enables RSpec testing framework with Capybara and Factory Girl.
gem 'rspec-rails'
gem 'rack-test'
gem 'capybara', group: [:development, :test]
gem 'factory_girl_rails', group: [:development, :test]
gem 'database_cleaner', group: [:development, :test]
gem "codeclimate-test-reporter", group: :test, require: nil

# Use ActiveModel has_secure_password
# gem 'bcrypt', '~> 3.1.7'
Expand All @@ -78,6 +82,17 @@ gem 'bootstrap3-datetimepicker-rails', '~> 4.0.0'
# Force SSL on certain routes
gem 'rack-ssl-enforcer'

# Useful debugger
gem 'byebug', '>=3.5.1', group: [:development, :test]
group :development do
# Better Error Pages
gem 'better_errors'
gem 'binding_of_caller' # enhances better_errors

# Useful debugger
gem 'byebug', '>=3.5.1'

# static code analyzer
gem 'rubocop', require: false
end

# LDAP Lookup
gem 'net-ldap'
Loading

0 comments on commit 4998572

Please sign in to comment.