1,873 questions
1
vote
1
answer
61
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
38
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
198
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
69
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
147
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
94
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
42
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
133
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
52
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
56
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
232
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
96
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 ...
2
votes
2
answers
601
views
Flutter VS Code Not Showing 'const' Warning Automatically
Previously, VS Code would automatically show the warning:
Try adding the 'const' keyword to the constructor invocation
However, now it only appears if I explicitly add
prefer_const_constructors: true
...