Code Monkey home page Code Monkey logo

Comments (4)

github-actions avatar github-actions commented on May 18, 2024

👋 Thanks for submitting your first issue!

Please be sure to read and follow our Code of Conduct and Contributing guide.

⭐️ Is your org or open source project using woke? If so, we'd love for you to be included in the 'Who uses woke' list at https://github.com/get-woke/woke/blob/main/docs/about.md#who-uses-woke.

from woke.

richm avatar richm commented on May 18, 2024

Another question - Can woke scan for filenames? I don't mean the contents of files, I mean the names of files and directories? For example, ansible-test sanity requires the project to have a directory named tests/sanity/. I would like to be able to scan for problematic file/directory names, and have rules to allow certain ones (like tests/sanity/).

from woke.

richm avatar richm commented on May 18, 2024

The ansible-test sanity command is used in some places in our code. I would like to configure woke to allow the string ansible-test sanity, but have an error anywhere else the string sanity is used.

It doesn't look like woke supports this. In our case, I think we can use # wokeignore:rule=sanity judiciously.

from woke.

caitlinelfring avatar caitlinelfring commented on May 18, 2024

Woke doesn't support if word == "sanity" then true; except if word == "ansible-test sanity"; then false, but there's an open PR to allow full customization via regex - #133, if you could figure out a way to get regex to work for your use-case, then maybe. But otherwise, ignoring is the way to go

Yes, woke does scan filenames and shows it as a finding at line/start column/end column of 1

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.