Giter Site home page Giter Site logo

Comments (5)

swift-kim avatar swift-kim commented on July 29, 2024 1

Okay. I read the ffigen documentation again and noticed that adding the following preamble is the recommended way to suppress the warnings.

preamble: |
  // ignore_for_file: camel_case_types, non_constant_identifier_names

Thank you again for the help!

from pana.

sigurdm avatar sigurdm commented on July 29, 2024

The documentation logs can be seen here: https://pub.dev/documentation/tizen_interop/latest/log.txt

from pana.

sigurdm avatar sigurdm commented on July 29, 2024

The documentation logs can be seen here: https://pub.dev/documentation/tizen_interop/latest/log.txt

Sorry, that was a red herring.

I ran a manual pana run, without the limit on output size, and here is the relevant section:

## ✗ Pass static analysis (20 / 30)
### [~] 20/30 points: code has no errors, warnings, lints, or formatting issues

Found 88745 issues. Showing the first 2:

<details>
<summary>
INFO: The variable name 'get_last_result' isn't a lowerCamelCase identifier.
</summary>

`lib/src/bindings/4.0/generated_bindings.dart:32:7`


32 │ int get_last_result() {
│ ^^^^^^^^^^^^^^^


To reproduce make sure you are using the [lints_core](https://pub.dev/packages/lints) and run `dart analyze lib/src/bindings/4.0/generated_bindings.dart`
</details>
<details>
<summary>
INFO: The variable name '_get_last_resultPtr' isn't a lowerCamelCase identifier.
</summary>

pub.dev analyzes the package with the core lints.

If you are certain that you don't want to follow the dart naming convention in the generated code, you can put: // ignore_for_file: type=lint at the top. See: https://dart.dev/guides/language/analysis-options#suppressing-rules-for-a-file

from pana.

swift-kim avatar swift-kim commented on July 29, 2024

@sigurdm Thank you so much for the really quick response!

pub.dev analyzes the package with the core lints.

Does pana (pub.dev) always use the core lints even if there's a custom analysis_options.yaml in the package? I tried adding the following lines to my analysis_options.yaml since I wanted to apply the rules globally to all files, but it still didn't work.

include: package:lints/core.yaml

linter:
  rules:
    camel_case_types: false
    non_constant_identifier_names: false

If you are certain that you don't want to follow the dart naming convention in the generated code, you can put: // ignore_for_file: type=lint at the top.

Maybe this is the only option I can use if pana works in that way.

from pana.

sigurdm avatar sigurdm commented on July 29, 2024

Yeah - it always uses those and ignores the custom analysis_options.yaml.

from pana.

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.