Replies: 1 comment 1 reply
|
Yes! You can do this by setting the word_boundary_end parameter to true for a rule. See the following link: https://docs.getwoke.tech/rules/ With this set to true, a word like _DummyTransport would not be matched, while Dummy by itself would be. Also TheDummy would be matched as well - to only get Dummy by itself use word_boundary to specify both the start and end boundaries. However - if this doesn't work for you, if you want only _DummyTransport to be excluded but other compound words be included then unfortunately that doesn't exist yet. I have a pull request for regular expression functionality that would do this, but I need to do a bit more work before that is supported. Hopefully soon though 🙂 |
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Hi,
thanks for this amazing tool!
In one project we do not allow
dummy, but there is a reference to a class in an external library named_DummyTransport.Is it possible to configure
_DummyTransportas an exception in the configuration file rather than doing an inline/next line exemption?Thank you!
Background
Either it looks like this, where I additionally need to ignore exceeding line length (E501):
or I need to add the next line ignore every other line which makes the comment harder to read:
All reactions