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

Populate errortype on more errors. #201

Merged
merged 1 commit into from
Oct 7, 2020

Conversation

Leshana
Copy link
Contributor

@Leshana Leshana commented Jul 19, 2020

  • Added unreachable_code, proc_has_no_parent, and loop_condition_determinate error types.
  • Added one use of control_condition_static where it was missing.
  • Added unit tests covering some of the error conditions I looked at while adding these.

This is convenient for me when working on older codebases where I want to categorize and prioritize the types of linting errors to fix. In addition to the ones I wanted, @spookydonut 's code inspired a few additional ones to add.
Plus I figure more unit test coverage is always helpful.

- Added unreachable_code, proc_has_no_parent, and loop_condition_determinate error types.
- Added one use of control_condition_static where it was missing.
- Added unit tests covering some of the error conditions I looked at while adding these.
@spookydonut
Copy link
Collaborator

@Leshana those errors are intentionally not able to be disabled.

@SpaceManiac
Copy link
Owner

those errors are intentionally not able to be disabled.

@spookydonut Could you elaborate on the reasoning for this?

@spookydonut
Copy link
Collaborator

those errors are intentionally not able to be disabled.

@spookydonut Could you elaborate on the reasoning for this?

@SpaceManiac If people don't want errors raised by lints they should... not use those lints?

@spookydonut
Copy link
Collaborator

those errors are intentionally not able to be disabled.

@spookydonut Could you elaborate on the reasoning for this?

@SpaceManiac If people don't want errors raised by lints they should... not use those lints?

Oh wait, nvm there's no reason not to allow these to be configged

@SpaceManiac SpaceManiac merged commit 21c4192 into SpaceManiac:master Oct 7, 2020
@SpaceManiac SpaceManiac added this to the suite v1.6 milestone Dec 9, 2020
@Leshana Leshana deleted the vplk-more-errortypes branch May 15, 2021 18:05
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.

3 participants