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

Deprecate other_locations in analyzer spec, to clarify vs. trace #66

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

ches
Copy link

@ches ches commented Sep 18, 2021

It appears that #20 intended to remove other_locations as superseded by trace, but it left the old entry (only) in the example JSON object. An expanded section describing other_locations was put back in #57, that issue thread asserts that it is still valid and in use by Code Climate's duplication engine.

These two fields certainly seem functionally redundant, hence the confusion in #56, which I shared too.

Under assumption that both are used/accepted in implementations of the current version of the spec, this change restores presence of both in the reference but proposes deprecating other_locations and hence de-emphasizes its documentation (Trace objects are already specified in detail).

The spec version was 0.3.1 as of #57, and still is now.

It appears that codeclimate#20 intended to remove `other_locations` as superseded
by `trace`, but it left the old entry (only) in the example JSON object.
An expanded section describing `other_locations` was put back in codeclimate#57,
that issue thread asserts that it is still valid and in use by Code
Climate's duplication engine.

These two fields certainly seem functionally redundant, hence codeclimate#56.

Under assumption that both are used/accepted in implementations of the
current version of the spec, this change restores presence of both in
the reference but proposes deprecating `other_locations` and hence
de-emphasizes its documentation.
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.

1 participant