Comments (4)
This should be fixed in the latest SNAPSHOT. Let me now if that's not the case!
from scalafix.
Thanks for the clear report!
What happens here is that the wildcard captures whitespace characters before the literal, so the inline suppression mechanism (// scalafix:ok
) is not working. You can see that by looking at the carets highlighting all heading chars until foo
in the error message.
I'll see if we could make it a bit more robust, but for the time being, if you want to catch literals ending with foo
AND be able to suppress them this way, pattern = "[^\\s]*foo"
should do the trick.
from scalafix.
Thank you for a work around, and I would be happy if it could be improved!
from scalafix.
Thank you so much!
from scalafix.
Related Issues (20)
- Sbt autocomplete interacts poorly with windows HOT 1
- Specifying --files from sbt errors because semanticdb not found HOT 2
- SymbolMatcher: normalized doesn't infer trailing dot when symbol contains backticks HOT 2
- DisableSyntax.noValPatterns could allow unpacking case classes HOT 2
- Intellij sbt shell repeatedly warns of "Unrecognized repository" HOT 6
- OrganizeImports with coalesceToWildcardImportThreshold > 0 uses wildcard pattern "_" instead of "*" in Scala 3 HOT 6
- Running Scalafix rules for a specific package HOT 3
- A bit confusing default behaviour of the `ExplicitResultTypes` rule on `fatalWarnings` HOT 3
- `DisableSyntax.NoFinalVal` needs to take into account the context HOT 3
- sbt-scalafix: support execution against files built with Scala 2.12.19 or 2.13.13 HOT 11
- RemoveUnused: detect unused function parameters in Scala 3
- sbt-scalafix: use `sbt.librarymanagement` API for `scalafixResolvers` instead of `cousierapi` HOT 3
- scalafix-core: implicit helpers not available with -Xsource:3 on 2.13.13
- Illegal start of sume expression for "\n???" HOT 2
- RemoveUnused in scala 3.4 rewrites wildcard imports from .* to ._ HOT 2
- Wrong key name in error message about Scala 3 projects HOT 2
- Unclear errors when running semantic rules with a minimal set of scalafix-cli flags HOT 5
- Scala CLI shebang is not handled HOT 2
- Scalafix sbt causing OOM errors HOT 11
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from scalafix.