question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add allowEmptyScope to configuration

See original GitHub issue

Since, there’s a rule scope-empty here https://conventional-changelog.github.io/commitlint/#/reference-rules?id=scope-empty

For people using cz-customizable along with commitlint it’d be nice to have possibility to enforce scope.

AC:

  • Add { allowEmptyScope } with default true to configuration.
  • When allowEmptyScope === false don’t make it possible to skip this question while commiting

I can push a PR for this soon if no one will pick this.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
leonardoanalistacommented, Apr 5, 2019

It sounds good to me. I was going to write a PR today to skip scope. Some places we just want to commit like “feat: this is my feature”. In those cases, scope is unimportant and better if the question is not even asked. Maybe this is a different case.

Btw I think we have an option to allow empty scope already. Let me have a look later. I’m in the phone now.

0reactions
leonardoanalistacommented, Apr 9, 2019

Actually we have already the option skipQuestions, type array of string for this purpose. So skipQuestions: ['scope'] would not ask scope question at all.

Read more comments on GitHub >

github_iconTop Results From Across the Web

From local development to remote deployment - Jake Lam
This article summarises my experience to construct a standard for my team, ranging from local development to remote deployment. The article is ...
Read more >
koin/CHANGELOG.md at main · InsertKoinIO/koin - GitHub
[FIXED] [core] Allow empty Scope declaration. Allow redeclaration of same scope, to complete it. [FIXED] [core, android, androidx, test] Inject is ny ...
Read more >
@dino-dna/semantic-pull-requests - npm package | Snyk
By default, no configuration is necessary. If you wish to override some behaviors, you can add a semantic.yml file to your .github directory...
Read more >
@dino-dna/semantic-pull-requests NPM | npm.io
By default, no configuration is necessary. If you wish to override some behaviors, you can add a semantic.yml file to your .github directory...
Read more >
Ontopia Documentation
Ontopia. What's new - Ontopia 5.x. This document describes what has changed in Ontopia between releases, both at a higher level, and in...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found