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.

Deprecate ignore-prefix and ignore-suffix?

See original GitHub issue

Now that we have ignore-pattern perhaps it is a good time to deprecate ignore-prefix and ignore-suffix? Having a single option will simplify the code and docs. The only advantage I can see is that a prefix/suffix check might be faster than a regex check but probably not enough to be noticeable.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:9

github_iconTop GitHub Comments

1reaction
RebeccaStevenscommented, Jul 16, 2019

Removed rather than deprecated as project is still before 1.0 release.

0reactions
RebeccaStevenscommented, Jul 8, 2019

We could have it so there are two options ignore-pattern and ignore-accessor-pattern; where ignore-pattern does regex pattern matching against the top most node and is available for all rules that want the ability to ignore things, and ignore-accessor-pattern does minimatch-like pattern matching against the accessor and is available only for rules where it makes sense.

Read more comments on GitHub >

github_iconTop Results From Across the Web

tslint-immutable/README.md at master - GitHub
TSLint will be deprecated some time in 2019. ... ignore-local; ignore-prefix; ignore-suffix; ignore-pattern; ignore-return-type; ignore-rest-parameters ...
Read more >
Sort list of strings with lambda and ignore prefix - Stack Overflow
Change from sort to sorted. The sort function changes the list in place; `sorted leaves the original list alone, and returns a copy,...
Read more >
Device type HTTP interaction XML element reference
This section describes all of the XML elements allowed in the command execution part of a device type adapter, for interacting with an...
Read more >
Command help for Chimaera looking at KB KB-MERGE
We might want to remove animal as a superclass, since it is redundant. ... See the "Ignore suffix in name resolution" and "Ignore...
Read more >
How to remove prefix / suffix from multiple cells in Excel?
To remove the same number prefix or suffix, you can apply the following simple formulas. 1. Removing the first three prefix characters from...
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