This repository has been archived by the owner on Apr 13, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 62
Implement #6172: parameter/argument warning #6183
Open
lucaswerkmeister
wants to merge
1
commit into
eclipse-archived:master
Choose a base branch
from
lucaswerkmeister:6172
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
If the parameter is not assigned by a BME with the same name, but a different argument is a BME with the same name, issue a warning.
Can one of the admins verify this patch? (see README) |
Thoughts @gavinking / @jvasileff / anyone else? |
I was skeptical, but encouraged by the results on the SDK. It seems this could be removed or made optional in a future release if it doesn't work out. |
lucaswerkmeister
added a commit
to lucaswerkmeister/ceylon-sdk
that referenced
this pull request
May 5, 2016
- Many, MANY tests were calling assertEquals with the wrong argument order: assertEquals(expected, actual), whereas the correct order with positional arguments is assertEquals(actual, expected). A few of these mistakes were caught by eclipse-archived/ceylon#6183. I attempted to fix them in a way that would be consistent with other tests in the file, so sometimes I swapped the parameters, and sometimes I changed the invocation to use named arguments. - Some tests did manual exception handling instead of using assertThatException. - Some tests could be parameterized (eclipse-archived#159).
lucaswerkmeister
added a commit
to lucaswerkmeister/ceylon-sdk
that referenced
this pull request
May 9, 2016
- Many, MANY tests were calling assertEquals with the wrong argument order: assertEquals(expected, actual), whereas the correct order with positional arguments is assertEquals(actual, expected). A few of these mistakes were caught by eclipse-archived/ceylon#6183. I attempted to fix them in a way that would be consistent with other tests in the file, so sometimes I swapped the parameters, and sometimes I changed the invocation to use named arguments. - Some tests did manual exception handling instead of using assertThatException. - Some tests could be parameterized (eclipse-archived#159). - Some date_* variables were misspelled as data_*.
lucaswerkmeister
referenced
this pull request
Jul 11, 2016
eclipsewebmaster
force-pushed
the
master
branch
from
December 7, 2017 19:51
b50d4cc
to
f5e07f3
Compare
Very interesting idea @lucaswerkmeister. I guess this seems useful. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
If the parameter is not assigned by a BME with the same name, but a different argument is a BME with the same name, issue a warning.
Warnings in language module and SDK: gist
Closes #6172.