Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch to yarn #677

Closed
wants to merge 42 commits into from
Closed

Switch to yarn #677

wants to merge 42 commits into from

Conversation

kaustubh-nair
Copy link
Member

Fixes #351

cesswairimu and others added 12 commits June 4, 2019 05:24
The test is failing because of different names in model(warpable) and
controller(images) skipping this for now until we decide if we want to
standardize the names
* Autofixing rubocop offenses

* Adding Rubocop to Travis pipelines and development branch

* Fixing maps controller test

* Fixing remaining offenses
else
flash[:error] = 'You must be logged in to add tags'
redirect_to '/login?back_to=/maps/' + @map.slug
redirect_to "/login?back_to=/maps/#{@map.slug}"
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Possible unprotected redirect

@map.lon = params[:map][:lon]
@map.description = params[:map][:description]
@map.license = params[:map][:license] if @map.user_id == current_user.id
@map.update_attributes(map_params)
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unprotected mass assignment

end
end

def update
@comment = Comment.find params[:id]
if logged_in? && current_user.can_edit?(@comment)
@comment.update_attribute(:body, params[:comment][:body])
redirect_to '/maps/' + params[:map_id]
@comment.update_attributes(comment_params)
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unprotected mass assignment

else
render 'new'
end
else
@map = Map.new(params[:map])
@map = Map.new(map_params)
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unprotected mass assignment

@codeclimate
Copy link

codeclimate bot commented Jun 10, 2019

Code Climate has analyzed commit 116f385 and detected 17 issues on this pull request.

Here's the issue category breakdown:

Category Count
Duplication 2
Security 15

Note: there are 8 critical issues.

View more on Code Climate.

@kaustubh-nair
Copy link
Member Author

Whoops wrong branch

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Switch from Bower to Yarn for JavaScript dependencies
3 participants