Skip to content
This repository was archived by the owner on Jul 16, 2023. It is now read-only.

feat: add allow-only-once option to no-magic-number rule #1173

Merged
merged 4 commits into from
Jan 28, 2023
Merged

feat: add allow-only-once option to no-magic-number rule #1173

merged 4 commits into from
Jan 28, 2023

Conversation

san-smith
Copy link
Contributor

What is the purpose of this pull request? (put an "X" next to an item)

  • Documentation update
  • Bug fix
  • New rule
  • Changes an existing rule
  • Add autofixing to a rule
  • Add a CLI option
  • Add something to the core
  • Other, please explain:

What changes did you make? (Give an overview)

Added a new allow-only-once option to the no-magic-number rule that allows numeric literals to be used if they occur only once in the scope.

Is there anything you'd like reviewers to focus on?

@incendial incendial self-requested a review January 28, 2023 12:24
@incendial incendial added type: enhancement New feature or request area-rules labels Jan 28, 2023
@incendial incendial added this to the 5.6.0 milestone Jan 28, 2023
@incendial incendial changed the title Add allow-only-once option to no-magic-number rule feat: add allow-only-once option to no-magic-number rule Jan 28, 2023
@codecov
Copy link

codecov bot commented Jan 28, 2023

Codecov Report

Merging #1173 (b81e290) into master (ea555fe) will increase coverage by 0.02%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master    #1173      +/-   ##
==========================================
+ Coverage   85.59%   85.62%   +0.02%     
==========================================
  Files         350      350              
  Lines        7928     7944      +16     
==========================================
+ Hits         6786     6802      +16     
  Misses       1142     1142              
Impacted Files Coverage Δ
...ules/rules_list/no_magic_number/config_parser.dart 100.00% <100.00%> (ø)
...les_list/no_magic_number/no_magic_number_rule.dart 95.00% <100.00%> (+1.52%) ⬆️

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@incendial incendial merged commit 8676f24 into dart-code-checker:master Jan 28, 2023
@incendial
Copy link
Member

@san-smith thank you for the contribution! 🚀

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-rules type: enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants