Skip to content

Conversation

@xeptore
Copy link
Contributor

@xeptore xeptore commented Mar 30, 2021

Previously, :skip choice option is shown in the list of scope choice options, even when commitlint scope-empty rule level is set to 2 (error) with applicability set to never, which means it is not possible to leave the scope empty, and it causes an error.
This pull request fixes the bug and disallows :skip choice option from being selected when the scope-empty rule severity is set to 2 (error) and its applicability is set to never.
Also, some refactoring is done in order to improve readability and separation of concerns.

@codecov
Copy link

codecov bot commented Mar 30, 2021

Codecov Report

Merging #9 (de49e6e) into master (2ba90df) will increase coverage by 0.72%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master       #9      +/-   ##
==========================================
+ Coverage   78.30%   79.03%   +0.72%     
==========================================
  Files          12       12              
  Lines         355      372      +17     
  Branches       81       85       +4     
==========================================
+ Hits          278      294      +16     
- Misses         76       77       +1     
  Partials        1        1              
Flag Coverage Δ
unittests 79.03% <100.00%> (+0.72%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
src/prompts/scope-maker.ts 97.72% <100.00%> (-2.28%) ⬇️

Copy link
Owner

@martinmcwhorter martinmcwhorter left a comment

Choose a reason for hiding this comment

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

Looks good

@martinmcwhorter martinmcwhorter merged commit 8eabdf9 into martinmcwhorter:master Mar 30, 2021
@xeptore
Copy link
Contributor Author

xeptore commented Mar 30, 2021

Hi @martinmcwhorter!
Do you have any plan for updating dependencies?

@martinmcwhorter
Copy link
Owner

Probably best a conversation for the open issue #4

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.

2 participants