Comments (3)
Actually, I'll add one condition: If the documented unittest is for a private symbol, no warning should be emitted.
from d-scanner.
If you like this, it can be extended to protected
and/or package
symbols. I’d strongly suggest to include protected
with Protected.
as the documentation keyword to mark this as intentional. Package is probably harder because package
visibility can be qualified, and while it’s pretty clear what Private
and Protected
as part of the unit test documentation means, Package
isn’t as clear.
from d-scanner.
I would not extend it to protected. Remember we want to minimize the amount of boilerplate here. protected
is, to some extent, closer to public
than to private
(if the class is public). Let's start with private
and see how well it works first.
from d-scanner.
Related Issues (20)
- Static array expressions not fully supported HOT 1
- dscanner should pass its own style check HOT 1
- Warn about functions that are `@disable` but have an function body
- Trying to build using Ubuntu 20.04 packages HOT 6
- [warning] first.d:visit Could not resolve location of module ... HOT 4
- wrongful label_var_same_name_check
- Interactive fix is not working for me HOT 4
- Support additional themes for HTML highlighting HOT 1
- Support `alias this = _base;`
- use dscanner to replace phobos style_lint_shellcmds
- add warnings for known useless / avoidable memory-allocations (especially in phobos) HOT 1
- Support for compilation database HOT 1
- AssertError on style check HOT 1
- Respect `excludedSourceFiles` when scanning sources HOT 5
- Skip lint on given line / function / class .. HOT 1
- label_var_same_name triggered for non-static members in static functions HOT 1
- dscanner.ini settings get ignored when adding ModuleFilters
- Warn when not accessing member variable through `this`
- Build Issue on Windows - unable to read module 'lexer' HOT 2
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 d-scanner.