Git Product home page Git Product logo

Comments (6)

Puneethgr avatar Puneethgr commented on July 22, 2024 2

@nicorikken Oh yes, correct. My answer was for jcraigk's main question.

How can I create a rule e.g. to reject "master" but allow "ControlMaster"?

Your answer was for richm's comment question. I didn't see that.

Cool. Updated my older comment.

from woke.

nicorikken avatar nicorikken commented on July 22, 2024

You can also create a custom set of rules and leave out the words you think are acceptable.

from woke.

richm avatar richm commented on July 22, 2024

You can also create a custom set of rules and leave out the words you think are acceptable.

How do you do that? How can I create a rule e.g. to reject "master" but allow "ControlMaster"?

from woke.

nicorikken avatar nicorikken commented on July 22, 2024

@richm by setting word_boundary_start: true https://docs.getwoke.tech/rules/

from woke.

Puneethgr avatar Puneethgr commented on July 22, 2024

@jcraigk With reference to the main question, the answer is already present in the documentation: https://docs.getwoke.tech/rules/#disabling-default-rules.

All the default rules can be found in https://github.com/get-woke/woke/blob/main/pkg/rule/default.yaml

You can either:

  1. disable some default rules (See https://docs.getwoke.tech/rules/#disabling-default-rules)
    or
  2. disable all default rules and create your own yaml file with custom rules
    Example: woke hello.txt --disable-default-rules --config example.yaml
    Reference:
    a. https://docs.getwoke.tech/rules/#disable-all-default-rules
    b. https://github.com/get-woke/woke/blob/main/example.yaml

from woke.

nicorikken avatar nicorikken commented on July 22, 2024

@Puneethgr thanks for the more elaborate writeup.
The word_boundary_start: true option actually does work for the distinction between "master" and "ControlMaster" as the latter doesn't have a word boundary before "Master". If you for example would encounter "MasterController", then it would match and trigger an error.

from woke.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.