Skip to content

Populate errortype on more errors.#201

Merged
SpaceManiac merged 1 commit intoSpaceManiac:masterfrom
Leshana:vplk-more-errortypes
Oct 7, 2020
Merged

Populate errortype on more errors.#201
SpaceManiac merged 1 commit intoSpaceManiac:masterfrom
Leshana:vplk-more-errortypes

Conversation

@Leshana
Copy link
Copy Markdown
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
Copy Markdown
Collaborator

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

@SpaceManiac
Copy link
Copy Markdown
Owner

those errors are intentionally not able to be disabled.

@spookydonut Could you elaborate on the reasoning for this?

@spookydonut
Copy link
Copy Markdown
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
Copy Markdown
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