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

scope restricted-syntax #7323

Merged
merged 1 commit into from
Apr 5, 2023
Merged

scope restricted-syntax #7323

merged 1 commit into from
Apr 5, 2023

Conversation

turadg
Copy link
Member

@turadg turadg commented Apr 4, 2023

Description

The no-restricted-syntax warning on tests was making a wall of warnings in my IDE, making it harder to notice more substantive ones. Some of the rules don't apply to test code (like "RUN", which is fine for tests).

So this changes the rule to apply only to product / exported code. We should prioritize burning those down and getting to 'error' so they can't reappear. Then we can decide what policy we want for tests. Most of the ones in tests will be solved by changing the code under test.

This also burns down the InterestTiming configuration.

Security Considerations

--

Scaling Considerations

--

Documentation Considerations

--

Testing Considerations

CI

@turadg turadg requested review from arirubinstein and dckc April 4, 2023 16:01
@turadg turadg force-pushed the ta/scope-restricted-syntax branch from ac3e258 to d7e9c11 Compare April 4, 2023 17:53
Copy link
Member

@dckc dckc left a comment

Choose a reason for hiding this comment

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

I'm afraid this hides a breaking RPC API change.

* loanTiming: LoanTiming,
* interestTiming: InterestTiming,
Copy link
Member

Choose a reason for hiding this comment

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

That's a breaking change to the RPC API, isn't it?

Seems like it would show up a chainStorage snapshot test if we had one for this part of published.

Copy link
Member Author

Choose a reason for hiding this comment

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

Hmm, I'll look into this. Meanwhile I'll take the commit out of this PR.

They're more important and the terminology warnings in tests were hiding more substantial warnings.

In inter-protocol this cut  535 terminology warnings in tests, leaving 180 in produc/exported code
@turadg turadg force-pushed the ta/scope-restricted-syntax branch from d7e9c11 to 4630a1f Compare April 5, 2023 14:53
Copy link
Member

@dckc dckc left a comment

Choose a reason for hiding this comment

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

Let's give it a try.

@turadg turadg added automerge:no-update (expert!) Automatically merge without updates bypass:integration Prevent integration tests from running on PR labels Apr 5, 2023
@mergify mergify bot merged commit 4347a81 into master Apr 5, 2023
@mergify mergify bot deleted the ta/scope-restricted-syntax branch April 5, 2023 15:22
@dckc
Copy link
Member

dckc commented Apr 5, 2023

refs: #7283, #7284

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
automerge:no-update (expert!) Automatically merge without updates bypass:integration Prevent integration tests from running on PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants