Skip to content

Use Policeman Tools - #1236

Merged
karussell merged 2 commits into
graphhopper:masterfrom
boldtrn:try_policemantools2
Dec 13, 2017
Merged

karussell merged 2 commits into
graphhopper:masterfrom
boldtrn:try_policemantools2

Conversation

@boldtrn

@boldtrn boldtrn commented Nov 30, 2017

Copy link
Copy Markdown
Member

This is a clone of #1213.

As mentioned in #1210, it would be nice to use the policeman tools to avoid locale issues.

I just pasted the default configuration of the policeman tools. I changed it so it does only run on travis or by using mvn forbiddenapis:check. It finds a lot of issues for the core so far.

@karussell

Copy link
Copy Markdown
Member

Thanks!

Why is there a change to main.js?

@boldtrn

boldtrn commented Dec 4, 2017

Copy link
Copy Markdown
Member Author

Why is there a change to main.js?

Because it changed in the master branch. When merging it will create a conflict. The easiest solution for me is to simply regenerate the main.js, that's why it detects a change. When squashing a commit, that has been updated from the master, this happens and I don't know how to get around this.

@karussell karussell changed the title Use Policemant Tools Use Policeman Tools Dec 12, 2017
@karussell

Copy link
Copy Markdown
Member

Because it changed in the master branch. When merging it will create a conflict.

You should rebase it after that change so that this wouldn't happen. Or just exclude any changes of main.js from the commit and it should be easy to merge.

When squashing a commit, that has been updated from the master,

What do you mean here?

@boldtrn

boldtrn commented Dec 12, 2017

Copy link
Copy Markdown
Member Author

You should rebase it after that change so that this wouldn't happen. Or just exclude any changes of main.js from the commit and it should be easy to merge.

The issue is that if you want to update the changes from the master (fetch and merge), need to resolve conflicts and then squash, git does not understand that this was a merge conflict resolution. Or at least I don't know how to do it better, as I think there should be a way :).

@karussell
karussell self-requested a review December 13, 2017 15:06
@karussell
karussell merged commit 0cca5b4 into graphhopper:master Dec 13, 2017
@karussell karussell added this to the 0.10 milestone Dec 13, 2017
@boldtrn
boldtrn deleted the try_policemantools2 branch December 13, 2017 22:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants