1,872 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
Tooling
1
vote
0
replies
33
views
How to use ESlint as an Jujutsu fixer for `jj fix`
The Jujutsu VCS can use formatting tools to format code and sometimes even resolve conflicts. The tools used must read from stdin and write the modified code (and nothing else) to stdout.
For the ...
max's user avatar
- 30.1k
1
vote
1
answer
66
views
Is there an eslint or tsconfig rule to disallow inline type import?
initializeForOrder: (params: import('./drivePhotosTypes').OrderActionParams) => Promise<void>;
getOrderState: (orderId: string) => import('./drivePhotosTypes').OrderPhotosState | null;
...
2
votes
1
answer
39
views
How to ignore unused resources from libraries when linting Android dependencies?
I have a main app and a bunch of library modules. I recently added the checkDependencies = true line to my android lint block in build.gradle, since we were never running lint on libraries and tech ...
0
votes
0
answers
40
views
Is there an equivalent java/android lint to the clippy::disallowed_methods lint in rust?
What I would like to do is warn on usage of View::findViewById
as our project is using view bindings and those should be used instead.
I was expecting to just be able to add the method to a list of ...
3
votes
2
answers
228
views
How to fix SA1029 warning when storing a logger in context across multiple packages?
I’m cleaning up SA1029 ("should not use built-in type string as key for context values") and hit an architectural question.
func AuthMiddleware(logger *slog.Logger, userRepo repository.UserRepository, ...
1
vote
2
answers
74
views
Conditional declarations in makefile based on target
I'm modifying a makefile and a bit in the dark. I've tried googling and reading make primers but nothing has obvious answers to my problems below
Its first target: "default" compiles and ...
0
votes
1
answer
42
views
In Sublime Text how to disable this lint popup triggered on file save?1
Recently this started popping up in some files, on file save, super annoying, appears in files that are notes but have bash syntax for easy reading.
Not sure what it is, why it started showing up.
How ...
1
vote
0
answers
179
views
Implements generic WinRT interfaces use <AllowUnsafeBlocks>True</AllowUnsafeBlocks>. But where exactly do I place that setting?
I have a MAUI project that's giving multiple errors related to my custom classes \Models\Term.cs and \Models\Course.cs. Visual Studio 2022 gives the same recommendation for both:
Type 'System....
0
votes
0
answers
98
views
How can I expose only Barrel Export files in Flutter?
I have a Flutter project with barrel exports, but VSCode auto-completion shows both direct file imports and barrel exports, which could confuse team members.
Project structure:
lib/
features/
...
0
votes
0
answers
46
views
#error "Unable to determine type definition of intptr_t" with RX toolchain and PC-lint
I'm working on a Renesas RX project using the MinGW RX toolchain (GCC 8.3.0a) and running PC-lint for static analysis. During linting, I get the following error:
#error "Unable to determine type ...
1
vote
1
answer
146
views
clang compiler intermediate results
Problem Statement
I wish to write a code the check compliance with a custom coding standard. Aspects include:
Naming conventions
Compound operators rules
Usage of modifiers such as const
Rules ...
0
votes
0
answers
54
views
Can I apply different .textlintrc.json to different directory under the same workplace in VSCode?
I have my own tech blog made by Hugo, which supports multiple languages. And each of the directories for the posts are like:
content\ch\posts
content\ja\posts
content\en\posts
And I write the posts ...
0
votes
0
answers
59
views
Nextjs/Vercel: Recently experiencing stuck on linting process
For context,
nextjs version: "next": "14.0.4"
stuck on
✓ Compiled successfully
Linting and checking validity of types ...
however when build locally, the app build successfully ...
1
vote
1
answer
240
views
Android Studio warning: "Conflict applicable candidates of member and extension" - not sure what to do
I'm running Android Studio Preview versions (currently Android Studio Narwhal | 2025年1月1日 Canary 3) & noticed that I'm getting a lot of warnings about conflicts between member functions & ...
0
votes
0
answers
103
views
Nuxt 3 - linting error when using typescript types
I keep on getting strange linting errors when trying to lint a .vue file. In the following file I get this error. I am using the antfu default linter as it was recommended by a lot of people online as ...